59 lines
1.2 KiB
Plaintext
59 lines
1.2 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 */
|
|
nrf_radio_fem: fem { // node needs to be named nrf_radio_fem for the build system to pull in the nececcarry configs
|
|
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 = <&nrf_radio_fem>;
|
|
};
|