]> git.sur5r.net Git - u-boot/commitdiff
dts: cadence_spi: Sync DT bindings with Linux
authorJason Rush <jarush@gmail.com>
Tue, 23 Jan 2018 23:13:10 +0000 (17:13 -0600)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 24 Jan 2018 06:37:50 +0000 (12:07 +0530)
Adopt the Linux DT bindings and clean-up duplicate
and unused values.

Fix indentation of the QSPI node in the keystone k2g
device tree.

Tested on TI K2G platform:
Tested-by: Vignesh R <vigneshr@ti.com>
Tested on a socfpga-cyclonev board:
Tested-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Signed-off-by: Jason Rush <jarush@gmail.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Acked-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Marek Vasut <marex@denx.de>
12 files changed:
arch/arm/dts/keystone-k2g-evm.dts
arch/arm/dts/keystone-k2g.dtsi
arch/arm/dts/socfpga.dtsi
arch/arm/dts/socfpga_arria10.dtsi
arch/arm/dts/socfpga_arria5_socdk.dts
arch/arm/dts/socfpga_cyclone5_is1.dts
arch/arm/dts/socfpga_cyclone5_socdk.dts
arch/arm/dts/socfpga_cyclone5_sockit.dts
arch/arm/dts/socfpga_cyclone5_socrates.dts
arch/arm/dts/socfpga_cyclone5_sr1500.dts
arch/arm/dts/socfpga_cyclone5_vining_fpga.dts
arch/arm/dts/stv0991.dts

index de208b36134f12eb24e05f7219d0975117083e03..ad746c731106a8d60a0144bb28258148adca6f53 100644 (file)
 &qspi {
        status = "okay";
 
-        flash0: m25p80@0 {
-                compatible = "s25fl512s","spi-flash";
-                reg = <0>;
-                spi-tx-bus-width = <1>;
-                spi-rx-bus-width = <4>;
-                spi-max-frequency = <96000000>;
-                #address-cells = <1>;
-                #size-cells = <1>;
-                tshsl-ns = <392>;
-                tsd2d-ns = <392>;
-                tchsh-ns = <100>;
-                tslch-ns = <100>;
+       flash0: m25p80@0 {
+               compatible = "s25fl512s","spi-flash";
+               reg = <0>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <4>;
+               spi-max-frequency = <96000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               cdns,tshsl-ns = <392>;
+               cdns,tsd2d-ns = <392>;
+               cdns,tchsh-ns = <100>;
+               cdns,tslch-ns = <100>;
                block-size = <18>;
 
-
-                partition@0 {
-                        label = "QSPI.u-boot-spl-os";
-                        reg = <0x00000000 0x00100000>;
-                };
-                partition@1 {
-                        label = "QSPI.u-boot-env";
-                        reg = <0x00100000 0x00040000>;
-                };
-                partition@2 {
-                        label = "QSPI.skern";
-                        reg = <0x00140000 0x0040000>;
-                };
-                partition@3 {
-                        label = "QSPI.pmmc-firmware";
-                        reg = <0x00180000 0x0040000>;
-                };
-                partition@4 {
-                        label = "QSPI.kernel";
-                        reg = <0x001C0000 0x0800000>;
-                };
-                partition@5 {
-                        label = "QSPI.file-system";
-                        reg = <0x009C0000 0x3640000>;
-                };
-        };
+               partition@0 {
+                       label = "QSPI.u-boot-spl-os";
+                       reg = <0x00000000 0x00100000>;
+               };
+               partition@1 {
+                       label = "QSPI.u-boot-env";
+                       reg = <0x00100000 0x00040000>;
+               };
+               partition@2 {
+                       label = "QSPI.skern";
+                       reg = <0x00140000 0x0040000>;
+               };
+               partition@3 {
+                       label = "QSPI.pmmc-firmware";
+                       reg = <0x00180000 0x0040000>;
+               };
+               partition@4 {
+                       label = "QSPI.kernel";
+                       reg = <0x001C0000 0x0800000>;
+               };
+               partition@5 {
+                       label = "QSPI.file-system";
+                       reg = <0x009C0000 0x3640000>;
+               };
+       };
 };
 
 &mmc0 {
index 7b2fae6860506ae48de368f800d1945240cb4a7a..9bcfea6d86377f7dbaffa97f6000b2d05b97e530 100644 (file)
@@ -92,8 +92,9 @@
                              <0x24000000 0x4000000>;
                        interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>;
                        num-cs = <4>;
-                       fifo-depth = <256>;
-                       sram-size = <256>;
+                       cdns,fifo-depth = <256>;
+                       cdns,fifo-width = <4>;
+                       cdns,trigger-address = <0x24000000>;
                        status = "disabled";
                };
 
index 8588221e572f83a9f68fb668cb123902846b3bb9..7557aa01e564b5160ab8caf692508990de570f49 100644 (file)
                        clocks = <&qspi_clk>;
                        ext-decoder = <0>;  /* external decoder */
                        num-cs = <4>;
-                       fifo-depth = <128>;
-                       sram-size = <128>;
+                       cdns,fifo-depth = <128>;
+                       cdns,fifo-width = <4>;
+                       cdns,trigger-address = <0x00000000>;
                        bus-num = <2>;
                        status = "disabled";
                };
index 377700df1195c90376ddd52b49d7ea89fc57260b..abfd0bc4f8f5be5a2f430c56de203e06da4d832a 100644 (file)
                        clocks = <&l4_main_clk>;
                        ext-decoder = <0>;  /* external decoder */
                        num-chipselect = <4>;
-                       fifo-depth = <128>;
-                       sram-size = <512>;
+                       cdns,fifo-depth = <128>;
+                       cdns,fifo-width = <4>;
                        bus-num = <2>;
                        status = "disabled";
                };
index 726505821f027b113c560cc9b092d53b4a9d0031..1e91a65af6b197ec331231c1eb80a9400d8a11f1 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
index 16a32837102731ca8270017a468cde237dc8e9f1..2e2b71fefb6c4771b0f4b98741f9eb4e2e541e74 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
 
index f175ef2ead9d76ac1c08bb9c969d10dcf2aa644e..95a8e653d7f51855db33407047394fe1f5b65835 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
 
index e45c2abbc2b88329a91d1c6aa34c8395a7e38ff4..6f42b88130d2942223c0d3377b3d4df52dc19b87 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
 
index bdd93248fb009a6b7b4adf6941977306651fb166..e3ae8a820795d17cbabdbf564ed95313fccd76df 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
 
index 739bbb7f3d3ee89696df92c58fcc0856320efd30..e24830af57edc1e5f41b3ec7c257005c0f2f5849 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
index f168e4ff996531e1021ea606310093a3a9f5b80a..a0febe91b0ab77ce7f8dc7ef809fdd87ea53a2fc 100644 (file)
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 
        flash1: n25q00@1 {
                m25p,fast-read;
                page-size = <256>;
                block-size = <16>; /* 2^16, 64KB */
-               read-delay = <4>;  /* delay value in read data capture register */
-               tshsl-ns = <50>;
-               tsd2d-ns = <50>;
-               tchsh-ns = <4>;
-               tslch-ns = <4>;
+               cdns,tshsl-ns = <50>;
+               cdns,tsd2d-ns = <50>;
+               cdns,tchsh-ns = <4>;
+               cdns,tslch-ns = <4>;
        };
 };
 
index fa3fd641b23d95ddf94991a9e9ff636e826f4739..bceac09154259f1dd86c0c67be9291ca53fd28a2 100644 (file)
@@ -32,7 +32,9 @@
                        reg = <0x80203000 0x100>,
                                <0x40000000 0x1000000>;
                        clocks = <3750000>;
-                       sram-size = <256>;
+                       cdns,fifo-depth = <256>;
+                       cdns,fifo-width = <4>;
+                       cdns,trigger-address = <0x40000000>;
                        status = "okay";
 
                        flash0: n25q32@0 {
                                m25p,fast-read;
                                page-size = <256>;
                                block-size = <16>;      /* 2^16, 64KB */
-                               tshsl-ns = <50>;
-                               tsd2d-ns = <50>;
-                               tchsh-ns = <4>;
-                               tslch-ns = <4>;
+                               cdns,tshsl-ns = <50>;
+                               cdns,tsd2d-ns = <50>;
+                               cdns,tchsh-ns = <4>;
+                               cdns,tslch-ns = <4>;
                        };
        };
 };