Problem locating/removing code relating to the device tree pin_hog pins

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

Problem locating/removing code relating to the device tree pin_hog pins

跳至解决方案
848 次查看
spearson
Contributor III

Problem: I am unable to reassign MX28_PAD_SSP1_DATA3__GPIO_2_15 for use on custom hardware.

I am using the Linux mainline kernel (3.8.4) and have a custom board that is similar to the imx28evk. I have setup my own board configuration and have do not have the pin_hog code in my device tree but I am still unable to gpio_request() the pin.

I am assuming that this is still being assigned as the FEC0 Power Enable but I cannot find where Linux is grabbing control of the pin.

Any help with this specific pin and, in general, how to locate and remove code associated with pin_hog pins would be appreciated.

标签 (1)
0 项奖励
回复
1 解答
710 次查看
spearson
Contributor III

Found it.

myfile.dts

regulators{

...

     reg_fec_3v3: fec-3v3 {

          ...

          gpio = <&gpio2 15 0>

          ...

在原帖中查看解决方案

0 项奖励
回复
1 回复
711 次查看
spearson
Contributor III

Found it.

myfile.dts

regulators{

...

     reg_fec_3v3: fec-3v3 {

          ...

          gpio = <&gpio2 15 0>

          ...

0 项奖励
回复