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 ED214C46CD3 for ; Tue, 26 Dec 2023 08:40:43 +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: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:In-Reply-To:References: List-Owner; bh=OXlYIcf0dKRvxa8XxVodPY0qEZNTjWj8c+4h2khpr2Y=; b=BQ+WpaIQeU0lvF bTvBIwxeXN7ee8z3XA3ZpLZFMjfkgHBGDO9fMGjUwKQQ5+EMJ6JyVKX4XgsIuz5pwT4jOGuEMeLfx IlrgrMm8WGXhIqdNd4VWyJPR8BYwlQtiwe9N9xv24Go1oXqNSMPmO3DwNWSzAKN1pRbDcBJZ1aBe4 gwvnG7wxHZ4e3BzMw7+boXm1Vdcrg3h2UqYehioHiIN8hTamxBB6QkOsFe3xYJMhTI0ccntf7v4z+ rXaBW4TF/ldXyJiK77Bf/fWrPxVDDzx7Qz0jJVTILRfA0161wguInocC5y2kh2mjkpsz/axjT62/I taPZycnZzXnEdwZ7QZDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rI2z1-00Bv1E-2d; Tue, 26 Dec 2023 08:40:15 +0000 Received: from out28-45.mail.aliyun.com ([115.124.28.45]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rI2yy-00Bv0k-0u for linux-arm-kernel@lists.infradead.org; Tue, 26 Dec 2023 08:40:14 +0000 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.502714|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0655499-0.0022427-0.932207;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047190;MF=fuyao@sjterm.com;NM=1;PH=DS;RN=15;RT=15;SR=0;TI=SMTPD_---.VtBiFDR_1703580005; Received: from localhost(mailfrom:fuyao@sjterm.com fp:SMTPD_---.VtBiFDR_1703580005) by smtp.aliyun-inc.com; Tue, 26 Dec 2023 16:40:06 +0800 Date: Tue, 26 Dec 2023 16:40:05 +0800 From: Fuyao Kashizuku To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , 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 Cc: =?utf-8?B?6bqm5YGl5bu6?= Subject: [PATCH v2] ARM: dts: sun8i: Open FETA40i-C regulator aldo1 Message-ID: Mail-Followup-To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , 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?= MIME-Version: 1.0 Content-Disposition: inline Organization: work_work_work X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231226_004012_482129_701B3ADB X-CRM114-Status: GOOD ( 11.07 ) 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 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 --- 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>; -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel