From 7fd3742946f44d74aaaf57b8ccc611c96f34f161 Mon Sep 17 00:00:00 2001 From: Jon Lin Date: Wed, 8 Sep 2021 15:27:12 +0800 Subject: [PATCH] ARM: dts: rockchip: add flash subnode to sfc for rv1126 board Change-Id: I0b104a67f0714ed9c0a82ad4afecb90c8f8817a9 Signed-off-by: Jon Lin --- arch/arm/boot/dts/rv1109-38-v10-spi-nand.dts | 8 ++++++++ arch/arm/boot/dts/rv1126-38x38-v10-spi-nor.dts | 8 ++++++++ arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1-spi-nand.dts | 8 ++++++++ arch/arm/boot/dts/rv1126-evb-v10.dtsi | 8 ++++++++ arch/arm/boot/dts/rv1126-thunder-boot-spi-nor.dtsi | 12 ++++++++++++ 5 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/rv1109-38-v10-spi-nand.dts b/arch/arm/boot/dts/rv1109-38-v10-spi-nand.dts index b1bce5e674f1..aea08bd6df0e 100644 --- a/arch/arm/boot/dts/rv1109-38-v10-spi-nand.dts +++ b/arch/arm/boot/dts/rv1109-38-v10-spi-nand.dts @@ -312,6 +312,14 @@ &sfc { status = "okay"; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + spi-max-frequency = <80000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; }; &u2phy_host { diff --git a/arch/arm/boot/dts/rv1126-38x38-v10-spi-nor.dts b/arch/arm/boot/dts/rv1126-38x38-v10-spi-nor.dts index 603abdf0c945..6b920f75f36a 100644 --- a/arch/arm/boot/dts/rv1126-38x38-v10-spi-nor.dts +++ b/arch/arm/boot/dts/rv1126-38x38-v10-spi-nor.dts @@ -455,4 +455,12 @@ &sfc { status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <100000000>; + spi-rx-bus-width = <2>; + spi-tx-bus-width = <2>; + }; }; diff --git a/arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1-spi-nand.dts b/arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1-spi-nand.dts index f9944e0202a6..842093587a58 100644 --- a/arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1-spi-nand.dts +++ b/arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1-spi-nand.dts @@ -17,5 +17,13 @@ &sfc { status = "okay"; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + spi-max-frequency = <80000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; }; diff --git a/arch/arm/boot/dts/rv1126-evb-v10.dtsi b/arch/arm/boot/dts/rv1126-evb-v10.dtsi index 2a23c7703002..e3207ca3f9ac 100644 --- a/arch/arm/boot/dts/rv1126-evb-v10.dtsi +++ b/arch/arm/boot/dts/rv1126-evb-v10.dtsi @@ -1301,6 +1301,14 @@ /delete-property/ pinctrl-names; /delete-property/ pinctrl-0; status = "okay"; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + spi-max-frequency = <80000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; }; &u2phy0 { diff --git a/arch/arm/boot/dts/rv1126-thunder-boot-spi-nor.dtsi b/arch/arm/boot/dts/rv1126-thunder-boot-spi-nor.dtsi index fb8ce5530e13..a8aec203f0b5 100644 --- a/arch/arm/boot/dts/rv1126-thunder-boot-spi-nor.dtsi +++ b/arch/arm/boot/dts/rv1126-thunder-boot-spi-nor.dtsi @@ -13,3 +13,15 @@ memory-region-dst = <&ramdisk_r>; }; }; + +&sfc { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <108000000>; + spi-rx-bus-width = <2>; + spi-tx-bus-width = <2>; + }; +};