
19 Mar
2023
19 Mar
'23
8:30 p.m.
On Sun, 19 Mar 2023 at 12:57, Jonas Karlman jonas@kwiboo.se wrote:
Use the gpio alias id as the gpio bank id, same as in the linux driver.
This reverts the recent change to base bank id on the gpio-ranges prop and apply the same logic used when nodes was named gpio0@ to the alias.
With missing gpio aliases added to u-boot.dtsi files this should restore gpio function for SoCs that have synced gpio0@ to gpio@ node name changes from linux.
Fixes: 904b8700f81c ("gpio: gpio-rockchip: parse gpio-ranges for bank id") Signed-off-by: Jonas Karlman jonas@kwiboo.se
drivers/gpio/rk_gpio.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org