Skip to content

Commit ca48767

Browse files
marcowidmerfabiobaltieri
authored andcommitted
boards: byteSENSI-L: add gnss support
Add support for the integrated u-blox M8C GNSS module. Signed-off-by: Marco Widmer <[email protected]>
1 parent c3c7e51 commit ca48767

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

boards/bytesatwork/bytesensi_l/bytesensi_l.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
aliases {
2626
/* Alias for lora samples */
2727
lora0 = &lora;
28+
/* Alias for gnss samples */
29+
gnss = &gnss;
2830
};
2931
};
3032

@@ -153,3 +155,16 @@
153155
jedec-id = [c2 28 17];
154156
};
155157
};
158+
159+
&uart0 {
160+
status = "okay";
161+
current-speed = <9600>;
162+
pinctrl-0 = <&uart0_default>;
163+
pinctrl-1 = <&uart0_sleep>;
164+
pinctrl-names = "default", "sleep";
165+
166+
gnss: u_blox_m8 {
167+
status = "okay";
168+
compatible = "gnss-nmea-generic";
169+
};
170+
};

boards/bytesatwork/bytesensi_l/bytesensi_l_defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ CONFIG_ARM_MPU=y
77
# enable GPIO
88
CONFIG_GPIO=y
99

10+
# enable UART
11+
CONFIG_SERIAL=y
12+
CONFIG_UART_INTERRUPT_DRIVEN=y
13+
1014
# Enable hardware stack protection
1115
CONFIG_HW_STACK_PROTECTION=y
1216

boards/bytesatwork/bytesensi_l/bytesensi_l_pinctrl.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
&pinctrl {
88
uart0_default: uart0_default {
99
group1 {
10-
psels = <NRF_PSEL(UART_TX, 0, 11)>,
11-
<NRF_PSEL(UART_RX, 0, 12)>;
10+
psels = <NRF_PSEL(UART_RX, 0, 11)>,
11+
<NRF_PSEL(UART_TX, 0, 12)>;
1212
};
1313
};
1414

1515
uart0_sleep: uart0_sleep {
1616
group1 {
17-
psels = <NRF_PSEL(UART_TX, 0, 11)>,
18-
<NRF_PSEL(UART_RX, 0, 12)>;
17+
psels = <NRF_PSEL(UART_RX, 0, 11)>,
18+
<NRF_PSEL(UART_TX, 0, 12)>;
1919
low-power-enable;
2020
};
2121
};

boards/bytesatwork/bytesensi_l/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Supported Features
2929
+-----------+------------+----------------------+
3030
| GPIO | on-chip | gpio |
3131
+-----------+------------+----------------------+
32+
| GPS | u-blox | gnss |
33+
+-----------+------------+----------------------+
3234
| I2C(M) | on-chip | i2c |
3335
+-----------+------------+----------------------+
3436
| MPU | on-chip | arch/arm |

0 commit comments

Comments
 (0)