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 97A18C27C76 for ; Sun, 22 Jan 2023 23:50:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9BBA855E5; Mon, 23 Jan 2023 00:50:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="N9SWFC06"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="sA3GgTkv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 29D54855E5; Mon, 23 Jan 2023 00:50:24 +0100 (CET) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8C915856C1 for ; Mon, 23 Jan 2023 00:50:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C27B532007CF; Sun, 22 Jan 2023 18:50:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 22 Jan 2023 18:50:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1674431419; x=1674517819; bh=LJeXMoW3j4BTQZz9ij6l7Q1w3 CgO3aTcwYS3RFf/kzQ=; b=N9SWFC06WbCyLRzxrQ5WztmLSsPzLA+8l7fiVGj2o nOBD6bE7n6GSHX7adaOUDWohVqeQWCLfOPtPbdmtYse9S+zxZRQBwndZmm1PQ74f y+7t6T1a44XSLu91KYaEwT5kRThlvCoac5JGdgimLSr7P9UxcB8SmPUuVscEt4D+ 2w2GcsybNT3TBKgOi3ejN4qCb2suylGpHLZr/H5wATcWTn7f46ZTn2wZfbT+yByc rwECtp0KUNnhAkJBKKgoX5D8KBvNHCexLYtt51P9bwPq8zJEp850lMkIsLgS5Uq9 F+QYjnJGw8T0g3NrgB9WFtS9wlY2LRmzcWDOzOeTyuoiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1674431419; x=1674517819; bh=LJeXMoW3j4BTQZz9ij6l7Q1w3CgO3aTcwYS 3RFf/kzQ=; b=sA3GgTkv+B6yHa6adEFfl9gnYENVfIo8MWR705UNO+lzut62PTf 5qaEmz5/PGBoVHPJ4YZZrJoHuQKF36GQH/ba2E6UPFo6Pk66b7Tl+mxa/WX9cRtT /is3PI1u7btdbbcEkuIrR+Eben2NcvXZNUhxB8UuGL8pwBTNnSbmQeIPmDWYvX5S bO4s1jDQwjXji/51gz2iXgVI+B1lrjC0KKYwA+7ZzPLKnuDAndcOHhhTf1qtwRlj 9WjIt8G8g7VmSYXJ12abv/3Zxuye7eaaTzzYK3SXXMfkdtbaWZrH1ov+pnOFgj+7 y3fdnAQRIRIFexuz271w5BOm4PEAKcLV1/A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddujedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 22 Jan 2023 18:50:18 -0500 (EST) From: Samuel Holland To: Andre Przywara , Jagan Teki Cc: Samuel Holland , Tom Rini , u-boot@lists.denx.de Subject: [PATCH] ARM: dts: sun6i: mixtile-loftq: Add USB1 VBUS regulator Date: Sun, 22 Jan 2023 17:50:19 -0600 Message-Id: <20230122235020.2032-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean 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 --- 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"; +}; -- 2.37.4