How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure MX28_PAD_GPMI_D00__GPMI_D0 as GPIO

Jump to solution
1,092 Views
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

Labels (1)
Tags (3)
0 Kudos
1 Solution
757 Views
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.

View solution in original post

0 Kudos
2 Replies
758 Views
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 Kudos
757 Views
RandyGraham
Contributor IV

Thanks Marek, that worked.

0 Kudos