Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2671583rdb; Tue, 26 Dec 2023 00:40:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyNJX1A9UXUWEKMqYzyXSqRrlRSBwdKpwJmUPme5/wavEBepAjWRbCh5QYenJKJALaygje X-Received: by 2002:a17:90b:1208:b0:28b:c56a:4238 with SMTP id gl8-20020a17090b120800b0028bc56a4238mr3249319pjb.29.1703580036056; Tue, 26 Dec 2023 00:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703580036; cv=none; d=google.com; s=arc-20160816; b=mPaqprF0nLfEe5LwaNlOsasvbU7hwxQhecLEH/56r+KlikS/24f7obk9oJeApI514n 2DKKaY2WQul+KS6ZDLP+RROnGUyct+P0bdcZUTmzR7deitNUppDnpvWGFr5V+kfDqSKp 1u3IoiO1lnAw7gNYAmpHlViJGSYB95uiNU3u+84AwOfGOksE+9imZk9EBepmm7jyLSND weD5aBNl8rINHUAeM08blXa6B9l9iN7gNwPuWDCauzJx89OjhQ6DBx9KiE7cuNK37AGs kfBF+tAs4R2qQCTVIDq8PAn+1iiOJ1so+iqiBiQStZi5oDn7ZSsXGapryS5ii5sk/dhh 8d9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:mail-followup-to:message-id :subject:cc:to:from:date; bh=gD9w5jiGWrdR7UByxA03IM5ICoFZesGl/RUWqWmnC/g=; fh=JfyrVk3SspfqjxQu1UThzUyOFeIboyAaneOBWR1Sn7w=; b=BVSXifcgoEbpg8Du98NyE+Qv8AASO/9w9nSZQKUco0B41DpNQ/SBySnck8W1DuX1RY 14W2TcDsdSmir9XQZbP/wikX7sXfLENHTLojB+TXW6jDumNJ7ZPUhrxp9rcUpej1VQyC Pti1GYMIe0QK4sn5XcNsmjrzFxUZ1TFOJ+P4YGD4YryvaDN9vGYb5geCbL3PxofEY0G1 Kl9UYW/84wwLbcUnG4q8ewXahXgh37WMZPoClNHDlpW8hLlV4c62JSl64iR02MTphPdz eKpzxUWZPhnySyvInMlF3B/sj7jCBmmtxPueLzy5Esqfm0tf+U/L8ERmhXeB9hAx0rX8 2jMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11416-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r4-20020a17090aad0400b0028bf2e00940si8241923pjq.72.2023.12.26.00.40.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 00:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11416-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11416-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 165BCB21B2E for ; Tue, 26 Dec 2023 08:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 989524CDE5; Tue, 26 Dec 2023 08:40:22 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out28-81.mail.aliyun.com (out28-81.mail.aliyun.com [115.124.28.81]) (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 46ADF25778; Tue, 26 Dec 2023 08:40:15 +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.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?= 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-Disposition: inline Organization: work_work_work 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