add overlay for bl654pa
This commit is contained in:
43
bl654pa_gpio_uart.overlay
Normal file
43
bl654pa_gpio_uart.overlay
Normal 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;
|
||||
};
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
17
nrf52840_gpio_uart.overlay
Normal file
17
nrf52840_gpio_uart.overlay
Normal 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
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user