Skip to content

Commit

Permalink
boards: byteSENSI-L: add gnss support
Browse files Browse the repository at this point in the history
Add support for the integrated u-blox M8C GNSS module.

Signed-off-by: Marco Widmer <[email protected]>
  • Loading branch information
marcowidmer authored and fabiobaltieri committed Sep 3, 2024
1 parent c3c7e51 commit ca48767
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
15 changes: 15 additions & 0 deletions boards/bytesatwork/bytesensi_l/bytesensi_l.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
aliases {
/* Alias for lora samples */
lora0 = &lora;
/* Alias for gnss samples */
gnss = &gnss;
};
};

Expand Down Expand Up @@ -153,3 +155,16 @@
jedec-id = [c2 28 17];
};
};

&uart0 {
status = "okay";
current-speed = <9600>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";

gnss: u_blox_m8 {
status = "okay";
compatible = "gnss-nmea-generic";
};
};
4 changes: 4 additions & 0 deletions boards/bytesatwork/bytesensi_l/bytesensi_l_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ CONFIG_ARM_MPU=y
# enable GPIO
CONFIG_GPIO=y

# enable UART
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y

Expand Down
8 changes: 4 additions & 4 deletions boards/bytesatwork/bytesensi_l/bytesensi_l_pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
&pinctrl {
uart0_default: uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 12)>;
psels = <NRF_PSEL(UART_RX, 0, 11)>,
<NRF_PSEL(UART_TX, 0, 12)>;
};
};

uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 12)>;
psels = <NRF_PSEL(UART_RX, 0, 11)>,
<NRF_PSEL(UART_TX, 0, 12)>;
low-power-enable;
};
};
Expand Down
2 changes: 2 additions & 0 deletions boards/bytesatwork/bytesensi_l/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Supported Features
+-----------+------------+----------------------+
| GPIO | on-chip | gpio |
+-----------+------------+----------------------+
| GPS | u-blox | gnss |
+-----------+------------+----------------------+
| I2C(M) | on-chip | i2c |
+-----------+------------+----------------------+
| MPU | on-chip | arch/arm |
Expand Down

0 comments on commit ca48767

Please sign in to comment.