add overlay for bl654pa

This commit is contained in:
2025-04-29 18:11:36 +02:00
parent 83de7f4200
commit 545b08458f
2 changed files with 49 additions and 0 deletions

45
bl654pa_gpio_uart.overlay Normal file
View File

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

4
internal_osc.conf Normal file
View File

@@ -0,0 +1,4 @@
# use internal 32kHz oscillator
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
# select desired accuracy (more calibrations would be nececcary if smaller) - I think the 32KHz oscillator is only needed for receive
CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM=y