]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: zynq: add NAND flash controller node
authorMichael Walle <michael@walle.cc>
Wed, 23 Feb 2022 14:10:34 +0000 (15:10 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Mar 2022 07:52:20 +0000 (08:52 +0100)
Recently, a driver for the ARM Primecell PL35x static memory controller
(including NAND controller) was added in linux. Add the corresponding
device tree node.

Also update cfi-flash registers and location in DT.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20210616155437.27378-3-michael@walle.cc
Link: https://lore.kernel.org/r/ee81d3846a1ce93f240d61537d404796e5599c1c.1645625433.git.michal.simek@xilinx.com
arch/arm/dts/bitmain-antminer-s9.dts
arch/arm/dts/zynq-7000.dtsi
arch/arm/dts/zynq-zc770-xm011.dts

index 0694350555f5cadeb49be218e19f2b3ed446f9a2..408862bef04294ed9787164b68b0fdee5e2adf6d 100644 (file)
@@ -50,7 +50,7 @@
        ps-clk-frequency = <33333333>;
 };
 
-&nand0 {
+&nfc0 {
        status = "okay";
 };
 
index 4dda753671c20ae29b6cdae35ad34d7242151c16..9495911397eb9096cb38e54e2b1b8aa843a60ee8 100644 (file)
                        #size-cells = <0>;
                };
 
-               smcc: memory-controller@e000e000 {
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-                       status = "disabled";
-                       clock-names = "memclk", "apb_pclk";
-                       clocks = <&clkc 11>, <&clkc 44>;
-                       compatible = "arm,pl353-smc-r2p1", "arm,primecell";
-                       interrupt-parent = <&intc>;
-                       interrupts = <0 18 4>;
-                       ranges ;
-                       reg = <0xe000e000 0x1000>;
-                       nand0: flash@e1000000 {
-                               status = "disabled";
-                               compatible = "arm,pl353-nand-r2p1";
-                               reg = <0xe1000000 0x1000000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                       };
-                       nor0: flash@e2000000 {
-                               status = "disabled";
-                               compatible = "cfi-flash";
-                               reg = <0xe2000000 0x2000000>;
-                               #address-cells = <1>;
-                               #size-cells = <1>;
-                       };
-               };
-
                gem0: ethernet@e000b000 {
                        compatible = "cdns,zynq-gem", "cdns,gem";
                        reg = <0xe000b000 0x1000>;
                        #size-cells = <0>;
                };
 
+               smcc: memory-controller@e000e000 {
+                       compatible = "arm,pl353-smc-r2p1", "arm,primecell";
+                       reg = <0xe000e000 0x0001000>;
+                       status = "disabled";
+                       clock-names = "memclk", "apb_pclk";
+                       clocks = <&clkc 11>, <&clkc 44>;
+                       ranges = <0x0 0x0 0xe1000000 0x1000000 /* Nand CS region */
+                                 0x1 0x0 0xe2000000 0x2000000 /* SRAM/NOR CS0 region */
+                                 0x2 0x0 0xe4000000 0x2000000>; /* SRAM/NOR CS1 region */
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <0 18 4>;
+
+                       nfc0: nand-controller@0,0 {
+                               compatible = "arm,pl353-nand-r2p1";
+                               reg = <0 0 0x1000000>;
+                               status = "disabled";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+                       nor0: flash@1,0 {
+                               status = "disabled";
+                               compatible = "cfi-flash";
+                               reg = <1 0 0x2000000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                       };
+               };
+
                sdhci0: mmc@e0100000 {
                        compatible = "arasan,sdhci-8.9a";
                        status = "disabled";
index b6e3e255d731ce50c73372c079669231f05e0a4f..0ef2ae1744f2479a987552ef50a292818397c09a 100644 (file)
@@ -47,7 +47,7 @@
        };
 };
 
-&nand0 {
+&nfc0 {
        status = "okay";
 };