commit | f3aa2826bfdde8d3ca6a912b9b22d32c9a696c82 | [log] [tgz] |
---|---|---|
author | Chen-Yu Tsai <wens@csie.org> | Fri Jul 22 16:12:59 2016 +0800 |
committer | Hans de Goede <hdegoede@redhat.com> | Sun Jul 31 21:45:12 2016 +0200 |
tree | b203818288d5de6384553f733bfb2e3b7974e311 | |
parent | 65d599164e23dfd7d4cc586088789217134721c4 [diff] |
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>