Pinebook SDIO gpio control using SD card slot blog post
#7


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 @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( 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 1080p power/barrel connector/cable cel 0 791 08-03-2023, 11:43 AM
Last Post: cel
  eMMC compatible with Pinebook leperotero 0 1,593 07-19-2022, 07:15 AM
Last Post: leperotero
Heart [solved] Anyone selling their Pinebook? feyn 0 1,495 07-11-2022, 03:38 PM
Last Post: feyn
  Move PB Pro eMMC 128 GB to Pinebook 11 1080p petet0n76 1 2,030 06-07-2022, 10:35 PM
Last Post: tllim
  UART switch Pinebook 11.6" irongarment 3 3,912 01-03-2022, 03:28 AM
Last Post: kqlnut
Exclamation "6" Key direly needed for 11" Pinebook Corkonian 1 2,996 09-25-2021, 12:03 AM
Last Post: tllim
  SD card read/write troubles jezek 1 3,339 03-26-2021, 09:27 AM
Last Post: jezek
  Pinebook 14 " Battery Swollen/Bulged billjon 1 4,009 01-13-2021, 11:03 AM
Last Post: barray
  touchpad on pinebook issues? ron_burgundy 14 15,483 12-19-2020, 06:55 PM
Last Post: ron_burgundy
  CH341 boards for GPIO xalius 1 4,502 11-22-2020, 10:50 AM
Last Post: pinephonenewbee

Forum Jump:


Users browsing this thread: 1 Guest(s)