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
  Anyone selling a Pinebook ams 2 3,501 09-08-2025, 09:26 AM
Last Post: ams
  Giving away a Pinebook Pro for free (with a broken hinge) tuxifan 4 4,101 09-01-2025, 12:24 AM
Last Post: alchemist
  pinebook 1080p power/barrel connector/cable cel 0 1,539 08-03-2023, 11:43 AM
Last Post: cel
  eMMC compatible with Pinebook leperotero 0 2,390 07-19-2022, 07:15 AM
Last Post: leperotero
Heart [solved] Anyone selling their Pinebook? feyn 0 2,264 07-11-2022, 03:38 PM
Last Post: feyn
  Move PB Pro eMMC 128 GB to Pinebook 11 1080p petet0n76 1 3,305 06-07-2022, 10:35 PM
Last Post: tllim
  UART switch Pinebook 11.6" irongarment 3 5,454 01-03-2022, 03:28 AM
Last Post: kqlnut
Exclamation "6" Key direly needed for 11" Pinebook Corkonian 1 4,064 09-25-2021, 12:03 AM
Last Post: tllim
  SD card read/write troubles jezek 1 4,284 03-26-2021, 09:27 AM
Last Post: jezek
  Pinebook 14 " Battery Swollen/Bulged billjon 1 5,076 01-13-2021, 11:03 AM
Last Post: barray

Forum Jump:


Users browsing this thread: 1 Guest(s)