ARM: dts: uniphier: add Denali NAND controller node
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 9 Aug 2017 16:43:30 +0000 (01:43 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 15 Aug 2017 16:47:01 +0000 (01:47 +0900)
Add NAND controller node to LD4, Pro4, sLD8, Pro5, and PXs2.
Set up pinctrl to enable 2 chip select lines except Pro4.  The CS1
for Pro4 is multiplexed with other peripherals such as UART2, so
I did not enable it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/boot/dts/uniphier-ld4-ref.dts
arch/arm/boot/dts/uniphier-ld4.dtsi
arch/arm/boot/dts/uniphier-ld6b-ref.dts
arch/arm/boot/dts/uniphier-pro4-ref.dts
arch/arm/boot/dts/uniphier-pro4.dtsi
arch/arm/boot/dts/uniphier-pro5.dtsi
arch/arm/boot/dts/uniphier-pxs2.dtsi
arch/arm/boot/dts/uniphier-sld8-ref.dts
arch/arm/boot/dts/uniphier-sld8.dtsi

index 86b089e9c163ce358db9140eec719a1fd3c0fbab..b3aaab354f3e0e8ff842db3549f865e7c1c60e10 100644 (file)
@@ -64,3 +64,7 @@
 &usb1 {
        status = "okay";
 };
+
+&nand {
+       status = "okay";
+};
index 5d3924c8568c68488d62648c5f6cfd9f2779cc61..91410609b1819f67532d3a1746b43b67935107bf 100644 (file)
                                #reset-cells = <1>;
                        };
                };
+
+               nand: nand@68000000 {
+                       compatible = "socionext,uniphier-denali-nand-v5a";
+                       status = "disabled";
+                       reg-names = "nand_data", "denali_reg";
+                       reg = <0x68000000 0x20>, <0x68100000 0x1000>;
+                       interrupts = <0 65 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_nand2cs>;
+                       clocks = <&sys_clk 2>;
+               };
        };
 };
 
index 6dbdc86225e9f0c42ef4c2f0b3fc50443b470238..2188d114d79b06c9b9b1bfde5d8cee1bc82e02df 100644 (file)
@@ -58,3 +58,7 @@
 &i2c0 {
        status = "okay";
 };
+
+&nand {
+       status = "okay";
+};
index d3be37b2ac35a38b7e0ee05d50eac7ca45cacc8e..903df6348e77db51d2bcc86d2aa1d32a0cf3dece 100644 (file)
@@ -66,3 +66,7 @@
 &usb3 {
        status = "okay";
 };
+
+&nand {
+       status = "okay";
+};
index 394b35e1082df1b956b87748b75d52a28b8bfd3f..0c43d7836015a3f2e0a2e65bcebd52e9f0b76212 100644 (file)
                                #reset-cells = <1>;
                        };
                };
+
+               nand: nand@68000000 {
+                       compatible = "socionext,uniphier-denali-nand-v5a";
+                       status = "disabled";
+                       reg-names = "nand_data", "denali_reg";
+                       reg = <0x68000000 0x20>, <0x68100000 0x1000>;
+                       interrupts = <0 65 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_nand>;
+                       clocks = <&sys_clk 2>;
+               };
        };
 };
 
index df0506b58330136b41afac7861dc4621d040511a..36b64e53ed2ece4a4faaba36a9dfb2aebb3cfe56 100644 (file)
                                #reset-cells = <1>;
                        };
                };
+
+               nand: nand@68000000 {
+                       compatible = "socionext,uniphier-denali-nand-v5b";
+                       status = "disabled";
+                       reg-names = "nand_data", "denali_reg";
+                       reg = <0x68000000 0x20>, <0x68100000 0x1000>;
+                       interrupts = <0 65 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_nand2cs>;
+                       clocks = <&sys_clk 2>;
+               };
        };
 };
 
index c26d4ba1b9c3242b79d2d8b0db78ea070ea246b3..ed2b9a4516aa901a6bfb56824e4c36115ba577f4 100644 (file)
                                #reset-cells = <1>;
                        };
                };
+
+               nand: nand@68000000 {
+                       compatible = "socionext,uniphier-denali-nand-v5b";
+                       status = "disabled";
+                       reg-names = "nand_data", "denali_reg";
+                       reg = <0x68000000 0x20>, <0x68100000 0x1000>;
+                       interrupts = <0 65 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_nand2cs>;
+                       clocks = <&sys_clk 2>;
+               };
        };
 };
 
index 394f5df62eda8606eb86bf84eb461adb8e9e4fbe..5accd3cc76e4aaee7471f0ce7542bfc7eb6d1ac9 100644 (file)
@@ -68,3 +68,7 @@
 &usb2 {
        status = "okay";
 };
+
+&nand {
+       status = "okay";
+};
index 0c022fa5640cbf1c04cf2330ff218fd0df3bf597..5b0b2f8225193e65202cc169eea7285bec5d9cb8 100644 (file)
                                #reset-cells = <1>;
                        };
                };
+
+               nand: nand@68000000 {
+                       compatible = "socionext,uniphier-denali-nand-v5a";
+                       status = "disabled";
+                       reg-names = "nand_data", "denali_reg";
+                       reg = <0x68000000 0x20>, <0x68100000 0x1000>;
+                       interrupts = <0 65 4>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_nand2cs>;
+                       clocks = <&sys_clk 2>;
+               };
        };
 };