]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: mx28: add gpmi-nand support
authorHuang Shijie <b32955@freescale.com>
Fri, 25 May 2012 09:25:35 +0000 (17:25 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 3 Jul 2012 05:22:34 +0000 (13:22 +0800)
add gpmi-nand device tree support.
add gpmi-nand pinctrl support.

Also enable the gpmi support for mx28-evk board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx28-evk.dts
arch/arm/boot/dts/imx28.dtsi

index ee520a529cb4a6406385b72a3717d00c8c791fbf..e53cf6716b9e95054dc50ecb874556d013d82b3a 100644 (file)
 
        apb@80000000 {
                apbh@80000000 {
+                       gpmi-nand@8000c000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
+                               status = "okay";
+                       };
+
                        ssp0: ssp@80010000 {
                                compatible = "fsl,imx28-mmc";
                                pinctrl-names = "default";
index 4634cb861a597d115b5f6dab784da3a616c81b01..a89da5ac71f70de48d0e25119899c41c74e53532 100644 (file)
                                status = "disabled";
                        };
 
-                       bch@8000a000 {
-                               reg = <0x8000a000 2000>;
-                               interrupts = <41>;
-                               status = "disabled";
-                       };
-
-                       gpmi@8000c000 {
-                               reg = <0x8000c000 2000>;
-                               interrupts = <42 88>;
+                       gpmi-nand@8000c000 {
+                               compatible = "fsl,imx28-gpmi-nand";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               reg = <0x8000c000 2000>, <0x8000a000 2000>;
+                               reg-names = "gpmi-nand", "bch";
+                               interrupts = <88>, <41>;
+                               interrupt-names = "gpmi-dma", "bch";
+                               fsl,gpmi-dma-channel = <4>;
                                status = "disabled";
                        };
 
                                        fsl,pull-up = <0>;
                                };
 
+                               gpmi_pins_a: gpmi-nand@0 {
+                                       reg = <0>;
+                                       fsl,pinmux-ids = <0x0000 0x0010 0x0020
+                                               0x0030 0x0040 0x0050 0x0060
+                                               0x0070 0x0100 0x0110 0x0140
+                                               0x0150 0x0180 0x0190 0x01a0
+                                               0x01b0 0x01c0>;
+                                       fsl,drive-strength = <0>;
+                                       fsl,voltage = <1>;
+                                       fsl,pull-up = <0>;
+                               };
+
+                               gpmi_status_cfg: gpmi-status-cfg {
+                                       fsl,pinmux-ids = <0x0180 0x0190 0x01c0>;
+                                       fsl,drive-strength = <2>;
+                               };
+
                                mac0_pins_a: mac0@0 {
                                        reg = <0>;
                                        fsl,pinmux-ids = <0x4000 0x4010 0x4020