drivers: clock_control: rpi_pico: Make pinctrl-0 optional

No in-tree board uses this driver's pinctrl functionality, and every
RP2040-based board was configuring this to be an empty node in the
device tree, so remove them.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
This commit is contained in:
Andrew Featherstone 2024-09-27 12:51:59 +01:00 committed by Benjamin Cabé
parent 0b97e8e817
commit da3d4f2c32
13 changed files with 1 additions and 49 deletions

View file

@ -48,9 +48,6 @@
};
};
clocks_default: clocks_default {
};
ws2812_pio0_default: ws2812_pio0_default {
ws2812 {
pinmux = <PIO0_P17>;

View file

@ -56,11 +56,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&uart0 {
current-speed = <115200>;
status = "okay";

View file

@ -59,9 +59,6 @@
};
};
clocks_default: clocks_default {
};
ws2812_pio1_default: ws2812_pio1_default {
ws2812 {
pinmux = <PIO1_P12>;

View file

@ -56,11 +56,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&uart1 {
current-speed = <115200>;
status = "okay";

View file

@ -89,11 +89,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&uart0 {
current-speed = <115200>;
status = "okay";

View file

@ -54,7 +54,4 @@
input-enable;
};
};
clocks_default: clocks_default {
};
};

View file

@ -57,9 +57,6 @@
};
};
clocks_default: clocks_default {
};
ws2812_pio0_default: ws2812_pio0_default {
ws2812 {
pinmux = <PIO0_P12>;

View file

@ -86,11 +86,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&timer {
status = "okay";
};

View file

@ -47,9 +47,6 @@
};
};
clocks_default: clocks_default {
};
ws2812_pio0_default: ws2812_pio_default {
ws2812 {
pinmux = <PIO0_P25>;

View file

@ -58,11 +58,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&uart0 {
current-speed = <115200>;
status = "okay";

View file

@ -54,7 +54,4 @@
input-enable;
};
};
clocks_default: clocks_default {
};
};

View file

@ -112,11 +112,6 @@
};
};
&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};
&uart0 {
current-speed = <115200>;
status = "okay";

View file

@ -713,7 +713,7 @@ static int clock_control_rpi_pico_init(const struct device *dev)
}
ret = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT);
if (ret < 0) {
if (ret < 0 && ret != -ENOENT) {
return ret;
}