From mboxrd@z Thu Jan 1 00:00:00 1970 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 0F70D1B0F22; Tue, 26 Nov 2024 07:57:58 +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=1732607881; cv=none; b=spLeLmvBk54qZ3IjQUz3MyMsm/OS937vWHyarU9VF26LXh+UsxcueFoy08jxt8IIINPM0tyk7LzoJ6dJiZCNVErQ4/KAcLpyFwGUHMtr6PC4iMhfCh3BRG3oJlwObVNV2SXd4zsRXZPfeCIhD3I/be8KRrhoFn1hfDEe52PRweg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732607881; c=relaxed/simple; bh=sQXvVOumHpJGWqmdW8TNSXl41a3J9SkYFzDosN9Zmfc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u+bak14Upgm2o4335JYLDVcFpUSPR+kpR9vAca6jMCVaRzfiPSlx98g+ileoPQxyPelMZHe4uWNBWjCwRi65cwM9gaqmz4HUhR3L1U2NZhpRdP4UfKe6nN8V9O3ieFRzYaPE2aA9ATDKagwfc1uqnv8NOoqx2mX3fxHd1PxhUYE= 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 15F92B4B1D80; Tue, 26 Nov 2024 08:57:54 +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 v5 1/1] riscv: dts: starfive: jh7110-milkv-mars: enable usb0 host function Date: Mon, 25 Nov 2024 23:57:25 -0800 Message-ID: <20241126075740.17419-2-e@freeshell.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241126075740.17419-1-e@freeshell.de> References: <20241126075740.17419-1-e@freeshell.de> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Milk-V Mars set JH7110 on-chip USB host mode and vbus pin assignment Signed-off-by: E Shattow --- .../boot/dts/starfive/jh7110-milkv-mars.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts index 0d248b671d4b..3bd62ab78523 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -53,7 +53,23 @@ &spi0 { status = "okay"; }; +&sysgpio { + usb0_pins: usb0-0 { + vbus-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + }; +}; + &usb0 { - dr_mode = "peripheral"; + dr_mode = "host"; + pinctrl-names = "default"; + pinctrl-0 = <&usb0_pins>; status = "okay"; }; -- 2.45.2