2daaec395351f24c715375cacdc62fc20e958535
[openwrt/staging/ansuel.git] /
1 From 328e901b7b03d292c1520ffb38e9164feef4f1ea Mon Sep 17 00:00:00 2001
2 From: Heiko Stuebner <heiko.stuebner@cherry.de>
3 Date: Tue, 5 Dec 2023 17:48:40 +0100
4 Subject: [PATCH] arm64: dts: rockchip: add rk3588 i2c aliases to soc dtsi
5
6 The i2c controllers on rk3588 are named i2c0 - i2c8. 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 Userspace i2c access is a thing afterall.
10
11 To prevent each board repeating their list of i2c aliases, define them
12 in the soc dtsi, as all previous Rockchip soc do already.
13
14 Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
15 Reviewed-by: Dragan Simic <dsimic@manjaro.org>
16 Link: https://lore.kernel.org/r/20231205164842.556684-3-heiko@sntech.de
17 ---
18 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
22 +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
23 @@ -19,6 +19,15 @@
24 #size-cells = <2>;
25
26 aliases {
27 + i2c0 = &i2c0;
28 + i2c1 = &i2c1;
29 + i2c2 = &i2c2;
30 + i2c3 = &i2c3;
31 + i2c4 = &i2c4;
32 + i2c5 = &i2c5;
33 + i2c6 = &i2c6;
34 + i2c7 = &i2c7;
35 + i2c8 = &i2c8;
36 serial0 = &uart0;
37 serial1 = &uart1;
38 serial2 = &uart2;