Files
hci_uart_beacon/bl654pa_gpio_uart.overlay
2025-05-06 16:39:50 +02:00

59 lines
1.1 KiB
Plaintext

&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <1000000>; //<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;
};
};
/ {
/* Information from Nordic SDK-Based Application Development and SKY66112 datasheet */
sky66112_fem: fem {
compatible = "generic-fem-two-ctrl-pins";
ctx-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
crx-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
ctx-settle-time-us = <23>;
crx-settle-time-us = <5>;
tx-gain-db = <22>;
rx-gain-db = <11>;
};
};
&radio {
fem = <&sky66112_fem>;
};