riscv: dts: starfive: jh7110: Add qspi controller node
authorWilliam Qiu <william.qiu@starfivetech.com>
Thu, 2 Mar 2023 08:42:57 +0000 (16:42 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:24:38 +0000 (08:24 +0900)
Add the quad spi controller node for the Starfive JH7110 SoC.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 1a16f3b..5ab1598 100644 (file)
                        status = "disabled";
                };
 
+               qspi: spi@13010000 {
+                       compatible = "starfive,jh7110-qspi", "cdns,qspi-nor";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x13010000 0x0 0x10000
+                              0x0 0x21000000 0x0 0x400000>;
+                       interrupts = <25>;
+                       clocks = <&syscrg JH7110_SYSCLK_QSPI_REF>;
+                       resets = <&syscrg JH7110_SYSRST_QSPI_APB>,
+                                <&syscrg JH7110_SYSRST_QSPI_AHB>,
+                                <&syscrg JH7110_SYSRST_QSPI_REF>;
+                       reset-names = "qspi", "qspi-ocp", "rstc_ref";
+                       cdns,fifo-depth = <256>;
+                       cdns,fifo-width = <4>;
+                       cdns,trigger-address = <0x0>;
+
+                       nor_flash: nor-flash@0 {
+                               compatible = "jedec,spi-nor";
+                               reg=<0>;
+                               cdns,read-delay = <5>;
+                               spi-max-frequency = <12000000>;
+                               cdns,tshsl-ns = <1>;
+                               cdns,tsd2d-ns = <1>;
+                               cdns,tchsh-ns = <1>;
+                               cdns,tslch-ns = <1>;
+
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       spl@0 {
+                                               reg = <0x0 0x20000>;
+                                       };
+                                       uboot@100000 {
+                                               reg = <0x100000 0x300000>;
+                                       };
+                                       data@f00000 {
+                                               reg = <0xf00000 0x100000>;
+                                       };
+                               };
+                       };
+               };
+
                syscrg: clock-controller@13020000 {
                        compatible = "starfive,jh7110-syscrg";
                        reg = <0x0 0x13020000 0x0 0x10000>;