[PATCH 0/3] rockchip: gpio: Add support for RK3568 and RK3588

Kever Yang kever.yang at rock-chips.com
Tue Mar 21 03:55:31 CET 2023


Hi Jonas,

On 2023/3/19 07:56, Jonas Karlman wrote:
> This series adds support for RK3568 and RK3588 in the rk gpio driver.
>
> It also reverts the use of gpio-ranges to set gpio bank id and instead
> add gpio aliases and instead use the alias sequence as the bank id.
There is another patch set from Johan to make the gpio-ranges available 
for all rockchip SoCs,
I think "gpio-ranges" is better solution than gpio aliases, which also 
accepted by kernel
and used by socs from other vendors.


Thanks,
- Kever
> Using an alias should remove the need for adding a new bank-id prop and
> abusing the gpio-ranges prop. The alias is also used to determin the
> bank id in the linux driver.
>
> The series can also be found at [1].
>
> [1] https://github.com/Kwiboo/u-boot-rockchip/commits/rk35xx-gpio-v1
>
> Jonas Karlman (3):
>    rockchip: dts: Add missing alias for gpio controllers
>    gpio: rockchip: Use gpio alias id as gpio bank id
>    gpio: rockchip: Add support for RK3568 and RK3588 banks
>
>   arch/arm/dts/px30-u-boot.dtsi    |   4 +
>   arch/arm/dts/rk3066a-u-boot.dtsi |  11 +++
>   arch/arm/dts/rk3188-u-boot.dtsi  |   9 +++
>   arch/arm/dts/rk322x-u-boot.dtsi  |   7 ++
>   arch/arm/dts/rk3308-u-boot.dtsi  |   5 ++
>   arch/arm/dts/rk3328-u-boot.dtsi  |   4 +
>   arch/arm/dts/rk3368-u-boot.dtsi  |   7 ++
>   arch/arm/dts/rk3399-u-boot.dtsi  |   5 ++
>   arch/arm/dts/rk3588s-u-boot.dtsi |   8 ++
>   arch/arm/dts/rv1108-u-boot.dtsi  |   9 +++
>   arch/arm/dts/rv1126-u-boot.dtsi  |   8 ++
>   drivers/gpio/rk_gpio.c           | 130 +++++++++++++++++++------------
>   12 files changed, 157 insertions(+), 50 deletions(-)
>


More information about the U-Boot mailing list