Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB760C6FD1C for ; Tue, 21 Mar 2023 02:55:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 062AA85BC9; Tue, 21 Mar 2023 03:55:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D3B4D8450D; Tue, 21 Mar 2023 03:55:53 +0100 (CET) Received: from mail-m11874.qiye.163.com (mail-m11874.qiye.163.com [115.236.118.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3E99780B98 for ; Tue, 21 Mar 2023 03:55:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.60.65] (unknown [103.29.142.67]) by mail-m11874.qiye.163.com (Hmail) with ESMTPA id 4DB373C0117; Tue, 21 Mar 2023 10:55:33 +0800 (CST) Message-ID: Date: Tue, 21 Mar 2023 10:55:31 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 0/3] rockchip: gpio: Add support for RK3568 and RK3588 Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich Cc: Quentin Schulz , Chris Morgan , Johan Jonker , u-boot@lists.denx.de References: <20230318235651.826148-1-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230318235651.826148-1-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaSEsaVkwdTRodGkxIHh9JGFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpLSFVJQlVKT0lVTUxZV1kWGg8SFR0UWUFZT0tIVUpKS09LQ1VKS0tVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6P0k6DTo5SD0NFxBJGD0QTkw6 ISFPFC1VSlVKTUxCSE1MSEhPTE5JVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKS0hVSUJVSk9JVU1MWVdZCAFZQUhKTEM3Bg++ X-HM-Tid: 0a870217e96b2eb0kusn4db373c0117 X-HM-MType: 1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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(-) >