arm64: dts: rockchip: Enable SPI flash on PinePhone Pro
authorPeter Robinson <pbrobinson@gmail.com>
Sun, 23 Jun 2024 20:46:14 +0000 (21:46 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 24 Jun 2024 16:14:02 +0000 (18:14 +0200)
The PinePhone Pro as SPI flash on board so enable the SPI
interface and the flash.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Link: https://lore.kernel.org/r/20240623204616.1344806-1-pbrobinson@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts

index e5709c7ee06aae00de16032d5d2fb01ffd7ffc47..f474c2268753070ab4783761323a8d77c158e0ac 100644 (file)
        status = "okay";
 };
 
+&spi1 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+       };
+};
+
 &tsadc {
        rockchip,hw-tshut-mode = <1>;
        rockchip,hw-tshut-polarity = <1>;