add overlay for bl654pa

This commit is contained in:
2025-04-29 18:11:34 +02:00
parent 40c2f694d2
commit 3e9ab11616
3 changed files with 61 additions and 2 deletions

43
bl654pa_gpio_uart.overlay Normal file
View File

@@ -0,0 +1,43 @@
&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <1000000>;
//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;
};
};

View File

@@ -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;

View File

@@ -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
};
};