How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

跳至解决方案
1,167 次查看
RandyGraham
Contributor IV

Hello,

We are not using GPMI Nand on our imx28 board and want to use MX28_PAD_GPMI_D00__GPMI_D0 as GPIO.

Can this be completely configured in the DTS file? If so how ?

I know that somewhere I need to add ,

fsl,pinmux-ids = <

0x0003

>

but am not sure where it should go.

Also what are the 'hog_pin_a' used for ?

I see that these are configured as GPIO.

I have been poking around the .dts files and support docs and am still quite confused.

Thanks for any help.

-Randy

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
832 次查看
MarekVasut
Senior Contributor I

See Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt .

The pinctrl@80018000 has it's own pinctrl configuration, this is specified by it's pinctrl-0 prop. This is pointing to the hog_pins_a , so all pins in the hog_pins_a group are configured when the pinctrl block is probed. So yes, sticking your pin there would configure it as a GPIO.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
833 次查看
MarekVasut
Senior Contributor I

See Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt .

The pinctrl@80018000 has it's own pinctrl configuration, this is specified by it's pinctrl-0 prop. This is pointing to the hog_pins_a , so all pins in the hog_pins_a group are configured when the pinctrl block is probed. So yes, sticking your pin there would configure it as a GPIO.

0 项奖励
回复
832 次查看
RandyGraham
Contributor IV

Thanks Marek, that worked.

0 项奖励
回复