Skip to content

pinctrl: RK3288 different GPIO pin numbers #15

@mcerveny

Description

@mcerveny

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions