Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO numbering changed between v0.7.5 and v0.8.0-rc1 #91

Open
pietrushnic opened this issue Dec 29, 2024 · 0 comments
Open

GPIO numbering changed between v0.7.5 and v0.8.0-rc1 #91

pietrushnic opened this issue Dec 29, 2024 · 0 comments
Assignees

Comments

@pietrushnic
Copy link
Member

meta-rte version

v0.8.0-rc1

Affected component(s) or functionality

GPIO subsystem

Brief summary

GPIO numbering changed between v0.7.5 and v0.8.0-rc1

How reproducible

How to reproduce

Just run ls /sys/class/gpio

Expected behavior

root@rte:~# ls /sys/class/gpio/
export  gpio12   gpio400  gpio402  gpio404  gpio406  gpio408  gpio410  gpio412  gpio414  gpio6      gpiochip352  unexport
gpio11  gpio199  gpio401  gpio403  gpio405  gpio407  gpio409  gpio411  gpio413  gpio415  gpiochip0  gpiochip400

Unless other elements of the ecosystem that leverage this functionality can be adjusted appropriately.

Actual behavior

root@rte:~# ls -al /sys/class/gpio/
total 0
drwxr-xr-x  2 root root    0 Dec 29 21:25 .
drwxr-xr-x 44 root root    0 Dec 28 21:57 ..
--w-------  1 root root 4096 Dec 28 21:57 export
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio11 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio11
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio12 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio12
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio199 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio199
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio512 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio512
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio513 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio513
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio514 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio514
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio515 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio515
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio516 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio516
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio517 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio517
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio518 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio518
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio519 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio519
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio522 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio522
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio523 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio523
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio524 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio524
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio525 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio525
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio526 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio526
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio527 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpiochip2/gpio/gpio527
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpio6 -> ../../devices/platform/soc/1c20800.pinctrl/gpiochip0/gpio/gpio6
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpiochip0 -> ../../devices/platform/soc/1c20800.pinctrl/gpio/gpiochip0
lrwxrwxrwx  1 root root    0 Dec 28 21:57 gpiochip352 -> ../../devices/platform/soc/1f02c00.pinctrl/gpio/gpiochip352
lrwxrwxrwx  1 root root    0 Dec 29 21:24 gpiochip512 -> ../../devices/platform/soc/1c2b000.i2c/i2c-0/0-0020/gpio/gpiochip512
--w-------  1 root root 4096 Dec 29 21:24 unexport

Screenshots

Additional context

Solutions you've tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants