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:
parent
0b97e8e817
commit
da3d4f2c32
13 changed files with 1 additions and 49 deletions
|
|
@ -48,9 +48,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
|
||||
ws2812_pio0_default: ws2812_pio0_default {
|
||||
ws2812 {
|
||||
pinmux = <PIO0_P17>;
|
||||
|
|
|
|||
|
|
@ -56,11 +56,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -59,9 +59,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
|
||||
ws2812_pio1_default: ws2812_pio1_default {
|
||||
ws2812 {
|
||||
pinmux = <PIO1_P12>;
|
||||
|
|
|
|||
|
|
@ -56,11 +56,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -89,11 +89,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -54,7 +54,4 @@
|
|||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,9 +57,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
|
||||
ws2812_pio0_default: ws2812_pio0_default {
|
||||
ws2812 {
|
||||
pinmux = <PIO0_P12>;
|
||||
|
|
|
|||
|
|
@ -86,11 +86,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&timer {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -47,9 +47,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
|
||||
ws2812_pio0_default: ws2812_pio_default {
|
||||
ws2812 {
|
||||
pinmux = <PIO0_P25>;
|
||||
|
|
|
|||
|
|
@ -58,11 +58,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -54,7 +54,4 @@
|
|||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
clocks_default: clocks_default {
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -112,11 +112,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
&clocks {
|
||||
pinctrl-0 = <&clocks_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue