Configured as digital input pin do not change value ?

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

Configured as digital input pin do not change value ?

1,022 次查看
nirmalpanchal
Contributor II

Hi,

I am using DART 6UL CPU for one of my custom board

ref: DART-6UL CPU: NXP/Freescale i.MX 6UltraLite / i.MX 6ULL - Variscite 

I want to configure 8 Digital Input pins out of which I have successfully configured 7.

But I am not able to drive GPIO1_0 as an input pin.

I removed GPIO1_0 from my dtsi file, in order to make it usable from user space.

I can configure pin as input using

echo 0 > /sys/class/gpio/export

echo in > /sys/class/gpio/gpio0/direction

and it also appears in the /sys/kernel/debug/gpio list.

But it do not change its value when driven high or low.

Can anybody help me out here ??

Questions :

1. What could be possible cause ?

2. If uboot source could the reason , where i can find source file and where to look for it ?

3. Is there anyother way I can free the pin, to make sure it is not configured by kernel !

Thank you in advance.

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

751 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Nirmal

one can attach jtag and check gpio registers described in

i.MX6UL Reference Manual Chapter 4 External Signals and Pin Multiplexing,

Chapter 26 General Purpose Input/Output (GPIO)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf

for uboot one can look at variscite resources

Variscite · GitHub 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复