From nobody Thu Nov 21 18:13:19 2024 Received: from freeshell.de (freeshell.de [116.202.128.144]) (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 C686645BE3; Mon, 18 Nov 2024 03:48:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731901688; cv=none; b=B/qM5yGPV3q1OBpSHacHRRE0sNtGaUlyj1d34YQBY+7kGJQv1AUyrP2ic7K0WPsVeIuEsUYWPcJ9YTBR7/wcx1MREDbI3NdZUbLaLILn5rFHMmIUilZEFWG6XaaR4jZmZTtawkaZk+8j3j4mx6EINHAkbAFu0waVzYmR2ydKx0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731901688; c=relaxed/simple; bh=diMf6qyAZGtpRKamyqwqBZtHYf9R2FcwS4bgNZXFy9Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ucMs38S04wwn0A7TYTTlwM7Hq7GEKeU+BwFY2akVlLP9KSF44cbaLjJ9lG8eMBLxoD1vdwwwX3TmNGGDkfearEiF7Ot2YFAexDiSt0YeRMuLS8WX0IcVUdGhAlO6Wan4l7GZ/HUD1EAkmFis5ac+AnkPD5yGaVZCh3CGj3z3rTY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan. (unknown [IPv6:2605:59c8:31de:bf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 82314B4B08E6; Mon, 18 Nov 2024 04:48:01 +0100 (CET) From: E Shattow To: Jisheng Zhang Cc: E Shattow , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] riscv: dts: starfive: jh7110-milkv-mars: enable usb0 host function Date: Sun, 17 Nov 2024 19:45:09 -0800 Message-ID: <20241118034558.43226-4-e@freeshell.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241118034558.43226-2-e@freeshell.de> References: <20241118034558.43226-2-e@freeshell.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Milk-V Mars set host mode and vbus pin for JH7110 on-chip USB 2.0 Signed-off-by: E Shattow --- .../boot/dts/starfive/jh7110-milkv-mars.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/risc= v/boot/dts/starfive/jh7110-milkv-mars.dts index 5cb9e99e1dac..45d4f7556521 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -35,3 +35,24 @@ &phy0 { rx-internal-delay-ps =3D <1500>; tx-internal-delay-ps =3D <1500>; }; + +&sysgpio { + usb0_pins: usb0-0 { + vbus-pins { + pinmux =3D ; + bias-disable; + input-disable; + input-schmitt-disable; + slew-rate =3D <0>; + }; + }; +}; + +&usb0 { + dr_mode =3D "host"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usb0_pins>; + status =3D "okay"; +}; --=20 2.45.2