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 7D8DFC35274 for ; Thu, 21 Dec 2023 10:39:42 +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:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k7OGWbqvZDOYiOhRHU3xQZlwU7GIegnIExHuYTcTBvg=; b=H72MVEAioWvGYN gv4uHD//9OI3540vWQ8mwmgyhF0UemsptDWRJYoiueyVGUj2+y3ZP4qCdfMU0BQ2R4hqiqrVHQHcg +VdzU+Qp2Rc+cfpljeAFGo4NGPAJvXWBTF2805Nd043+CBEkdaN5I7Q7/n5cJkp/JvJCtkde3AtEM n+3Q8VLwEDGeU+miEfAU1RqunDQzhHpboDd2AGafsvuPgIwfxrEf2qel+1H6+eN1WWA1xlmku+BVN 8yFJ13AdaC++POLgAJoLstrhODkZUi5hYVcj/Tc/NxKdBt11VusDX04yeiTmd6QeCnq80s1GHcyyw pF8aQvkF849xA+Ir6x3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGGSR-002SLO-0d; Thu, 21 Dec 2023 10:39:15 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGGSP-002SKI-04 for linux-arm-kernel@lists.infradead.org; Thu, 21 Dec 2023 10:39:14 +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 CC9392F4; Thu, 21 Dec 2023 02:39:55 -0800 (PST) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DFC133F5A1; Thu, 21 Dec 2023 02:39:08 -0800 (PST) Date: Thu, 21 Dec 2023 10:39:06 +0000 From: Andre Przywara To: fuyao Cc: fuyao , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Alexandre TORGUE , Enric Balletbo i Serra , Baruch Siach , Paul Barker , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] ARM: dts: sun8i: r40: open the regulator aldo1 Message-ID: <20231221103906.1830ef94@donnerap.manchester.arm.com> In-Reply-To: References: <20231220150400.0f32e2a5@donnerap.manchester.arm.com> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231221_023913_161303_B0CACFDE X-CRM114-Status: GOOD ( 35.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Thu, 21 Dec 2023 10:20:49 +0800 fuyao wrote: Hi, thanks for the reply! > On Wed, Dec 20, 2023 at 03:04:00PM +0000, Andre Przywara wrote: > > On Wed, 20 Dec 2023 16:18:43 +0800 > > fuyao wrote: > > > > Hi, > > > > > the aldo1 is connect regulator pin which power the TV. > > > > What do you mean with that? That ALDO1 is connected to VCC-TVOUT and/or > > VCC-TVIN on the R40 SoC? > > The ALDO1 is connected to VCC-TVOUT on the R40 Soc. Ah, thanks for the confirmation. > > > The USB core use TV ref as reference Voltage. > > > > The USB core in the SoC? So pin VCC-USB, which requires 3.3V, the same > > voltage as the TV pins? > > Which means this doesn't really have much to do with TV, it's just that > > USB and also "TV" are supplied by ALDO1? > > The internal USB PHY requires a reference voltage. It seems that in > order to save costs, the reference voltage of the TVOUT module is used. Do you mean a USB *reference* voltage that is separate from the USB PHY power supply voltage, so pin VCC-USB on the SoC? And that it is internally connected to some TV-OUT related circuits? So that would apply to all devices using the R40 SoC then? Or is it simply that the SoC pins VCC-TVOUT and VCC-USB are connected together, on this SoM? Do you have access to some schematic? I couldn't find one online easily, so cannot check this myself. Thanks, Andre > > > Signed-off-by: fuyao > > > --- > > > arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi b/arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi > > > index 9f39b5a2bb35..8906170461df 100644 > > > --- a/arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi > > > +++ b/arch/arm/boot/dts/allwinner/sun8i-r40-feta40i.dtsi > > > @@ -42,6 +42,13 @@ &pio { > > > vcc-pg-supply = <®_dldo1>; > > > }; > > > > > > +®_aldo1 { > > > + regulator-always-on; > > > > So did USB never work before, with the DT as in mainline? > > > > The USB can work, but is unstable. Occasionally disconnected because of > the D+/D- electrical characteristics. > > > For always-on regulators it would be good to see some rationale why this > > cannot be referenced by its consumer. If it is really supplying the USB > > core, that would be a reason, because we don't have a good way of > > describing this. > > > > > + regulator-min-microvolt = <3300000>; > > > + regulator-max-microvolt = <3300000>; > > > + regulator-name = "vcc-aldo1"; > > > > Regulators should be named after their users, so use something like: > > regulator-name = "vcc-3v3-tv-usb"; > > > > thanks. > > > That then also serves as documentation of why this is always on. > > > > Cheers, > > Andre > > > > > +}; > > > + > > > ®_aldo2 { > > > regulator-always-on; > > > regulator-min-microvolt = <1800000>; > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel