arm64: dts: nuvoton: ma35d1: Add uart pinctrl settings
authorJacky Huang <ychuang3@nuvoton.com>
Mon, 19 Aug 2024 03:56:47 +0000 (03:56 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 5 Sep 2024 15:27:21 +0000 (15:27 +0000)
Enable all UART nodes presented on som and iot boards, and add pinctrl
function settings to these nodes.

Signed-off-by: Jacky Huang <ychuang3@nuvoton.com>
Link: https://lore.kernel.org/r/20240819035647.306-4-ychuang570808@gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts
arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts

index b89e2be6abaeb045c5a75e52a79d141b30fa6781..9482bec1aa5736360a54c9f943bdb2a4641c9fa8 100644 (file)
 
        aliases {
                serial0 = &uart0;
+               serial10 = &uart10;
+               serial12 = &uart12;
+               serial13 = &uart13;
+               serial14 = &uart14;
        };
 
        chosen {
        };
 };
 
-&uart0 {
-       status = "okay";
-};
-
 &clk {
        assigned-clocks = <&clk CAPLL>,
                          <&clk DDRPLL>,
                           "integer",
                           "integer";
 };
+
+&pinctrl {
+       uart-grp {
+               pinctrl_uart0: uart0-pins {
+                       nuvoton,pins = <4 14 1>,
+                                      <4 15 1>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart10: uart10-pins {
+                       nuvoton,pins = <7 4 2>,
+                                      <7 5 2>,
+                                      <7 6 2>,
+                                      <7 7 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart12: uart12-pins {
+                       nuvoton,pins = <2 13 2>,
+                                      <2 14 2>,
+                                      <2 15 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart13: uart13-pins {
+                       nuvoton,pins = <7 12 3>,
+                                      <7 13 3>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart14: uart14-pins {
+                       nuvoton,pins = <7 14 2>,
+                                      <7 15 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+       };
+};
+
+&uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart0>;
+       status = "okay";
+};
+
+&uart10 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart10>;
+       status = "okay";
+};
+
+&uart12 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart12>;
+       status = "okay";
+};
+
+&uart13 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart13>;
+       status = "okay";
+};
+
+&uart14 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart14>;
+       status = "okay";
+};
index a1ebddecb7f8166bf83ed4a39e1542c8d5232b80..f6f20a17e501877ebc33f1da7d116bfd2e24fb20 100644 (file)
 
        aliases {
                serial0 = &uart0;
+               serial11 = &uart11;
+               serial12 = &uart12;
+               serial14 = &uart14;
+               serial16 = &uart16;
        };
 
        chosen {
        };
 };
 
-&uart0 {
-       status = "okay";
-};
-
 &clk {
        assigned-clocks = <&clk CAPLL>,
                          <&clk DDRPLL>,
                           "integer",
                           "integer";
 };
+
+&pinctrl {
+       uart-grp {
+               pinctrl_uart0: uart0-pins {
+                       nuvoton,pins = <4 14 1>,
+                                      <4 15 1>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart11: uart11-pins {
+                       nuvoton,pins = <11 0 2>,
+                                      <11 1 2>,
+                                      <11 2 2>,
+                                      <11 3 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart12: uart12-pins {
+                       nuvoton,pins = <8 1 2>,
+                                      <8 2 2>,
+                                      <8 3 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart14: uart14-pins {
+                       nuvoton,pins = <8 5 2>,
+                                      <8 6 2>,
+                                      <8 7 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+
+               pinctrl_uart16: uart16-pins {
+                       nuvoton,pins = <10 0 2>,
+                                      <10 1 2>,
+                                      <10 2 2>,
+                                      <10 3 2>;
+                       bias-disable;
+                       power-source = <1>;
+               };
+       };
+};
+
+&uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart0>;
+       status = "okay";
+};
+
+&uart11 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart11>;
+       status = "okay";
+};
+
+&uart12 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart12>;
+       status = "okay";
+};
+
+&uart14 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart14>;
+       status = "okay";
+};
+
+&uart16 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_uart16>;
+       status = "okay";
+};