]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: gpio: Add .xlate function for gpio phandle resolution
authorChen-Yu Tsai <wens@csie.org>
Fri, 22 Jul 2016 08:12:59 +0000 (16:12 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sun, 31 Jul 2016 19:45:12 +0000 (21:45 +0200)
commit4694dc56e974eac94d6a4aa07c3d4071bf64e28c
treeb203818288d5de6384553f733bfb2e3b7974e311
parent5c928d02044345b843202f23540c3765468c1d6f
sunxi: gpio: Add .xlate function for gpio phandle resolution

sunxi uses a 2 cell phandle for gpio bindings. Also there are no
seperate nodes for each pin bank.

Add a custom .xlate function to map gpio phandles to the correct
pin bank device. This fixes gpio_request_by_name usage.

Fixes: 7aa974858422 ("dm: sunxi: Modify the GPIO driver to support driver
      model")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/gpio/sunxi_gpio.c