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 1A6D8D25032 for ; Sun, 11 Jan 2026 06:41:57 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aLKBfQxtRZyQEATPZ5knLBz/MTeZX0G2gbyBu+HA28k=; b=d9b5ycu8hg/ngD WJdxyoJJcr3lAf7IC2hC+WhXxbEZMAHKDK1J4TZq99zqLeeCn+TWElGDvjs1UbLD+ZioQum6/QQRG XnYq+bckHlPxTlWht5MqfqDMly1Y6CnAtD7d+QFFd5d2xjqXsHwQA24IdDcr4U4VTok6FSnHxOvyU eMV6oxKwugG28R/LnmGcVhCC4rpEqxzFialDhPr8vWAC/6Uunw9IR04nqCv0JeB8cOFA82hxEWbCi qXkty/whLD7gxdbFb2ElLfE9LZeFvH75PxnYkGzpoi8Sl9/VcUU3YNc6A8NjRIaXkRsEoATQDpi4+ kEUNQu/KMWchpHz/CDIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vep8z-00000003uow-0iVs; Sun, 11 Jan 2026 06:41:45 +0000 Received: from out-186.mta0.migadu.com ([91.218.175.186]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vep8w-00000003uoO-1C16 for linux-riscv@lists.infradead.org; Sun, 11 Jan 2026 06:41:43 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1768113699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YsfMkNLcCSESV8XTR6/jGWPS+9Mk6DJvmsfeb5LRsCE=; b=DWpZXBqrlpzInYX1mFIk3Dr9LS9kCGf5XIAaK7NPVvd85q2tWA0xSijDfqjO2P1kzktmQg VwBlv42q1kEiNZGJphD7exVB+lyfRq4lKJh2JYG8RvqpYguhvOAR5kiohNUAQu4iluou5a P9H7UClYyiBlbnSwk+9SYe3u/iRtdw0= From: Ze Huang Date: Sun, 11 Jan 2026 14:41:04 +0800 Subject: [PATCH v3 3/3] riscv: dts: spacemit: Enable USB3.0 on BananaPi-F3 MIME-Version: 1.0 Message-Id: <20260111-k1-usb3dts-v2-v3-3-f5ebd546e904@linux.dev> References: <20260111-k1-usb3dts-v2-v3-0-f5ebd546e904@linux.dev> In-Reply-To: <20260111-k1-usb3dts-v2-v3-0-f5ebd546e904@linux.dev> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, Ze Huang , Aurelien Jarno X-Developer-Signature: v=1; a=ed25519-sha256; t=1768113671; l=2061; i=huang.ze@linux.dev; s=20250705; h=from:subject:message-id; bh=OV3HDtkXKdNdbyJh/87CD3+Y37+Ppb3KYEbRVI7Yw3g=; b=7QmwbNwz411D6nDMUFDI2mnhaVs4CUMxhZAKO5UA9BbYQyRBTEXKxEAfL9vCH/BJ3wO7C+zpU ff5orXGkRvbArelOjDwlkCHJ2BAN2GMdASK9l3ULe9qSoIYQe0e9jQQ X-Developer-Key: i=huang.ze@linux.dev; a=ed25519; pk=Kzc4PMu5PTo8eZZQ5xmTNL9jeXcQ9Wml0cs+vlQpBkg= X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260110_224142_479022_CAA6951B X-CRM114-Status: UNSURE ( 7.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Enable the DWC3 USB 3.0 controller and its associated usbphy2 on the Banana Pi F3 board. The board utilizes a VLI VL817 hub, which requires two separate power supplies: one VBUS and one for hub itself. Add two GPIO-controlled fixed-regulators to manage this. Tested-by: Aurelien Jarno Signed-off-by: Ze Huang --- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts index 3f10efd925dc..5971605754b3 100644 --- a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -59,6 +59,25 @@ reg_vcc_4v: vcc-4v { regulator-always-on; vin-supply = <®_dc_in>; }; + + usb3-vbus-5v { + compatible = "regulator-fixed"; + regulator-name = "USB30_VBUS"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + gpio = <&gpio K1_GPIO(97) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + usb3_hub_5v: usb3-hub-5v { + compatible = "regulator-fixed"; + regulator-name = "USB30_HUB"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &combo_phy { @@ -313,3 +332,30 @@ &uart0 { pinctrl-0 = <&uart0_2_cfg>; status = "okay"; }; + +&usbphy2 { + status = "okay"; +}; + +&usb_dwc3 { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + hub_2_0: hub@1 { + compatible = "usb2109,2817"; + reg = <0x1>; + vdd-supply = <&usb3_hub_5v>; + peer-hub = <&hub_3_0>; + reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; + }; + + hub_3_0: hub@2 { + compatible = "usb2109,817"; + reg = <0x2>; + vdd-supply = <&usb3_hub_5v>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>; + }; +}; -- 2.52.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv