mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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:
parent
0dfa542df9
commit
82d7cf5655
2 changed files with 155 additions and 8 deletions
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue