Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: mx23: add gpmi nand support

Add DT node for gpmi nand.
Also add pinctrl for gpmi nand.

Enable the gpmi-nand in mx23-evk board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

authored by

Huang Shijie and committed by
Shawn Guo
b9f25f86 a915ee42

+49 -6
+6
arch/arm/boot/dts/imx23-evk.dts
··· 22 22 23 23 apb@80000000 { 24 24 apbh@80000000 { 25 + gpmi-nand@8000c000 { 26 + pinctrl-names = "default"; 27 + pinctrl-0 = <&gpmi_pins_a &gpmi_pins_fixup>; 28 + status = "okay"; 29 + }; 30 + 25 31 ssp0: ssp@80010000 { 26 32 compatible = "fsl,imx23-mmc"; 27 33 pinctrl-names = "default";
+43 -6
arch/arm/boot/dts/imx23.dtsi
··· 59 59 status = "disabled"; 60 60 }; 61 61 62 - bch@8000a000 { 63 - reg = <0x8000a000 2000>; 64 - status = "disabled"; 65 - }; 66 - 67 62 gpmi-nand@8000c000 { 68 - reg = <0x8000c000 2000>; 63 + compatible = "fsl,imx23-gpmi-nand"; 64 + #address-cells = <1>; 65 + #size-cells = <1>; 66 + reg = <0x8000c000 2000>, <0x8000a000 2000>; 67 + reg-names = "gpmi-nand", "bch"; 68 + interrupts = <13>, <56>; 69 + interrupt-names = "gpmi-dma", "bch"; 70 + fsl,gpmi-dma-channel = <4>; 69 71 status = "disabled"; 70 72 }; 71 73 ··· 138 136 fsl,drive-strength = <0>; 139 137 fsl,voltage = <1>; 140 138 fsl,pull-up = <0>; 139 + }; 140 + 141 + gpmi_pins_a: gpmi-nand@0 { 142 + reg = <0>; 143 + fsl,pinmux-ids = < 144 + 0x0000 /* MX23_PAD_GPMI_D00__GPMI_D00 */ 145 + 0x0010 /* MX23_PAD_GPMI_D01__GPMI_D01 */ 146 + 0x0020 /* MX23_PAD_GPMI_D02__GPMI_D02 */ 147 + 0x0030 /* MX23_PAD_GPMI_D03__GPMI_D03 */ 148 + 0x0040 /* MX23_PAD_GPMI_D04__GPMI_D04 */ 149 + 0x0050 /* MX23_PAD_GPMI_D05__GPMI_D05 */ 150 + 0x0060 /* MX23_PAD_GPMI_D06__GPMI_D06 */ 151 + 0x0070 /* MX23_PAD_GPMI_D07__GPMI_D07 */ 152 + 0x0100 /* MX23_PAD_GPMI_CLE__GPMI_CLE */ 153 + 0x0110 /* MX23_PAD_GPMI_ALE__GPMI_ALE */ 154 + 0x0130 /* MX23_PAD_GPMI_RDY0__GPMI_RDY0 */ 155 + 0x0140 /* MX23_PAD_GPMI_RDY1__GPMI_RDY1 */ 156 + 0x0170 /* MX23_PAD_GPMI_WPN__GPMI_WPN */ 157 + 0x0180 /* MX23_PAD_GPMI_WRN__GPMI_WRN */ 158 + 0x0190 /* MX23_PAD_GPMI_RDN__GPMI_RDN */ 159 + 0x21b0 /* MX23_PAD_GPMI_CE1N__GPMI_CE1N */ 160 + 0x21c0 /* MX23_PAD_GPMI_CE0N__GPMI_CE0N */ 161 + >; 162 + fsl,drive-strength = <0>; 163 + fsl,voltage = <1>; 164 + fsl,pull-up = <0>; 165 + }; 166 + 167 + gpmi_pins_fixup: gpmi-pins-fixup { 168 + fsl,pinmux-ids = < 169 + 0x0170 /* MX23_PAD_GPMI_WPN__GPMI_WPN */ 170 + 0x0180 /* MX23_PAD_GPMI_WRN__GPMI_WRN */ 171 + 0x0190 /* MX23_PAD_GPMI_RDN__GPMI_RDN */ 172 + >; 173 + fsl,drive-strength = <2>; 141 174 }; 142 175 143 176 mmc0_4bit_pins_a: mmc0-4bit@0 {