88919893a3c3f3bdc93dd2ee364abf893df0336a
[openwrt/staging/blocktrron.git] /
1 From 9918d10d16665527e59fdb87c5acac70cc1cfe8f Mon Sep 17 00:00:00 2001
2 From: Heiko Stuebner <heiko.stuebner@cherry.de>
3 Date: Tue, 5 Dec 2023 17:48:39 +0100
4 Subject: [PATCH] arm64: dts: rockchip: move rk3588 serial aliases to soc dtsi
5
6 The serial ports on rk3588 are named uart0 - uart9. Board schematics
7 also use these exact numbers and we want those names to also reflect
8 in the OS devices because everything else would just cause confusion.
9
10 To prevent each board repeating their list of serial aliases, move them
11 to the soc dtsi, as all previous Rockchip soc do already.
12
13 Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
14 Reviewed-by: Dragan Simic <dsimic@manjaro.org>
15 Link: https://lore.kernel.org/r/20231205164842.556684-2-heiko@sntech.de
16 ---
17 .../boot/dts/rockchip/rk3588-edgeble-neu6a-io.dts | 4 ----
18 .../boot/dts/rockchip/rk3588-edgeble-neu6b-io.dts | 4 ----
19 arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts | 1 -
20 arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 1 -
21 .../boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 1 -
22 arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts | 1 -
23 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 1 -
24 arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi | 2 --
25 .../boot/dts/rockchip/rk3588s-indiedroid-nova.dts | 1 -
26 .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 1 -
27 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts | 1 -
28 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 1 -
29 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 13 +++++++++++++
30 13 files changed, 13 insertions(+), 19 deletions(-)
31
32 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dts
33 +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-io.dts
34 @@ -12,10 +12,6 @@
35 compatible = "edgeble,neural-compute-module-6a-io",
36 "edgeble,neural-compute-module-6a", "rockchip,rk3588";
37
38 - aliases {
39 - serial2 = &uart2;
40 - };
41 -
42 chosen {
43 stdout-path = "serial2:1500000n8";
44 };
45 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6b-io.dts
46 +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6b-io.dts
47 @@ -12,10 +12,6 @@
48 compatible = "edgeble,neural-compute-module-6b-io",
49 "edgeble,neural-compute-module-6b", "rockchip,rk3588";
50
51 - aliases {
52 - serial2 = &uart2;
53 - };
54 -
55 chosen {
56 stdout-path = "serial2:1500000n8";
57 };
58 --- a/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
59 +++ b/arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts
60 @@ -16,7 +16,6 @@
61
62 aliases {
63 mmc0 = &sdhci;
64 - serial2 = &uart2;
65 };
66
67 chosen {
68 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
69 +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
70 @@ -19,7 +19,6 @@
71 aliases {
72 mmc0 = &sdhci;
73 mmc1 = &sdmmc;
74 - serial2 = &uart2;
75 };
76
77 chosen {
78 --- a/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts
79 +++ b/arch/arm64/boot/dts/rockchip/rk3588s-indiedroid-nova.dts
80 @@ -15,7 +15,6 @@
81 mmc0 = &sdhci;
82 mmc1 = &sdmmc;
83 mmc2 = &sdio;
84 - serial2 = &uart2;
85 };
86
87 chosen {
88 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
89 +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
90 @@ -12,7 +12,6 @@
91
92 aliases {
93 mmc0 = &sdhci;
94 - serial2 = &uart2;
95 };
96
97 chosen {
98 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
99 +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts
100 @@ -14,7 +14,6 @@
101 aliases {
102 mmc0 = &sdhci;
103 mmc1 = &sdmmc;
104 - serial2 = &uart2;
105 };
106
107 analog-sound {
108 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
109 +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
110 @@ -18,6 +18,19 @@
111 #address-cells = <2>;
112 #size-cells = <2>;
113
114 + aliases {
115 + serial0 = &uart0;
116 + serial1 = &uart1;
117 + serial2 = &uart2;
118 + serial3 = &uart3;
119 + serial4 = &uart4;
120 + serial5 = &uart5;
121 + serial6 = &uart6;
122 + serial7 = &uart7;
123 + serial8 = &uart8;
124 + serial9 = &uart9;
125 + };
126 +
127 cpus {
128 #address-cells = <1>;
129 #size-cells = <0>;