arm64: dts: rockchip: Enable internal SPI flash for ROCK Pi 4A/B/C
authorStefan Nagy <stefan.nagy@ixypsilon.net>
Fri, 11 Aug 2023 20:11:18 +0000 (22:11 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 12 Aug 2023 12:15:07 +0000 (14:15 +0200)
The ROCK Pi 4A, ROCK Pi 4B and ROCK Pi 4C boards contain a nor-flash chip
connected to spi1. Enable spi1 and add the device node.

This patch has been tested on ROCK Pi 4A.

Signed-off-by: Stefan Nagy <stefan.nagy@ixypsilon.net>
Link: https://lore.kernel.org/r/20230811201118.15066-1-stefan.nagy@ixypsilon.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a.dts
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4b.dts
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts

index 931334aa3d62788a7650b28b6b616429f60cd5a7..d5df8939a65819b2fe764c8fb004fb1757110df9 100644 (file)
        model = "Radxa ROCK Pi 4A";
        compatible = "radxa,rockpi4a", "radxa,rockpi4", "rockchip,rk3399";
 };
+
+&spi1 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+       };
+};
index e98a182f8572caba98ad96498775bd5552ccd975..bee6d75883027dee42835984de9522295a26ddaa 100644 (file)
        };
 };
 
+&spi1 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+       };
+};
+
 &uart0 {
        status = "okay";
 
index d32efab74e94345830265ad6ee8985b8e8cdecdd..de2ebe4cb4f3a43d02de94f807bea9eb66806834 100644 (file)
        hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
 };
 
+&spi1 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+       };
+};
+
 &uart0 {
        status = "okay";