Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2239922rdb; Mon, 25 Dec 2023 02:11:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6X0aYhHXExSI6ib1AxkS3r8bnQLVSHlzTGigogVxK6dSZC7HekcX26d3gYV9StzRmYTpn X-Received: by 2002:a17:90a:b284:b0:28b:dcf4:698c with SMTP id c4-20020a17090ab28400b0028bdcf4698cmr1423426pjr.62.1703499108018; Mon, 25 Dec 2023 02:11:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703499108; cv=none; d=google.com; s=arc-20160816; b=MeGv4JUHgwmkjqWvCVZ1esFC+ryFEygp6xhWyrrKxGSfhrxTh7Wwf+GE03ZqkEd+XL Rihz7xSQ7mx48seOn9igZAyJka/5UdFVyHBODI0Lif+4Ue2sOrSMmwCxv7322vlIZ0Xy 0cieV56H6B31o8R8QIvTreLY/guzqonYHPweyeHzIKzU2x0Mw9M5gY5fP0GritehRIBP csM/AOeZd2MK7PLnUq0XCs+gMXEgh2FTwcPyqpY7SvekxjigTivh4GlNDaLLdJEfx4Zw e139JrbKtvxI8IlSwGiUkwHHvsnmnm6031AJNlONll51RptaDyc/JDExlmYpWGb0nvOo q12g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:mail-followup-to:message-id:subject :cc:to:from:date; bh=XV1JdMAuG43MYn7tlqiLMbcT8Wsj/9tEASnS1CrFsZc=; fh=IZL2DjUKz3KQy9JCS85q98PuX7CwAaB1d2ewhyXeMDk=; b=RgOcp+/vIYli1Pk3dLjSKzV/zGDeScRrDLodOQTJno4WiNLc0vCvBWQkT8c09GjZRV RQbCmi48JQ7fGSXJP2CUG+Fm5Pk0VH7YCg6HuUgQ3FIF/vFvxVEEqLax/X2qXaVaXhte BNHfUrkf3BJumUGZqzNoQ7oj8YQxI+yQk5Wpw5HBFfE2GEw0XI0WsuPhF3JLBXAz9fxK bdcsAWU9e3z6OnUayEHNn/NoN+3xcDoH60jIkJ+LrqEFY/xdwzdgnL6IlDAJ22XlMBnM MPUuZ8ED4dMAmXp4DAs95PCsQyPcHFwS2b63Gx3QqEmdSOW4AirucqQD4PPNwCzzk886 xEhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10981-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t4-20020a17090b018400b0028bdf9b0a8csi8233525pjs.167.2023.12.25.02.11.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 02:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10981-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10981-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7633281A2E for ; Mon, 25 Dec 2023 10:11:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D78D930CE1; Mon, 25 Dec 2023 10:11:39 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out28-66.mail.aliyun.com (out28-66.mail.aliyun.com [115.124.28.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22BE510A32; Mon, 25 Dec 2023 10:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sjterm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sjterm.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.07467577|-1;BR=01201311R751ec;CH=green;DM=|CONTINUE|false|;DS=SPAM|spam_ad|0.839325-0.000325292-0.160349;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047213;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=16;RT=16;SR=0;TI=SMTPD_---.VsSYimv_1703499085; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.VsSYimv_1703499085) by smtp.aliyun-inc.com; Mon, 25 Dec 2023 18:11:25 +0800 Date: Mon, 25 Dec 2023 18:11:24 +0800 From: fuyao To: Andre Przywara 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: Mail-Followup-To: Andre Przywara , 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 References: <20231220150400.0f32e2a5@donnerap.manchester.arm.com> <20231221103906.1830ef94@donnerap.manchester.arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231221103906.1830ef94@donnerap.manchester.arm.com> Organization: work_work_work On Thu, Dec 21, 2023 at 10:39:06AM +0000, Andre Przywara wrote: > 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? yes, The usb need a power from TV module insides. > > Or is it simply that the SoC pins VCC-TVOUT and VCC-USB are connected > together, on this SoM? no > Do you have access to some schematic? I couldn't find one online easily, > so cannot check this myself. > It has up to https://file.io/VSUL4FDrapDY > 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>; > > > > > -- fuyao [付尧]