]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: gpio-rockchip: parse gpio-ranges for bank id
authorChris Morgan <macromorgan@hotmail.com>
Mon, 13 Feb 2023 22:27:34 +0000 (16:27 -0600)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:27 +0000 (18:07 +0800)
commit904b8700f81cbc6a49c4f693744a4d2c6c393d6d
tree65b6257a4723c9b0c01742759e99280c19aee387
parent5aedc8bf0ff72c4f09a56fdea59da9357d5fbd4e
gpio: gpio-rockchip: parse gpio-ranges for bank id

Use the new devicetree property of gpio-ranges to determine the GPIO
bank ID. Preserve the "old" way of doing things too, so that boards
can be migrated and tested gradually (I only have a 3566 and 3326 to
test).

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/gpio/rk_gpio.c