boards: arm: rak5010_nrf52840: update modem dts changes

remove legacy modem properties and add modem node
compatible to modem subsystem, rak5010_nrf52840
has two variant, one with BG95-M3 and other is
BG96 modem, both are pin to pin compatible.

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
This commit is contained in:
Karthikeyan Krishnasamy 2024-02-03 01:08:18 -06:00 committed by Henrik Brix Andersen
parent 8fa312f015
commit b7799c1a2f
2 changed files with 6 additions and 12 deletions

View file

@ -8,9 +8,6 @@ if BOARD_RAK5010_NRF52840
config BOARD
default "rak5010_nrf52840"
config MODEM_QUECTEL_BG9X
default y
config BT_CTLR
default BT

View file

@ -36,6 +36,8 @@
led0 = &led0;
watchdog0 = &wdt0;
accel0 = &lis3dh;
modem-uart = &uart0;
modem = &modem;
};
};
@ -56,20 +58,15 @@
};
&uart0 {
compatible = "nordic,nrf-uart";
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <115200>;
/* QUECTEL BG9X */
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
quectel_bg9x: quectel_bg9x {
compatible = "quectel,bg9x";
mdm-power-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
mdm-reset-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
mdm-dtr-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
mdm-wdisable-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
modem: modem {
compatible = "quectel,bg95";
mdm-power-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};