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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AB08C76196 for ; Tue, 11 Apr 2023 13:19:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2543485F0E; Tue, 11 Apr 2023 15:18:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id B01A385F39; Tue, 11 Apr 2023 15:18:50 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 7C3BF85EDD for ; Tue, 11 Apr 2023 15:18:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@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 18490D75; Tue, 11 Apr 2023 06:19:29 -0700 (PDT) Received: from donnerap.cambridge.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 0851E3F6C4; Tue, 11 Apr 2023 06:18:43 -0700 (PDT) Date: Tue, 11 Apr 2023 14:18:41 +0100 From: Andre Przywara To: Samuel Holland Cc: Jagan Teki , Tom Rini , u-boot@lists.denx.de Subject: Re: [PATCH] ARM: dts: sun6i: mixtile-loftq: Add USB1 VBUS regulator Message-ID: <20230411141841.0bbf3fd2@donnerap.cambridge.arm.com> In-Reply-To: <20230122235020.2032-1-samuel@sholland.org> References: <20230122235020.2032-1-samuel@sholland.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Sun, 22 Jan 2023 17:50:19 -0600 Samuel Holland wrote: Hi, > This board is configured with CONFIG_USB1_VBUS_PIN="PH24", but no > regulator exists in its device tree. Add the regulator, so USB will > continue to work when the PHY driver switches to using the regulator > uclass instead of a GPIO. > > Update the device tree here because it does not exist in Linux. > > Signed-off-by: Samuel Holland Looks alright. I cannot test this, but it compiled and matches the defconfig setting. Reviewed-by: Andre Przywara Queued for sunxi/master. Cheers, Andre > --- > > arch/arm/dts/sun6i-a31-mixtile-loftq.dts | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm/dts/sun6i-a31-mixtile-loftq.dts b/arch/arm/dts/sun6i-a31-mixtile-loftq.dts > index dde9bdf2f9..bd98fb3e6a 100644 > --- a/arch/arm/dts/sun6i-a31-mixtile-loftq.dts > +++ b/arch/arm/dts/sun6i-a31-mixtile-loftq.dts > @@ -6,6 +6,9 @@ > */ > > /dts-v1/; > + > +#include > + > #include "sun6i-a31.dtsi" > > / { > @@ -19,6 +22,15 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + reg_usb1_vbus: usb1-vbus { > + compatible = "regulator-fixed"; > + regulator-name = "usb1-vbus"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + enable-active-high; > + gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */ > + }; > }; > > &ehci0 { > @@ -56,3 +68,8 @@ > pinctrl-0 = <&uart0_ph_pins>; > status = "okay"; > }; > + > +&usbphy { > + usb1_vbus-supply = <®_usb1_vbus>; > + status = "okay"; > +};