arm64: dts: nuvoton: ma35d1: Add uart pinctrl settings

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>
This commit is contained in:
Jacky Huang 2024-08-19 03:56:47 +00:00 committed by Arnd Bergmann
parent 0dfa542df9
commit 82d7cf5655
No known key found for this signature in database
GPG key ID: 60AB47FFC9095227
2 changed files with 155 additions and 8 deletions

View file

@ -14,6 +14,10 @@
aliases {
serial0 = &uart0;
serial10 = &uart10;
serial12 = &uart12;
serial13 = &uart13;
serial14 = &uart14;
};
chosen {
@ -33,10 +37,6 @@
};
};
&uart0 {
status = "okay";
};
&clk {
assigned-clocks = <&clk CAPLL>,
<&clk DDRPLL>,
@ -54,3 +54,75 @@
"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";
};

View file

@ -14,6 +14,10 @@
aliases {
serial0 = &uart0;
serial11 = &uart11;
serial12 = &uart12;
serial14 = &uart14;
serial16 = &uart16;
};
chosen {
@ -33,10 +37,6 @@
};
};
&uart0 {
status = "okay";
};
&clk {
assigned-clocks = <&clk CAPLL>,
<&clk DDRPLL>,
@ -54,3 +54,78 @@
"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";
};