Page 1 of 1

Android8.1 GPIO different between SOM-rk3399 and nanopc-t4

Posted: Mon Oct 14, 2019 10:51 am
by maya.b
Hi,

I've developed my own baseboard for the som-rk3399 and prototyped software with the nanopc-t4 while the hardware was being designed/built/debugged.

While the schematic for the SOM lists all the same GPIO pins as the t4, none of the GPIO pins in the GPIO demo on the t4 are visible on the SOM, and vice versa,

Unfortunately I cannot use the GPIOs exposed on the SOM with A8.1, because of an SPI device that's mux'd with one of the available GPIOs, so I can't simply remap the GPIO pins. (and making a hardware mod on a 240pin connector is tricky too!)

Is there an easy way to change this? I haven't found anything obvious in the Android8.1 build tree, so if someone can point me in the right direction there, that would be greatly appreciated.

Best,
Maya

Re: Android8.1 GPIO different between SOM-rk3399 and nanopc-t4

Posted: Wed Oct 16, 2019 9:40 am
by maya.b
Found it! Well part anyway...

The DTS/DTB don't have any differences but the visibility of the GPIOs is set in:

vendor/friendlyelec/apps/GPIO_LED_Demo/src/com/friendlyarm/GPIODemo/GPIODemoMainActivity.java

in the app itself when it does board detection and sets pins. However, doesn't entirely solve the problem as there doesn't seem to be anything actually triggered.

Annoyed I missed this part earlier.

M.