]> git.baikalelectronics.ru Git - uboot.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)
commit5de5593a85cc8ec415dadf9f76c7917b8fa561e7
tree65b6257a4723c9b0c01742759e99280c19aee387
parent574f153617b000728df976fcb70c38d1f92b95f7
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