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