[PATCH 2/3] gpio: rockchip: Use gpio alias id as gpio bank id

Simon Glass sjg at chromium.org
Sun Mar 19 20:30:21 CET 2023


On Sun, 19 Mar 2023 at 12:57, Jonas Karlman <jonas at 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 at kwiboo.se>
> ---
>  drivers/gpio/rk_gpio.c | 17 ++++-------------
>  1 file changed, 4 insertions(+), 13 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list