Question on the RockPro64 RK3399 GPIOs...
#4
(04-10-2019, 06:02 PM)Faradn Wrote: Howdy,

Not using the /sys/class file IO method.
I'm mmap-ing the RK3399's IO and using address offsets
to read/write the IO. I've got the GPIO, I2C, SPI, 
I2S, & UART all mapped out. Whatever's available at
the 40-pin GPIO header is accessible via mmap'd IO.

Basically it's the methods used in the BCM2835 Library
for low-level IO. I've just translated the methods to 
work for an RK3399 instead of a BCM2835/7 that's used in 
a Pi 2/3B. 
https://www.airspayce.com/mikem/bcm2835/

So far so good...the methods work fine, I just can't get
GPIO3D[0]..[7] and GPIO4C[3]..[5] & GPIO4D[1]..[4]
to toggle. I'll have to check the schematic to verify
they're not used by any other devices.

/Faradn
I attach the spreadsheet ... its WIP as There are still a couple of anomalies that I am still looking into.


Attached Files
.xls   GPIORegisters.xls (Size: 70.5 KB / Downloads: 627)


Messages In This Thread
RE: Question on the RockPro64 RK3399 GPIOs... - by axelf - 04-14-2019, 09:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TPM module for rockpro64 misha64 0 228 12-03-2024, 06:19 PM
Last Post: misha64
  ROCKPro64 Battery Power Supply hoarfrosty 12 4,585 04-01-2024, 10:24 PM
Last Post: nano2
  Powering on the Rockpro64 JPT223 1 1,381 09-24-2023, 12:23 PM
Last Post: hoarfrosty
  ROCKPro64 with 16 ports SATA controller ZeblodS 19 29,855 12-18-2022, 06:25 PM
Last Post: heyghoge
  Using RPI hat on RockPro64? misterc 0 1,181 12-16-2022, 02:05 PM
Last Post: misterc
  PCIe bifurcation support (on RK3399) Arn 1 1,846 11-28-2022, 05:12 PM
Last Post: tllim
  GPIO on the RockPro64 - all pins high? colinmarc 2 2,312 11-18-2022, 10:20 AM
Last Post: colinmarc
  ROCKPro64 DOA ajtravis 8 8,490 11-08-2022, 03:40 AM
Last Post: ajtravis
  RockPro64 not booting up mvicha@gmail.com 0 1,493 09-19-2022, 07:35 AM
Last Post: mvicha@gmail.com
  GPIO Expander HAT for ROCKPro64 and Quartz64 CounterPillow 7 6,939 07-18-2022, 10:05 PM
Last Post: zer0sig

Forum Jump:


Users browsing this thread: 3 Guest(s)