Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2714436rdb; Tue, 26 Dec 2023 02:40:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGC4VRMooXmNA5z7206E+y+GLdt3X9SkM4JIVWfmAyYtR8zL/lmLE/IOxRr4zDCGvzeYBh X-Received: by 2002:ad4:5766:0:b0:67f:2167:ade0 with SMTP id r6-20020ad45766000000b0067f2167ade0mr13040542qvx.54.1703587237304; Tue, 26 Dec 2023 02:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703587237; cv=none; d=google.com; s=arc-20160816; b=P3xspj/bX2+W5z2DEXtt6Kc2y9rBr6HB70QXCsZfVgQ6zlnOf0sLzS0zi3A1/gN1WR Dc5sqaPt6sck1JDc3wxj4EMCnAPyFakaJ1zJrxtRBa+I66lctHj3ZhQCXW/hbJ2ixZvJ rx+Nv3mQsSA5yhX6mtqchc7eQ0aDIqjKLG8yYWHsYNshlNTxCaT/+1BqLkZO6cn9JF0b V41YfMLpyiPrip+bRPzC7ayliCI7xtrCdLIesnvK8+HlWTYMhGr23xueuxYOLNSd1rzu BHEazzphs/2+tXXYflNwXQ4wtcGxenRmbaTu4gbsckGK/hl6EbllF2o0rT1JhtutGUls v5TQ== 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=ht4S7GgTmcD2e7URsm0VKy6WNYP+KdvRqHcJMLzzb2c=; fh=V7NiMwMvPIDQfJbPHZgUj9DbE1fmNxW+UTs+HnVLogM=; b=uMidX3XGNlYvLf2thvzi2FuYpagm2TpiDtzA3TfLqF1bb4h1s1NwBs7jyRjTporDmT gUGVPzDvFxvMdR558MA8fgV+spQVd/2hmY03msvT78kyBxUaAN9QHEvdS2Ndaz8HNUpS DZKQMMizmL46fHc0MwumtxNCKp3nzy4ozQORb0kGn5n5CCsTtBldYJSD1LFE6Y44aN/J GUjxi5ZYO9APH9DAP1vdYShMBgdDqL9c7M2pr7EXaXzEntGdHhByOpb5vP7ADVtKU1eI vzUWUIxwnnOeLplZTQhJQVzG/LUZfIZoWEtgMm7d7MfLn35xMHGHRLdiSk0GtYGeY6oz lNhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11475-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 t20-20020a0ce2d4000000b0067f8dc03511si10261360qvl.80.2023.12.26.02.40.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 02:40:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11475-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-11475-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11475-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 EE6571C211BC for ; Tue, 26 Dec 2023 10:40:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3DB14E1B3; Tue, 26 Dec 2023 10:40:29 +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 B5B5B282F9; Tue, 26 Dec 2023 10:40:25 +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 301652F4; Tue, 26 Dec 2023 02:41:10 -0800 (PST) Received: from minigeek.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D2C5E3F5A1; Tue, 26 Dec 2023 02:40:22 -0800 (PST) Date: Tue, 26 Dec 2023 10:40:04 +0000 From: Andre Przywara To: Fuyao Kashizuku Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Florian Fainelli , Wei Xu , Gregory CLEMENT , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, =?UTF-8?B?6bqm5YGl5bu6?= Subject: Re: [PATCH v2] ARM: dts: sun8i: Open FETA40i-C regulator aldo1 Message-ID: <20231226104004.0cec26a9@minigeek.lan> In-Reply-To: References: Organization: Arm Ltd. X-Mailer: Claws Mail 4.2.0 (GTK 3.24.31; x86_64-slackware-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 Tue, 26 Dec 2023 16:40:05 +0800 Fuyao Kashizuku wrote: Hi, many thanks for the quick turnaround! > The USB PHY in the Allwinner R40 SoC seems to rely on voltage on the > VCC-TVIN/OUT supply pins for proper operation, on top of its own supply > voltage on VCC-USB. Without a 3.3V voltage supplied to VCC-TV*, USB > operation becomes unstable and can result in disconnects. > > The Forlinx FETA40i-C SoM connects both the VCC-TVOUT and VCC-TVIN pins > to the ALDO1 rail of the PMIC, so we need to enable that rail for USB > operation. Since there is no supply property in the DT bindings for > the USB core, we need to always enable the regulator. > > This fixes unstable USB operation on boards using the Forlinx FETA40i-C > module. > > Signed-off-by: Fuyao Kashizuku Perfect, looks good to me now! Reviewed-by: Andre Przywara Thanks! Andre > --- > Changes in v2: > - Subject include board name. > - regulator name changed to vcc-3v3-tv-usb. > - explain why we need to enable the regulator. > - use full name of the commiter > - Link to v1: https://lore.kernel.org/lkml/ZYKjYypuAx7gNuam@debian.cyg/ > > 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..c12361d0317f 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; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-name = "vcc-3v3-tv-usb"; > +}; > + > ®_aldo2 { > regulator-always-on; > regulator-min-microvolt = <1800000>;