boards: byteSENSI-L: add gnss support

Add support for the integrated u-blox M8C GNSS module.

Signed-off-by: Marco Widmer <marco.widmer@bytesatwork.ch>
This commit is contained in:
Marco Widmer 2024-08-26 18:18:45 +02:00 committed by Fabio Baltieri
commit ca48767be4
4 changed files with 25 additions and 4 deletions

View file

@ -25,6 +25,8 @@
aliases { aliases {
/* Alias for lora samples */ /* Alias for lora samples */
lora0 = &lora; lora0 = &lora;
/* Alias for gnss samples */
gnss = &gnss;
}; };
}; };
@ -153,3 +155,16 @@
jedec-id = [c2 28 17]; 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";
};
};

View file

@ -7,6 +7,10 @@ CONFIG_ARM_MPU=y
# enable GPIO # enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y
# enable UART
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# Enable hardware stack protection # Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y CONFIG_HW_STACK_PROTECTION=y

View file

@ -7,15 +7,15 @@
&pinctrl { &pinctrl {
uart0_default: uart0_default { uart0_default: uart0_default {
group1 { group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>, psels = <NRF_PSEL(UART_RX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 12)>; <NRF_PSEL(UART_TX, 0, 12)>;
}; };
}; };
uart0_sleep: uart0_sleep { uart0_sleep: uart0_sleep {
group1 { group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>, psels = <NRF_PSEL(UART_RX, 0, 11)>,
<NRF_PSEL(UART_RX, 0, 12)>; <NRF_PSEL(UART_TX, 0, 12)>;
low-power-enable; low-power-enable;
}; };
}; };

View file

@ -29,6 +29,8 @@ Supported Features
+-----------+------------+----------------------+ +-----------+------------+----------------------+
| GPIO | on-chip | gpio | | GPIO | on-chip | gpio |
+-----------+------------+----------------------+ +-----------+------------+----------------------+
| GPS | u-blox | gnss |
+-----------+------------+----------------------+
| I2C(M) | on-chip | i2c | | I2C(M) | on-chip | i2c |
+-----------+------------+----------------------+ +-----------+------------+----------------------+
| MPU | on-chip | arch/arm | | MPU | on-chip | arch/arm |