From 3e9ab11616c3bf8f87fcd3af5544f1f11d63046f Mon Sep 17 00:00:00 2001 From: pstruebi Date: Tue, 29 Apr 2025 18:11:34 +0200 Subject: [PATCH] add overlay for bl654pa --- bl654pa_gpio_uart.overlay | 43 +++++++++++++++++++ .../nrf52840dongle_no_usb_nrf52840.dts | 3 +- nrf52840_gpio_uart.overlay | 17 ++++++++ 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 bl654pa_gpio_uart.overlay create mode 100644 nrf52840_gpio_uart.overlay diff --git a/bl654pa_gpio_uart.overlay b/bl654pa_gpio_uart.overlay new file mode 100644 index 0000000..7bbbb2d --- /dev/null +++ b/bl654pa_gpio_uart.overlay @@ -0,0 +1,43 @@ +&uart0 { + compatible = "nordic,nrf-uarte"; + status = "okay"; + current-speed = <1000000>; + //hw-flow-control; +}; + + + +&pinctrl { + uart0_default: uart0_default { + group1 { + psels = , // SIO6 + ; //SIO5 + }; + group2 { + psels = , //SIO8 + ; //SIO7 + bias-pull-up; + }; + }; + + uart0_sleep: uart0_sleep { + group1 { + psels = , + , + , + ; + low-power-enable; + }; + }; + + + +/ { + chosen { + //zephyr,console = &uart0; + //zephyr,shell-uart = &uart0; + //zephyr,uart-mcumgr = &uart0; + //zephyr,bt-mon-uart = &uart0; + zephyr,bt-c2h-uart = &uart0; + }; +}; \ No newline at end of file diff --git a/boards/nrf52840dongle_no_usb/nrf52840dongle_no_usb_nrf52840.dts b/boards/nrf52840dongle_no_usb/nrf52840dongle_no_usb_nrf52840.dts index 9ebfb11..cdb5672 100644 --- a/boards/nrf52840dongle_no_usb/nrf52840dongle_no_usb_nrf52840.dts +++ b/boards/nrf52840dongle_no_usb/nrf52840dongle_no_usb_nrf52840.dts @@ -18,7 +18,6 @@ pinctrl-0 = <&uart0_default>; pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; - hw-flow-control; }; @@ -31,7 +30,7 @@ //zephyr,shell-uart = &uart0; //zephyr,uart-mcumgr = &uart0; //zephyr,bt-mon-uart = &uart0; - zephyr,bt-c2h-uart = &uart0; // make uart0 the hci interfac + //zephyr,bt-c2h-uart = &uart0; // make uart0 the hci interfac zephyr,sram = &sram0; zephyr,flash = &flash0; diff --git a/nrf52840_gpio_uart.overlay b/nrf52840_gpio_uart.overlay new file mode 100644 index 0000000..bfdc3af --- /dev/null +++ b/nrf52840_gpio_uart.overlay @@ -0,0 +1,17 @@ +&uart0 { + compatible = "nordic,nrf-uarte"; + status = "okay"; + current-speed = <1000000>; + hw-flow-control; +}; + + +/ { + chosen { + // zephyr,console = &uart0; + // zephyr,shell-uart = &uart0; + // zephyr,uart-mcumgr = &uart0; + // zephyr,bt-mon-uart = &uart0; + zephyr,bt-c2h-uart = &uart0; // make uart0 the hci interfac + }; +}; \ No newline at end of file