modify no_usb dongle board definition to use flow control and 1M baud

This commit is contained in:
2025-04-09 09:45:55 +02:00
parent 1b4bc495a0
commit 2d69ef3eb7
3 changed files with 2 additions and 96 deletions

View File

@@ -1,10 +0,0 @@
/* Override UART0 pins */
&uart0 {
status = "okay";
current-speed = <115200>;
/* Explicitly disable hardware flow control */
//hw-flow-control;
/* Explicitly set the pins */
//tx-pin = <13>; /* P0.13 */
//rx-pin = <15>; /* P0.15 */
};

View File

@@ -26,36 +26,6 @@
};
};
i2c0_default: i2c0_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
};
};
i2c0_sleep: i2c0_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
<NRF_PSEL(TWIM_SCL, 0, 27)>;
low-power-enable;
};
};
i2c1_default: i2c1_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
<NRF_PSEL(TWIM_SCL, 0, 31)>;
};
};
i2c1_sleep: i2c1_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
<NRF_PSEL(TWIM_SCL, 0, 31)>;
low-power-enable;
};
};
pwm0_default: pwm0_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 8)>,

View File

@@ -124,56 +124,13 @@
&uart0 {
compatible = "nordic,nrf-uarte";
status = "okay";
current-speed = <115200>;
current-speed = <1000000>;
pinctrl-0 = <&uart0_default>;
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
hw-flow-control;
};
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
};
&i2c1 {
compatible = "nordic,nrf-twi";
/* Cannot be used together with spi1. */
/* status = "okay"; */
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_default>;
pinctrl-1 = <&pwm0_sleep>;
pinctrl-names = "default", "sleep";
};
/*
* By default, not adding all available SPI instances (spi2, spi3) due to
* limited GPIOs available on dongle board.
*/
&spi0 {
compatible = "nordic,nrf-spi";
/* Cannot be used together with i2c0. */
/* status = "okay"; */
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
};
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};
&ieee802154 {
status = "okay";
@@ -186,14 +143,3 @@
*/
#include "fstab-debugger.dtsi"
&uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 13)>, <NRF_PSEL(UART_RTS, 0, 17)>;
};
group2 {
psels = <NRF_PSEL(UART_RX, 0, 15)>, <NRF_PSEL(UART_CTS, 0, 20)>;
};
};