add a few overlays

This commit is contained in:
2026-02-04 14:56:58 +01:00
parent e0de837708
commit bc09a295bb
4 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.
// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:
// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels
// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/ncs_configure_app.html#devicetree-support-in-the-extension
&uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 8)>,
<NRF_PSEL(UART_RX, 0, 13)>,
<NRF_PSEL(UART_RTS, 0, 19)>,
<NRF_PSEL(UART_CTS, 0, 21)>;
};
};

View File

@@ -0,0 +1,18 @@
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.
// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:
// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels
// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/ncs_configure_app.html#devicetree-support-in-the-extension
&uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 11)>, <NRF_PSEL(UART_RTS, 1, 7)>;
};
};

View File

@@ -0,0 +1,15 @@
/* 1. We overwrite the pin control helper node */
&uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 3)>,
<NRF_PSEL(UART_RX, 0, 11)>;
};
};
/* 2. Apply it to the UART peripheral */
&uart0 {
status = "okay";
pinctrl-0 = <&uart0_default>;
pinctrl-names = "default";
current-speed = <115200>;
};

View File

@@ -1,2 +1,8 @@
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# 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
CONFIG_NFCT_PINS_AS_GPIOS=y