-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Hello.
This kernel is using different pin numbers (better) for GPIO (due to commit 1d9964a) than other kernels (TinkerOS, upstream...). Problem is here "PIN_BANK_IOMUX_FLAGS(0, 32, "gpio0",..." but in other kernels here or here "PIN_BANK_IOMUX_FLAGS(0, 24, "gpio0"...).
This kernel: GPIO5_B2 = 5*32 + ("B") 1*8 + 2 = gpio170
Other kernels: GPIO5_B2 = 5*32 + ("B") 1*8 + 2 - 8 = gpio162 (subtract 8 for >gpio24)
This leads to incompatibility of "/sys/class/gpio/*" and libraries for TinkerBoard GPIO_API_for_C and GPIO_API_for_Python.
How to resolve this ?
Will this commit be pushed to upstream + TinkerOS ?
Thanks, Martin
ref: http://tinkerboarding.co.uk/forum/thread-306-post-916.html#pid916
Metadata
Metadata
Assignees
Labels
No labels