summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2012-08-05 08:01:26 +0200
committerLinus Walleij <linus.walleij@linaro.org>2012-08-07 08:55:22 +0200
commit7e6086d9e54a159a6257c02bb7fc5805c614aad2 (patch)
treeb6a171ee5b2fc0611c968a9d905e07ba481c442e /arch/arm/boot/dts
parentgpio/mxc: remove redundant shadow variables initialization (diff)
downloadlinux-7e6086d9e54a159a6257c02bb7fc5805c614aad2.tar.xz
linux-7e6086d9e54a159a6257c02bb7fc5805c614aad2.zip
gpio/mxc: specify gpio base for device tree probe
Currently, unlike the non-DT probe where the gpio base is specified with pdev->id, the DT probe uses the base dynamically allocated by gpio core, which uses a completely different numbering scheme. This causes two issues to user space applications which access sysfs entry /sys/class/gpio/gpioN. * It breaks the compatibility with user space applications between non-DT and DT kernels. * It's not intuitive and sometimes hard for users to map the Linux gpio number to the actual hardware pin. Use alias to identify the gpio port/bank, and then the gpio base can be specified with port id to solve above issues. If alias is not defined in device tree, the base number dynamically allocated by gpio core will be used. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts')
0 files changed, 0 insertions, 0 deletions