add overlays
This commit is contained in:
44
bl54l15_radio1.overlay
Normal file
44
bl54l15_radio1.overlay
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
&uart20 {
|
||||||
|
compatible = "nordic,nrf-uarte";
|
||||||
|
status = "okay";
|
||||||
|
current-speed = <1000000>;
|
||||||
|
hw-flow-control;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
uart20_default: uart20_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 1, 6)>,
|
||||||
|
<NRF_PSEL(UART_RTS, 1, 7)>;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
psels = <NRF_PSEL(UART_RX, 1, 4)>,
|
||||||
|
<NRF_PSEL(UART_CTS, 1, 5)>;
|
||||||
|
bias-pull-up;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
uart20_sleep: uart20_sleep {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 1, 6)>,
|
||||||
|
<NRF_PSEL(UART_RX, 1, 4)>,
|
||||||
|
<NRF_PSEL(UART_RTS, 1, 7)>,
|
||||||
|
<NRF_PSEL(UART_CTS, 1, 5)>;
|
||||||
|
low-power-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,console = &uart20;
|
||||||
|
zephyr,shell-uart = &uart20;
|
||||||
|
//zephyr,uart-mcumgr = &uart0;
|
||||||
|
//zephyr,bt-mon-uart = &uart0;
|
||||||
|
//zephyr,bt-c2h-uart = &uart0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
&power {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
&uart0 {
|
&uart0 {
|
||||||
compatible = "nordic,nrf-uarte";
|
compatible = "nordic,nrf-uarte";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
current-speed = <1000000>; //<115200>;
|
current-speed = <115200>; //<115200>;
|
||||||
hw-flow-control;
|
hw-flow-control;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -43,3 +43,11 @@
|
|||||||
&power {
|
&power {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&led0_green {
|
||||||
|
gpios = <&gpio0 0 0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&led1_red {
|
||||||
|
gpios = <&gpio0 1 0>;
|
||||||
|
};
|
||||||
|
|||||||
18
nrf52840_gpio_uart.overlay
Normal file
18
nrf52840_gpio_uart.overlay
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
&uart0 {
|
||||||
|
compatible = "nordic,nrf-uarte";
|
||||||
|
status = "okay";
|
||||||
|
current-speed = <1000000>;
|
||||||
|
hw-flow-control;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,console = &uart0;
|
||||||
|
zephyr,shell-uart = &uart0;
|
||||||
|
zephyr,log-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