6a66d996680c21e30af552df98b1bbb5885503d0
[openwrt/staging/ansuel.git] /
1 From a86e88043de929da76f7f6cf0990ba92aed8391a Mon Sep 17 00:00:00 2001
2 From: Heiko Stuebner <heiko.stuebner@cherry.de>
3 Date: Tue, 5 Dec 2023 17:48:42 +0100
4 Subject: [PATCH] arm64: dts: rockchip: add rk3588 spi aliases to soc dtsi
5
6 The spi controllers on rk3588 are named spi0 - spi4. 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 spi access is a thing afterall.
10
11 To prevent each board repeating their list of spi aliases, define them
12 in the soc dtsi, as previous Rockchip soc like the rk356x 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-5-heiko@sntech.de
17 ---
18 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 5 +++++
19 1 file changed, 5 insertions(+)
20
21 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
22 +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
23 @@ -43,6 +43,11 @@
24 serial7 = &uart7;
25 serial8 = &uart8;
26 serial9 = &uart9;
27 + spi0 = &spi0;
28 + spi1 = &spi1;
29 + spi2 = &spi2;
30 + spi3 = &spi3;
31 + spi4 = &spi4;
32 };
33
34 cpus {