How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

ソリューションへジャンプ
1,150件の閲覧回数
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 解決策
815件の閲覧回数
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 返答(返信)
816件の閲覧回数
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 件の賞賛
815件の閲覧回数
RandyGraham
Contributor IV

Thanks Marek, that worked.

0 件の賞賛