From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC767C433E9 for ; Mon, 4 Jan 2021 10:56:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68765207BC for ; Mon, 4 Jan 2021 10:56:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68765207BC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iwpnOifDNIJf8etisnQqO03Try18DIi1FoLo70dRaGg=; b=BhDuCsP40GU3IQ35ChyFWcg8w KQBXLhvaXbp27c/TvQisrpGoMLb/YL5voYApzqD+IuZmVkDyRfXhOOgVY8ZwqeU/FZDzzl9Ljnw/u /gPTmb8MCZ03CPPHlavuEFuu5B2LQbknlpf8zSnVo8mVDl2eQ9tkYQifJxQr+XaVkHzlGSNiTdCPr qSIMsBDX+l3/DogOArXAj1OsBPbUjpvQhsbVFCuj3x8sQlJfQmaCxCnT7b3MatEltkh13OXKLsrJK RrI0Srispbr4jcHbEydYsnJspUpSg3Ybmez1OrnCjbhE1fHT8E3oPxrT14YlnaVvtpbtH2t9Xg9BG KDsQE3N7g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwNVj-000459-EI; Mon, 04 Jan 2021 10:54:51 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwNVf-00041U-3N for linux-arm-kernel@lists.infradead.org; Mon, 04 Jan 2021 10:54:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07EDDED1; Mon, 4 Jan 2021 02:54:45 -0800 (PST) Received: from [192.168.2.22] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1DA843F70D; Mon, 4 Jan 2021 02:54:43 -0800 (PST) Subject: Re: [PATCH v2 4/4] arm64: dts: allwinner: h6: Use RSB for AXP805 PMIC connection To: Samuel Holland , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring , Michael Turquette , Stephen Boyd , Linus Walleij , Philipp Zabel References: <20210103100007.32867-1-samuel@sholland.org> <20210103100007.32867-5-samuel@sholland.org> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Organization: ARM Ltd. Message-ID: Date: Mon, 4 Jan 2021 10:54:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210103100007.32867-5-samuel@sholland.org> Content-Language: en-GB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210104_055447_279533_13E82849 X-CRM114-Status: GOOD ( 25.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 03/01/2021 10:00, Samuel Holland wrote: > On boards where the only peripheral connected to PL0/PL1 is an X-Powers > PMIC, configure the connection to use the RSB bus rather than the I2C > bus. Compared to the I2C controller that shares the pins, the RSB > controller allows a higher bus frequency, and it is more CPU-efficient. But is it really necessary to change the DTs for those boards in this way? It means those newer DTs now become incompatible with older kernels, and I don't know if those reasons above really justify this. I understand that we officially don't care about "newer DTs on older kernels", but do we really need to break this deliberately, for no pressing reasons? Cheers, Andre P.S. I am fine with supporting RSB on H6, and even using it on new DTs, just want to avoid breaking existing ones. > Signed-off-by: Samuel Holland > --- > .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 38 +++++++++---------- > .../dts/allwinner/sun50i-h6-orangepi-3.dts | 14 +++---- > .../dts/allwinner/sun50i-h6-orangepi.dtsi | 22 +++++------ > 3 files changed, 37 insertions(+), 37 deletions(-) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > index 7c9dbde645b5..3452add30cc4 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts > @@ -150,12 +150,28 @@ &pio { > vcc-pg-supply = <®_aldo1>; > }; > > -&r_i2c { > +&r_ir { > + linux,rc-map-name = "rc-beelink-gs1"; > + status = "okay"; > +}; > + > +&r_pio { > + /* > + * FIXME: We can't add that supply for now since it would > + * create a circular dependency between pinctrl, the regulator > + * and the RSB Bus. > + * > + * vcc-pl-supply = <®_aldo1>; > + */ > + vcc-pm-supply = <®_aldo1>; > +}; > + > +&r_rsb { > status = "okay"; > > - axp805: pmic@36 { > + axp805: pmic@745 { > compatible = "x-powers,axp805", "x-powers,axp806"; > - reg = <0x36>; > + reg = <0x745>; > interrupt-parent = <&r_intc>; > interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > interrupt-controller; > @@ -273,22 +289,6 @@ sw { > }; > }; > > -&r_ir { > - linux,rc-map-name = "rc-beelink-gs1"; > - status = "okay"; > -}; > - > -&r_pio { > - /* > - * PL0 and PL1 are used for PMIC I2C > - * don't enable the pl-supply else > - * it will fail at boot > - * > - * vcc-pl-supply = <®_aldo1>; > - */ > - vcc-pm-supply = <®_aldo1>; > -}; > - > &rtc { > clocks = <&ext_osc32k>; > }; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > index 15c9dd8c4479..16702293ac0b 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > @@ -175,12 +175,16 @@ &pio { > vcc-pg-supply = <®_vcc_wifi_io>; > }; > > -&r_i2c { > +&r_ir { > + status = "okay"; > +}; > + > +&r_rsb { > status = "okay"; > > - axp805: pmic@36 { > + axp805: pmic@745 { > compatible = "x-powers,axp805", "x-powers,axp806"; > - reg = <0x36>; > + reg = <0x745>; > interrupt-parent = <&r_intc>; > interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > interrupt-controller; > @@ -291,10 +295,6 @@ sw { > }; > }; > > -&r_ir { > - status = "okay"; > -}; > - > &rtc { > clocks = <&ext_osc32k>; > }; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > index ebc120a9232f..23e3cb2ffd8d 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > @@ -112,12 +112,20 @@ &pio { > vcc-pg-supply = <®_aldo1>; > }; > > -&r_i2c { > +&r_ir { > + status = "okay"; > +}; > + > +&r_pio { > + vcc-pm-supply = <®_bldo3>; > +}; > + > +&r_rsb { > status = "okay"; > > - axp805: pmic@36 { > + axp805: pmic@745 { > compatible = "x-powers,axp805", "x-powers,axp806"; > - reg = <0x36>; > + reg = <0x745>; > interrupt-parent = <&r_intc>; > interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > interrupt-controller; > @@ -232,14 +240,6 @@ sw { > }; > }; > > -&r_ir { > - status = "okay"; > -}; > - > -&r_pio { > - vcc-pm-supply = <®_bldo3>; > -}; > - > &rtc { > clocks = <&ext_osc32k>; > }; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel