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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4AD41C2BD09 for ; Fri, 28 Jun 2024 14:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TU3SoPhxPgIHuFeAJc2DzDe6LIeW3t2jq2W5I/Ia76Y=; b=OOXSH5LJ++/hIQ ECpjy6Ezhs9MrArbWjBH321oxpHX/2m1FigAi7Lr9guFQfRnY7M2auZZuDENJKODJWM2Pi0PoWv5U m7HUni/ES4KrTs+iY6AlbBWaezMxahQz/JvIMYmr/hTlt3AB6wu1Iol+MopUUmTMD1lbyMqhFAxDZ sUpCzjK7Gd6XOC+DT/i8VAIh/LZ+m3WPjxbuXFxV8HpNteFkkNO0L1Ns+BuWE6VXHgcjaJRoecdvo LkW8vNIQ3yAsMD6MccYZBPPaW4iUTGXG9n04wR+BWKKjckOJWhy8ZBCNqiqQwKkJ78YLARRdkmM3E 7q3zbnh+jvydkqzue6Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNCL5-0000000Dy4C-23Rz; Fri, 28 Jun 2024 14:12:35 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNCKo-0000000DxyW-1K76; Fri, 28 Jun 2024 14:12:19 +0000 Received: from i53875b6a.versanet.de ([83.135.91.106] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sNCKg-0007ly-SZ; Fri, 28 Jun 2024 16:12:10 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Chukun Pan Cc: Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: Re: [PATCH 1/5] arm64: dts: rockchip: fix regulator and supply for Lunzn Fastrhino R6xS Date: Fri, 28 Jun 2024 16:12:10 +0200 Message-ID: <3302842.44csPzL39Z@diego> In-Reply-To: <20240628140104.551760-1-amadeus@jmu.edu.cn> References: <20240628140104.551760-1-amadeus@jmu.edu.cn> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_071218_395528_05194AC5 X-CRM114-Status: GOOD ( 17.60 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hi, Am Freitag, 28. Juni 2024, 16:01:00 CEST schrieb Chukun Pan: > Make the regulator name and supply the same as those marked by schematics. > > Fixes: c79dab407afd ("arm64: dts: rockchip: Add Lunzn Fastrhino R66S") > Fixes: b9f8ca655d80 ("arm64: dts: rockchip: Add Lunzn Fastrhino R68S") > Signed-off-by: Chukun Pan this needs to be split more please. Separate commits with more verbose commit messages for: - regulator renames - the pmu-io-domain changes - why is moving vccio3-supply moving to the boards - fixing usb regulators - vcc5v0_usb_host probably because that regulator does not exist at all? > --- > .../dts/rockchip/rk3568-fastrhino-r66s.dts | 4 +++ > .../dts/rockchip/rk3568-fastrhino-r66s.dtsi | 28 +++++++------------ > .../dts/rockchip/rk3568-fastrhino-r68s.dts | 4 +++ > 3 files changed, 18 insertions(+), 18 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts > index 58ab7e9971db..b5e67990dd0f 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts > @@ -11,6 +11,10 @@ aliases { > }; > }; > > +&pmu_io_domains { > + vccio3-supply = <&vccio_sd>; > +}; > + > &sdmmc0 { > bus-width = <4>; > cap-mmc-highspeed; > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi > index 89e84e3a9262..82577eba31eb 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi > @@ -39,9 +39,9 @@ status_led: led-status { > }; > }; > > - dc_12v: dc-12v-regulator { > + vcc12v_dcin: vcc12v-dcin-regulator { > compatible = "regulator-fixed"; > - regulator-name = "dc_12v"; > + regulator-name = "vcc12v_dcin"; > regulator-always-on; > regulator-boot-on; > regulator-min-microvolt = <12000000>; > @@ -65,7 +65,7 @@ vcc3v3_sys: vcc3v3-sys-regulator { > regulator-boot-on; > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > - vin-supply = <&dc_12v>; > + vin-supply = <&vcc12v_dcin>; > }; > > vcc5v0_sys: vcc5v0-sys-regulator { > @@ -75,16 +75,7 @@ vcc5v0_sys: vcc5v0-sys-regulator { > regulator-boot-on; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > - vin-supply = <&dc_12v>; > - }; > - > - vcc5v0_usb_host: vcc5v0-usb-host-regulator { > - compatible = "regulator-fixed"; > - regulator-name = "vcc5v0_usb_host"; > - regulator-always-on; > - regulator-boot-on; > - regulator-min-microvolt = <5000000>; > - regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc12v_dcin>; > }; > > vcc5v0_usb_otg: vcc5v0-usb-otg-regulator { > @@ -94,8 +85,9 @@ vcc5v0_usb_otg: vcc5v0-usb-otg-regulator { > pinctrl-names = "default"; > pinctrl-0 = <&vcc5v0_usb_otg_en>; > regulator-name = "vcc5v0_usb_otg"; > - regulator-always-on; > - regulator-boot-on; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + vin-supply = <&vcc5v0_sys>; > }; > }; > > @@ -405,8 +397,8 @@ vcc5v0_usb_otg_en: vcc5v0-usb-otg-en { > &pmu_io_domains { > pmuio1-supply = <&vcc3v3_pmu>; > pmuio2-supply = <&vcc3v3_pmu>; > - vccio1-supply = <&vccio_acodec>; > - vccio3-supply = <&vccio_sd>; > + vccio1-supply = <&vcc_3v3>; > + vccio2-supply = <&vcc_1v8>; > vccio4-supply = <&vcc_1v8>; > vccio5-supply = <&vcc_3v3>; > vccio6-supply = <&vcc_1v8>; > @@ -460,7 +452,7 @@ &usb2phy0 { > }; > > &usb2phy0_host { > - phy-supply = <&vcc5v0_usb_host>; > + phy-supply = <&vcc5v0_sys>; > status = "okay"; > }; > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts > index e1fe5e442689..a3339186e89c 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts > @@ -102,6 +102,10 @@ eth_phy1_reset_pin: eth-phy1-reset-pin { > }; > }; > > +&pmu_io_domains { > + vccio3-supply = <&vcc_3v3>; > +}; > + > &sdhci { > bus-width = <8>; > max-frequency = <200000000>; > _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip