Files
echo_bot/bl654pa_gpio_uart.overlay
2025-07-03 15:04:08 +02:00

54 lines
910 B
Plaintext

&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <115200>; //<115200>;
hw-flow-control;
};
&pinctrl {
uart0_default: uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 6)>, // SIO6
<NRF_PSEL(UART_RTS, 0, 5)>; //SIO5
};
group2 {
psels = <NRF_PSEL(UART_RX, 0, 8)>, //SIO8
<NRF_PSEL(UART_CTS, 0, 7)>; //SIO7
bias-pull-up;
};
};
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 6)>,
<NRF_PSEL(UART_RX, 0, 8)>,
<NRF_PSEL(UART_RTS, 0, 5)>,
<NRF_PSEL(UART_CTS, 0, 7)>;
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;
};
};
&power {
status = "okay";
};
&led0_green {
gpios = <&gpio0 0 0>;
};
&led1_red {
gpios = <&gpio0 1 0>;
};