Pinebook SDIO gpio control using SD card slot blog post

My first clue that the bindings may not be entirely correct is that inputs with active_low=1 don't work.  By default when I setup an input (used PF4 and PF5) then active_low=0 ;  which means the default state of the pin is zero and it becomes active 'high';  this works !  Set the pin to 3v3 and its value becomes 1.

On the other hand, if I set active_low=1 then the input pin does not work;  its value remains default '1' regardless of grounding the pin ( setting it to low zero ).  So, I suspect I need to revisit 'pull' and 'drive'  and fix whatever I don't understand there.

Note:   ofc an external pullup of 56K ohms works fine to invert the behavior of the input 

Note:   regardless, we have both input and output working with gpio block @sdc0 ( PF0 - PF5 )  gpio160 - gpio165.

Note:   need to make the dts generic ;  and get the C and Python routines working.

marcushh777    Cool

please join us for a chat @   or ssl

( I regret that I am not able to respond to personal messages;  let's meet on irc! )

Messages In This Thread
RE: Pinebook SDIO gpio control using SD card slot blog post - by MarkHaysHarris777 - 07-23-2017, 06:27 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  pinebook to pro upgrade path? dhosh 13 666 11-14-2019, 11:25 AM
Last Post: bcnaz
  Pinebook 11" Keyboard Corkonian 2 213 11-02-2019, 07:41 AM
Last Post: Corkonian
  Pinebook battery connector and reuse binholz 2 241 10-17-2019, 11:05 AM
Last Post: tophneal
  [SOLVED] Pinebook stopped to charge UltraBloxX 7 487 10-17-2019, 04:09 AM
Last Post: pfeerick
  Pinebook 1080p screen with other SBC? binholz 5 325 08-07-2019, 05:56 AM
Last Post: jezek
  Pinebook internals kodkuce 1 340 07-30-2019, 02:45 PM
Last Post: binholz
  how to install emmc in just arrived pinebook dkebler 11 6,633 06-13-2019, 01:13 AM
Last Post: zk1sps
  Pinebook Pro Video Out Options faroh8Je 2 191 06-12-2019, 05:16 AM
Last Post: Luke
  Pinebook HDMI not working DarkShadow 3 288 05-16-2019, 03:56 PM
Last Post: DarkShadow
  Pinebook Pro Network diagnostics hardware xavi 3 294 05-01-2019, 09:53 PM
Last Post: tllim

Forum Jump:

Users browsing this thread: 1 Guest(s)