Skip to content

Commit

Permalink
ARM: dts: imx6q-arm2: move NANDF_CS pins out of 'hog'
Browse files Browse the repository at this point in the history
Commit 9e3c006 (ARM: dts: imx6q-arm2: add pinctrl for uart and enet)
defines NANDF_CS pins as gpio in 'hog', assuming these two pins are
always used by usdhc3 in gpio mode as card-detection and
write-protection on ARM2 board.  But it's not true.  These pins are
shared by usdhc3 and gpmi-nand.  We should have the pins functional
for gpmi-nand when usdhc3 is disabled.

Move the pins out of 'hog', so that pins only work in gpio mode as CD
and WP when usdhc3 is enabled, and otherwise they are available for
gpmi-nand.

Reported-by: Huang Shijie <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Tested-by: Huang Shijie <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
shawnguo2 authored and olofj committed Oct 16, 2012
1 parent 5448a27 commit 3d76f9f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/arm/boot/dts/imx6q-arm2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
pinctrl_hog: hoggrp {
fsl,pins = <
176 0x80000000 /* MX6Q_PAD_EIM_D25__GPIO_3_25 */
>;
};
};

arm2 {
pinctrl_usdhc3_arm2: usdhc3grp-arm2 {
fsl,pins = <
1363 0x80000000 /* MX6Q_PAD_NANDF_CS0__GPIO_6_11 */
1369 0x80000000 /* MX6Q_PAD_NANDF_CS1__GPIO_6_14 */
>;
Expand All @@ -58,7 +65,8 @@
wp-gpios = <&gpio6 14 0>;
vmmc-supply = <&reg_3p3v>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc3_1>;
pinctrl-0 = <&pinctrl_usdhc3_1
&pinctrl_usdhc3_arm2>;
status = "okay";
};

Expand Down

0 comments on commit 3d76f9f

Please sign in to comment.