AnsweredAssumed Answered

is the SION bit require to read a GPIO

Question asked by Cliff Brake on Jul 7, 2016
Latest reply on Nov 24, 2016 by Harald Walter


Hi,

 

I'm working with a i.MX6UL+Linux and configuring GPIO via /sys/class/gpio... If I configure a GPIO as an output, the only way I can read back the value (cat /sys/class/gpio/gpioX/value) seems to be to set the SION bit, otherwise its always 0.  Is this correct, or am I missing something?

 

Additionally, how does one set the SION bit in Device Tree files?  (Thus far, I've just been setting it manually to test using devmem2).

 

Thanks,
Cliff

Outcomes