imx287 GPIO default value

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

imx287 GPIO default value

720 次查看
adityapatil
Contributor II

hi, 

1. I am working on imx287 custom board using Linux-2.6.35.3

2. How can I keep the gpio value to be low by default.

3. After Restart my gpio are at high state 3.3v

-Thanks

Aditya

标签 (2)
0 项奖励
回复
1 回复

592 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Aditya,

You can program the GPIO at the initialization of the board it takes minimun time. 

First you need to export the GPIO you want to test to the user space:

echo XX > /sys/class/gpio/export

XX shall be determined by the following algorithm:

GPIOA_[B] is the GPIO you want to export, where "A" is the GPIO bank and "B" is the offset of the pin in the bank. if the first available GPIO bank is 0 // (iMX.28, for example)     XX = A*32 + B; else // first GPIO bank is 1     XX = (A-1)*32 + B;

Regards