Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp88597rdb; Wed, 20 Dec 2023 07:04:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH1eJ69Uym5qeaivKYwgLZFcpsJRK9Ohj8UAEZtwvrpWyGa9q9ks9kEDlgUJyBnkk9orVm X-Received: by 2002:a67:ef9b:0:b0:466:932a:8829 with SMTP id r27-20020a67ef9b000000b00466932a8829mr2318760vsp.25.1703084656785; Wed, 20 Dec 2023 07:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703084656; cv=none; d=google.com; s=arc-20160816; b=r/rKwz+VPAXmTdvdQ/x34qjGNkmiLjPJMJRHRlCwJe/YNuLhmqhOM/NHSS9TD6IeS4 6DAzjwxzbnb5K91jrTWtO2n7zwUXctTwlBs/nqmcBjXGh1fxaxl07GGNod+Y3hOMf9+e /uax20Ge4s/ANv8qRHu/4QY4Yyo1GXea+/zt24pWztTd+GfvtxaJ78FWsoVrooFIrU/g 9+8A1B3FKIzGLwWvH5NM6Pb8s4m/Q9BdLNf3RHVMTehPaTWiSBCJRT2wn2ygQNcFMYf3 ZasfIvhieVm8phPBugfBreCVBI5/J3kbi8QHb0ENSif7TAfX4PtO1m71Z71kFIdCHh72 Fpcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=z2yU28ZpRIl1yNJVyBJ3P7wDX0Sdmjn+gjrC4QuPCs8=; fh=1QMuk2TWZv7yj3nzc7nXKTptbpeXJ/lfkzQ2ifZIicI=; b=d5hb2zvDegWc+NslwLa1EE4++oMnWzlaxq54QsSFRepMe0s2s/qaJrDXvBJdKBZtBW aPMHPN8DyM+YJLIvPp4TVNxCQH9+uMbikS9O9de8+WoJ3qExWfMB7rQXiU2QqN8BtW27 gAhXhDBzqm0jL0l01AN0RB64qzpHpqENfoJxacx4aJ5J80qYyUWCCRfoVQQX0ZiaNoMS X7DX0PN3WenuDy9MMFyWFhRfrXtd/c+OTeiU7WFKNTnUvmGTQOXz9SI23qaGaRORSfpI TjAYc0Qy3VrsFwazFHaQJ7LwIjaqVSn6vQKIfsqOTZe53SYBAV6eJtqAwSk/GRn15SR8 qERw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020ab0348c000000b007c8436fe16bsi5019365uar.201.2023.12.20.07.04.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 07:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C4B51C22A3B for ; Wed, 20 Dec 2023 15:04:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A477F3E466; Wed, 20 Dec 2023 15:04:10 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A26D3F8D6; Wed, 20 Dec 2023 15:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 5900D1FB; Wed, 20 Dec 2023 07:04:50 -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 AF96D3F64C; Wed, 20 Dec 2023 07:04:03 -0800 (PST) Date: Wed, 20 Dec 2023 15:04:00 +0000 From: Andre Przywara To: fuyao Cc: 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: <20231220150400.0f32e2a5@donnerap.manchester.arm.com> In-Reply-To: References: Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit 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 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? > 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? 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"; That then also serves as documentation of why this is always on. Cheers, Andre > +}; > + > ®_aldo2 { > regulator-always-on; > regulator-min-microvolt = <1800000>;