From nobody Mon Nov 25 09:40:52 2024 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEA65190470 for ; Mon, 28 Oct 2024 08:27:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104057; cv=none; b=QZp0rnWZd6CvLr1+XJYDOH7zCG1axBIK20rNRaqp3PpqIekl3zRnDdpmUtsvCwtiMixa3HJJuggDxk9uLL/wd6fuBsDtVZvU0Qw1or5kiGTpYigQJF6+Ot5rca12vrrr2hBUIZxgFCLN0KPzgx3PjFl8y/9pqQHf5FXouOlvkYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104057; c=relaxed/simple; bh=/MolAkoM8WLlXdJHUkJ7B8oxsQcE/UeueF73xVVv6zY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NLL7uYvBpyid6E0/4cGHvxNoBRzka1kike34HzFqdrxzXIbEcATl12ONqX9zf2E5wTImp2ct7Nd9e6Wj5PmIIl+roleSFa56+op+VQsp8gn+Yi/TQiGrA5vqtPUamkDFuXPcHExWx/BWxu+Ov2BlyBJipGGtZ/XUPkMKBHnqCLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=uBdPpJS1; arc=none smtp.client-ip=209.85.210.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="uBdPpJS1" Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-7181caa08a3so2201609a34.0 for ; Mon, 28 Oct 2024 01:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104053; x=1730708853; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JUnDdF1NqKOBG1QC1W/FMRUH7DBiKtvIz//4z8kfSg0=; b=uBdPpJS12QJVTMOARepckytuXfCLErVohp2e875ZR4IMmLrdlYMHxdMC/S6OrNosAP A+BSMwZL7F+cn8baEfj2ViVXijSzWf38eulEdMY/5owKxZo6PdjQNhVGXxfcB7Evy3LA NvnaHMLkRQi/n1XJqkxkfK40Pwj5OPiqBki3Usx6ddgm3+AyE4GqjO/jo9IK8I+Ah/xP yWYwysebzXxJNM4X5HyztVsBCbppkMLLqy+bsHHlYkcAUwkug2FQsTvFii5X+abl+8kR 5/VYNjC0nc2nzReZQHozURUpDIUNXfzor3fRlmGrQmFJSj8meEmwiO0xf+OQp1uxrPfZ 1iig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104053; x=1730708853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JUnDdF1NqKOBG1QC1W/FMRUH7DBiKtvIz//4z8kfSg0=; b=iJggBSiRcT6bZiIMMd4t7DAN3C11l27oF9STc0Ik5oa9y6Y2c3JRGFJwWNWJuIN/B5 VNsE+V3SQsquPzFkkN/dJV51pj5azgCvqZquclLErYlNfSAuoqXdQQvkG4YLDaAiE48+ atXdNVD8LrqQz7W6ORWQynSQAnZVigEn18XNLi7L59Vevp9QDI/6T3qgReAbOONRMzU+ uV9+tunihMJWRCd0DkCWn83Vjdyq5mKhaNzgE1teTg96UDPjUyML/OU7YZhs+QQTIpet iVBCZuOwB3Al0k2W/H0cn80Pws4/aDFH7VR6RVrxNseJs5pKE2rnTQTjxFdbnCZs4+Me Me9Q== X-Forwarded-Encrypted: i=1; AJvYcCWGMv0lIyHFUzB6EkvZ+z2aXWywtdtc6QUupP51kJjaIWXHpbqI0HFXMkEj+10bCkvhInW8ONEON8//gB0=@vger.kernel.org X-Gm-Message-State: AOJu0YxXcTzZKnUm9znD3nH3LAZxG9A8mv4356VFffXCbUO+t68hcILm Ev2zl3pxqqJHVcPE2h51wmVKCgrHo2XM3qYocjlPscXFDaKZlYUIcuxJYem2Szo= X-Google-Smtp-Source: AGHT+IGPk4YXrutX/vs8AXtEdItCylcwMp3wJPOtQTv6GW7g//NaYI/dS10bOiYT0NqDk06ZhYnIQQ== X-Received: by 2002:a05:6870:1614:b0:277:7147:26ff with SMTP id 586e51a60fabf-29051d728ebmr4639045fac.35.1730104052900; Mon, 28 Oct 2024 01:27:32 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205791e451sm5195419b3a.24.2024.10.28.01.27.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 01:27:32 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu , Emil Renner Berthing Subject: [PATCH v7 1/5] riscv: dts: starfive: jh7110-common: revised device node Date: Mon, 28 Oct 2024 16:25:49 +0800 Message-Id: <20241028082553.1989797-2-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028082553.1989797-1-guodong@riscstar.com> References: <20241028082553.1989797-1-guodong@riscstar.com> 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" Earlier this year a new DTSI file was created to define common properties for the StarFive VisionFive 2 and Milk-V Mars boards, both of which use the StarFive JH7110 SoC. The Pine64 Star64 board has also been added since that time. Some of the nodes defined in "jh7110-common.dtsi" are enabled in that file because all of the boards including it "want" them enabled. An upcoming patch enables another JH7110 board, but for that board not all of these common nodes should be enabled. Prepare for supporting the new board by avoiding enabling these nodes in "jh7110-common.dtsi", and enable them instead in these files: jh7110-milkv-mars.dts jh7110-pine64-star64.dts jh7110-starfive-visionfive-2.dtsi Signed-off-by: Alex Elder Signed-off-by: Guodong Xu Reviewed-by: Emil Renner Berthing --- v7: Add Emil's Reviewed-by Fixed a typo in description v6: New patch .../boot/dts/starfive/jh7110-common.dtsi | 5 ----- .../boot/dts/starfive/jh7110-milkv-mars.dts | 17 ++++++++++++++++ .../dts/starfive/jh7110-pine64-star64.dts | 17 ++++++++++++++++ .../jh7110-starfive-visionfive-2.dtsi | 20 +++++++++++++++++++ 4 files changed, 54 insertions(+), 5 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/b= oot/dts/starfive/jh7110-common.dtsi index c7771b3b6475..9e77f79ec162 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -176,7 +176,6 @@ csi2rx_to_camss: endpoint { &gmac0 { phy-handle =3D <&phy0>; phy-mode =3D "rgmii-id"; - status =3D "okay"; =20 mdio { #address-cells =3D <1>; @@ -196,7 +195,6 @@ &i2c0 { i2c-scl-falling-time-ns =3D <510>; pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; - status =3D "okay"; }; =20 &i2c2 { @@ -311,7 +309,6 @@ &pcie1 { &pwmdac { pinctrl-names =3D "default"; pinctrl-0 =3D <&pwmdac_pins>; - status =3D "okay"; }; =20 &qspi { @@ -350,13 +347,11 @@ uboot@100000 { &pwm { pinctrl-names =3D "default"; pinctrl-0 =3D <&pwm_pins>; - status =3D "okay"; }; =20 &spi0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&spi0_pins>; - status =3D "okay"; =20 spi_dev0: spi@0 { compatible =3D "rohm,dh2228fv"; 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..66ad3eb2fd66 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -15,6 +15,11 @@ &gmac0 { starfive,tx-use-rgmii-clk; assigned-clocks =3D <&aoncrg JH7110_AONCLK_GMAC0_TX>; assigned-clock-parents =3D <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; }; =20 &pcie0 { @@ -35,3 +40,15 @@ &phy0 { rx-internal-delay-ps =3D <1500>; tx-internal-delay-ps =3D <1500>; }; + +&pwm { + status =3D "okay"; +}; + +&pwmdac { + status =3D "okay"; +}; + +&spi0 { + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/r= iscv/boot/dts/starfive/jh7110-pine64-star64.dts index b720cdd15ed6..dbc8612b8464 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts @@ -18,6 +18,7 @@ &gmac0 { starfive,tx-use-rgmii-clk; assigned-clocks =3D <&aoncrg JH7110_AONCLK_GMAC0_TX>; assigned-clock-parents =3D <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + status =3D "okay"; }; =20 &gmac1 { @@ -39,6 +40,10 @@ phy1: ethernet-phy@1 { }; }; =20 +&i2c0 { + status =3D "okay"; +}; + &pcie1 { status =3D "okay"; }; @@ -63,3 +68,15 @@ &phy1 { motorcomm,tx-clk-10-inverted; motorcomm,tx-clk-100-inverted; }; + +&pwm { + status =3D "okay"; +}; + +&pwmdac { + status =3D "okay"; +}; + +&spi0 { + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi= b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 18f38fc790a4..ef93a394bb2f 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -13,6 +13,10 @@ aliases { }; }; =20 +&gmac0 { + status =3D "okay"; +}; + &gmac1 { phy-handle =3D <&phy1>; phy-mode =3D "rgmii-id"; @@ -29,6 +33,10 @@ phy1: ethernet-phy@1 { }; }; =20 +&i2c0 { + status =3D "okay"; +}; + &mmc0 { non-removable; }; @@ -40,3 +48,15 @@ &pcie0 { &pcie1 { status =3D "okay"; }; + +&pwm { + status =3D "okay"; +}; + +&pwmdac { + status =3D "okay"; +}; + +&spi0 { + status =3D "okay"; +}; --=20 2.34.1 From nobody Mon Nov 25 09:40:52 2024 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B7771A2647 for ; Mon, 28 Oct 2024 08:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104079; cv=none; b=mA8R80GHXRL+MHrcV26kmEK3LocotBtKvrT3uzAsicncCDIbJhgXNHJI5N9QeEN/EMWgb9hgVmQ7IVUuZtogHbt2/F9cg91GNqpDeU82hHU9pkZeqOYUkNmzdAXuef9P99fOQcc4alDPBU8nAfK8+ExjRVr0EqTot8S3+L9njqA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104079; c=relaxed/simple; bh=HDqZu8uxgmXtRzu66gskW5so05dlOyOY3GbK8gYbC3c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N5qJJogMKbjIKLSyM93PZPtJ/gFQ9sN3+3KYH+/cB1CkQCxEwh33tinj/LR868c9zlGwfoejSZmzQ7nYAZtaCeKgu9a7RlXSmeC7EdRuR8O9TanXudMsgnYvQU/MRKtTDGIjAFNfX1IxhrQVcwLInilB4dACa4B7CSUccLrXH+U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=ebdtlP9V; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="ebdtlP9V" Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-7eae96e6624so2654474a12.2 for ; Mon, 28 Oct 2024 01:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104076; x=1730708876; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=48dfn7mu6W2OgtVA3beq5tOxjI4KGJ1Pme7qMOmIz6I=; b=ebdtlP9VsYqp+6C1Hi/b/CFDfYShYA5cTXQlblGx3tB+bnzSbCtTA44Rd449SrYeGu CwFwlD3dGI6afkQdMbCZvHEjKBHTSS1seKkDzTFknbc6DKikHnADJNUfE/whTfCZ9jUg nSMal4kMfaoDoVgxkEORQO+FB1vJMUEN/YwQirNf2BypCMi/8XjuIGRVOsHCvtp3vCXw Hy3TxkUPf5mUgFKhMbxyRhLLBDko+1zUOXbEw6QRYnPWgCQDQ/JEt4Kq2J79+G9jHDic D2LY4jdv03oHTzmj9U1RNalxYXKglRke3DP16M1Remxc/9+zTzX7r4a0izorDimSNc71 v0Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104076; x=1730708876; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=48dfn7mu6W2OgtVA3beq5tOxjI4KGJ1Pme7qMOmIz6I=; b=dbrIt97A3mW7eZ4eW8ycb4h+F41sBdNOrdttUAMQ2fQfTzsJyV4XZ8ztS2Fj8TIAeF kT7FAma+5hRyzJD1Ls7B8I2QKipHm5af/7pkzzt3PGPUya88GT7MRnFmEO8fFg6VQO3g KBvmkNjeZ4V8W1LACP9xgaNQR6dk757o5X2Xx2zMqvj5eHTyNcTTasAdnETz8KGwRj1E 67mWEQroIgcl4HFu/8XjcfKdNbNof43GS3+WsSEnynbrD5euTod4CWF/fl8QfdaYhPRU Xf1z6+yhWVgm/R9PrhoDMwndmasytUOvkG5iBSWET7iIOuglZ2j0kSiS8wQ0kv8jDIsd 5D/A== X-Forwarded-Encrypted: i=1; AJvYcCV2BW+hzNvEBoCyeEuM5d5pc31WBJkPXusmLzcbxDJ5e3aVhLDvzGzu9fpND5X75Qdm/IxqrRjzcRkU6K4=@vger.kernel.org X-Gm-Message-State: AOJu0YxowrRVXwTIzit607zF2yZHQJhKJdljTosi2J+Jc+CYN6wpZCxR p+GsiN+oUZ+Ilw83+OhDev4S64xRFhPx9UIGZ7ydpSS3UWnknRxrnuILDjILeHU= X-Google-Smtp-Source: AGHT+IE8wn9dwa54k3OBS56nEWQqTVNnYe9nbyioaN5RXlYbjJE50o6vpy5ntxzVz9U0L90dN0x4Gg== X-Received: by 2002:a05:6a20:d809:b0:1d9:2659:5db1 with SMTP id adf61e73a8af0-1d9a83da862mr10079042637.19.1730104076321; Mon, 28 Oct 2024 01:27:56 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205791e451sm5195419b3a.24.2024.10.28.01.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 01:27:56 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu , Emil Renner Berthing Subject: [PATCH v7 2/5] riscv: dts: starfive: jh7110-common: move usb0 config to board dts Date: Mon, 28 Oct 2024 16:25:50 +0800 Message-Id: <20241028082553.1989797-3-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028082553.1989797-1-guodong@riscstar.com> References: <20241028082553.1989797-1-guodong@riscstar.com> 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" The JH7110 USB0 can operate as a dual-role USB device. Different boards can have different configuration. For all current boards this device operates in peripheral mode, but on a new board this operates in host mode. This property will no longer be common, so define the "dr_mode" property in the board files rather than in the common DTSI file. Signed-off-by: Alex Elder Signed-off-by: Guodong Xu Reviewed-by: Emil Renner Berthing --- v7: Add Emil's Reviewed-by v6: New patch arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 5 ----- arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts | 5 +++++ arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts | 5 +++++ .../boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 5 +++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/b= oot/dts/starfive/jh7110-common.dtsi index 9e77f79ec162..87ea81e9fed4 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -637,11 +637,6 @@ &uart0 { status =3D "okay"; }; =20 -&usb0 { - dr_mode =3D "peripheral"; - status =3D "okay"; -}; - &U74_1 { cpu-supply =3D <&vdd_cpu>; }; diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/risc= v/boot/dts/starfive/jh7110-milkv-mars.dts index 66ad3eb2fd66..0d248b671d4b 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts @@ -52,3 +52,8 @@ &pwmdac { &spi0 { status =3D "okay"; }; + +&usb0 { + dr_mode =3D "peripheral"; + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/r= iscv/boot/dts/starfive/jh7110-pine64-star64.dts index dbc8612b8464..d5180c67ac55 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts @@ -80,3 +80,8 @@ &pwmdac { &spi0 { status =3D "okay"; }; + +&usb0 { + dr_mode =3D "peripheral"; + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi= b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index ef93a394bb2f..5f14afb2c24d 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -60,3 +60,8 @@ &pwmdac { &spi0 { status =3D "okay"; }; + +&usb0 { + dr_mode =3D "peripheral"; + status =3D "okay"; +}; --=20 2.34.1 From nobody Mon Nov 25 09:40:52 2024 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 396A3191F90 for ; Mon, 28 Oct 2024 08:28:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104098; cv=none; b=B51SyTrvRrLdQqBNAwtwbZrziX/msc/GXHwpS0tS2LZdl8BMs4lLYwvgCcHHqBSAopiYj0nCrYUHu85RdZbkqp6rjuizIJOEzwnP4TvX7JGWwd5Hl1JRpvseAyU9tOMVJHNzsUgHedsJr49ClaQEtpwTQWGjzcw/KI7ALI2DW0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104098; c=relaxed/simple; bh=0pfJecxT1M0oO1SppP48VH3pXQdKQ2tBolbB4llt/iA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rLfntQZQl6Py+2PIgwnrnZI2odHJpjTWl4k9ESNpDQlROnW1YQK9OQDdZK6ivM+7OaGU8Gb7E1cUhyxzmRyBwe3tG/T9FWKEYtX1cj1TU5uneOsLkzffGn4vdCVziymVouehQwIJ/YA+mjSb7EZbOGv11YtenbQyQdHIAVQ3eIA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=nrl8l10x; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="nrl8l10x" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-72061bfec2dso1519930b3a.2 for ; Mon, 28 Oct 2024 01:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104095; x=1730708895; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HqXCN/PxPQRRYnCXep+m11qCzkhu9vZNihUxCEwHTfg=; b=nrl8l10xCePPHGK7aVKUvrQSzTa57nMNiB/pqakWZDF6v/Qf3SQGsS5cwbgHwldbgx US3Q+iW3MBgwaw2aT/j1zqNj5tQZAx4ccoBK5hZxFLP3l5G/B7/l/uFvZfx700v3zUL7 rtNk3rxX3IV1ClmPmpzp3LHLRYAuV9aGF6rn9v558PXH/hG1ba1RBjkiruEZRd44gJKF X2670mZpDlibtcb0mWQpCwkSy84qjSr1x+pgcxthUgG6H/ARKGyNavYot1vHSgDbtITn TfO0QWcTf1ws58aoYqPBlUflAnjn5RjHymzEphvDkHjOf/+H/5bTajqU5KcRGE/MRXD7 XO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104095; x=1730708895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HqXCN/PxPQRRYnCXep+m11qCzkhu9vZNihUxCEwHTfg=; b=i5ImiUd7xknjQKExW59xuGNBuvdRGo0h5SlMZ/0LKZYIXBukQvurlgr8OvXdF/Dw/7 1ryvvwAoCSrPDrFZ0nNwE/a9+AfauHe7LDvzpJ567GPe5l6sMegW3NUuK5pidd4u3mvp 87qIacP8r9C2dS3lvu8ZNe/HkjLXv0dr5sTUUi7Q3HT6hvcHGeCNobScOe3AhnnR7bZB cLH82t9281VU+FErr1txvUuPTOHOk9v9ayOs9SfEV5BVFF6lHRgml/mdLLkbrnaPwy/p 2/ViyUnluJiNJnJ6bIi/MXswQzVp2Ad4Cn1vctf3QOJCwbZSNn8WbPe6eoL3WXtdZvj+ nYYw== X-Forwarded-Encrypted: i=1; AJvYcCUtfqaV8n3M8V+lJN921179YOKvogZ4P/OQxFh8voO6+RKcjF+opYRiiCSJyHGGOJVvlAYumN3bpsBEDTo=@vger.kernel.org X-Gm-Message-State: AOJu0YwZ3pOPoXDTUQ1QaD3C3691t6mFdnwyHUk1qegi0SSzLuO+k+qh HzHlhTVvUjnSo/qlQ4/wLZeU8WExhnZVZmxPUSjbflT2MXoe/mUaOaKOGTfOgsU= X-Google-Smtp-Source: AGHT+IHZq0hWR04lWWSn4VEvShFoeXQ4WUdujwmai4DH9ODyeYFBL8qZVtGaYzDQnQwGj4MtLa5Yhw== X-Received: by 2002:a05:6a00:84a:b0:71e:3eed:95c9 with SMTP id d2e1a72fcca58-7206306d443mr9996199b3a.22.1730104095411; Mon, 28 Oct 2024 01:28:15 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205791e451sm5195419b3a.24.2024.10.28.01.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 01:28:15 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Guodong Xu Subject: [PATCH v7 3/5] dt-bindings: vendor: add deepcomputing Date: Mon, 28 Oct 2024 16:25:51 +0800 Message-Id: <20241028082553.1989797-4-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028082553.1989797-1-guodong@riscstar.com> References: <20241028082553.1989797-1-guodong@riscstar.com> 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" From: Sandie Cao Add "deepcomputing" to the Devicetree Vendor Prefix Registry. Signed-off-by: Sandie Cao Acked-by: Krzysztof Kozlowski [elder@riscstar.com: revised the description] Signed-off-by: Alex Elder Signed-off-by: Guodong Xu --- v7: No change v6: No change v5: Removed extra "From:" line in the commit message v4: Updated description v3: Add Krzysztof's Ack v2: Add deepcomputing into Vendor Prefix Registery Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index b320a39de7fe..f8bb3df65797 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -356,6 +356,8 @@ patternProperties: description: DataImage, Inc. "^davicom,.*": description: DAVICOM Semiconductor, Inc. + "^deepcomputing,.*": + description: DeepComputing (HK) Limited "^dell,.*": description: Dell Inc. "^delta,.*": --=20 2.34.1 From nobody Mon Nov 25 09:40:52 2024 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 173F1198E80 for ; Mon, 28 Oct 2024 08:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104117; cv=none; b=LIeCsXCV7aFXratY7y6HPLye9Io0IOYDT4vSwnbzUVTVeOLvV41lKkKmiaGdGAxvMfTJnZ0smMId9R3XefUdtyvXriSfx8W1N/F5gjGh4W9wWVCr5JppXtUMR7FM6yVE7wLyHOcwFpROi2NU3/XpUdqUERNXFBGxSfb/Xzr1JjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104117; c=relaxed/simple; bh=AWf+apc3el1/V7+8yysbWG9bygGBZW5eNGw0BiYB7mA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Znb4/su/W1tEV1MEiZLFzpkdem826HwDa8QgKVRJYv9WnDWqz6MZ+MocRfsc9b8ZlpqSuN4Mwo+qovNL+/C4pgq/4LXJYGSxBQgwz+vLDUsDlFek5ngzUm97J/1LEbh/WYNZHWMUPhXPQXoJLZ8E02GD9VXMYYcGf1FBIuXCXYs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=j/w3epY+; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="j/w3epY+" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71e953f4e7cso2830551b3a.3 for ; Mon, 28 Oct 2024 01:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104114; x=1730708914; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PwtvLrthbQv2BMJ1OVZkcsmKnwnqfTxkD+MGqQpc7wg=; b=j/w3epY+BsN+EoZ84GY2JWgRJQScpOakxnQTeL/CAGOGaKopbkqr9xHCTsrO3y5cGb 3MkZDqKXKCFIt5d4fc+7IRsie7YJJa9DFqUlr/lEd42Dk5UYr38dfGDRkpyq8jPqE5NR hY5rXFlAH2dADyRweQRz3rEmjlMhhv9ds/j1PuYohH0faNDSCn8OiFsf0hrDWpiChWHR x63rCQpuqWUqhloLGD2pEWhOAbNzaj2GsxKp4+bGH5+MjUnwO7FHfuVOMUEIkIdeP1Ge XLEd/kf0t5iIefQUrf+WrPpjHLebDUrepk41+t6KGXRd7HsO17XrG9CjI5W6Cpk+Wo6/ G7rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104114; x=1730708914; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PwtvLrthbQv2BMJ1OVZkcsmKnwnqfTxkD+MGqQpc7wg=; b=sJcStfBM9h639iCW3uZJH4S2eJtFROk0zs9EWh9BCN4+Cqe5qY7Fr4Y13FK4Amy6x8 QoHQUbM+AKzbf7SBxdpKEJZXrQGBALgPHEhXKCxaim8mHs28ZyRxlRdPD7emEnMH9zv3 KGji3j7WwjdJaMXGIRrd5J9Ocn2kl2idzgJa/eIAgW7yCej4VZlBg9WUV/T/1z1pgMTa cu7M2Om0j6NDsn3wUvVnxLim4EtpPOdKBg9wDGh1mWff22pJDe0bt5zMUBYSvUJC1SYa v/2GWVwVRVvjfYZcccjzVtpsDYmw+PQZwxFHpDnP9KBvUGpaOJyE2MEIex47hzcM1a4p pgAg== X-Forwarded-Encrypted: i=1; AJvYcCVDLZVSLIgTTxWpGFqNBuRTMn4UYlt3CKX66wlobT2lBMX5OhwRBtUMZXEw20RzXqBjEWE/3JN0gt0hdOo=@vger.kernel.org X-Gm-Message-State: AOJu0YyFfZi+Px0W63yh6dMo2wXSDT/NxTkOMr10eB1Uwkaxj8Q20B4y 2q5NO4R7H6a2rCyaEf8M0OYQYLWvYw2vf9Y6Bzt7strkHCVhhyWcThh39GHjXgM= X-Google-Smtp-Source: AGHT+IH2Ol2g9EuNuGMWMfZ3q43MFeH2KCEL4oV34aGBAKZhi/ESGCLFD02jBgoKIlwsayi+WCNfJQ== X-Received: by 2002:a05:6a00:c8f:b0:71e:1314:899a with SMTP id d2e1a72fcca58-7206303a746mr11420423b3a.20.1730104114245; Mon, 28 Oct 2024 01:28:34 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205791e451sm5195419b3a.24.2024.10.28.01.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 01:28:33 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu , Emil Renner Berthing Subject: [PATCH v7 4/5] dt-bindings: riscv: starfive: add deepcomputing,fml13v01 Date: Mon, 28 Oct 2024 16:25:52 +0800 Message-Id: <20241028082553.1989797-5-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028082553.1989797-1-guodong@riscstar.com> References: <20241028082553.1989797-1-guodong@riscstar.com> 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" From: Sandie Cao Add "deepcomputing,fml13v01" as a StarFive SoC-based board. The DeepComputing FML13V01 board incorporates a StarFive JH7110 SoC, and it's designed for the Framework Laptop 13 Chassis, which has (Framework) SKU FRANHQ0001. Signed-off-by: Sandie Cao Acked-by: Rob Herring (Arm) [elder@riscstar.com: considerably shortened the description] Signed-off-by: Alex Elder Signed-off-by: Guodong Xu Reviewed-by: Emil Renner Berthing --- v7: No change v6: Added Emil's Reviewed-by v5: Removed extra "From:" line in the commit message v4: Added Rob's Ack Updated description Changed board name from fm7110 to fml13v01 v3: No change v2: Add deepcomputing,fm7110 into model compatible list Documentation/devicetree/bindings/riscv/starfive.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/starfive.yaml b/Docume= ntation/devicetree/bindings/riscv/starfive.yaml index 4d5c857b3cac..7ef85174353d 100644 --- a/Documentation/devicetree/bindings/riscv/starfive.yaml +++ b/Documentation/devicetree/bindings/riscv/starfive.yaml @@ -26,6 +26,7 @@ properties: =20 - items: - enum: + - deepcomputing,fml13v01 - milkv,mars - pine64,star64 - starfive,visionfive-2-v1.2a --=20 2.34.1 From nobody Mon Nov 25 09:40:52 2024 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6624B191F79 for ; Mon, 28 Oct 2024 08:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104136; cv=none; b=Hkb76CALzyK+sK/awa2v2OIH3JQvMswnqantLDKpIS5uOGUHitST9ulCQRo/9NGKB1JXvStDkMxUbwGOncButvdUu9maqEvEtKbUQv08H0IXQtUlHshTfl9D+XycBRfOmAfDa1j2aFP02RUL+XWIAikRWEL6TiFPXV89RUeN42Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730104136; c=relaxed/simple; bh=SQnLaF4q1USYVoZzpcCE9snAMbhHNJAtBW2upIp0pGA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IPMEy28uWkSpAPy5ReWocckhAJJElL2CTYG07HlpTHdtwFepUMGTNSvlCe9cbrhttsQp5fUUPqmYo4Ci6WJ2ArquOw0Ga9Rel/6wvuYXUJGEyyeovg/ypVZyNjh4ptHyi7FW9/m9rqUNLRwQWgftHkD/6EykC4rty5SwCIUD2+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=swYBhHss; arc=none smtp.client-ip=209.85.160.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="swYBhHss" Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-28c7f207806so1759103fac.3 for ; Mon, 28 Oct 2024 01:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104133; x=1730708933; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XPIoC8cm6uQmcS2LwQbVyPpi1k+6eJrUrv1pvZL63WU=; b=swYBhHsshuhD8AxcfQ+hY5/xIY84550m1ipfFMl/9KhsIsoSezzJyFNeaWxpIgUBHB d25mK//ao0fIAe9zk1q+EzMYlM0+DhgFRuRcx6K/bl8JEE4fdd3rBqXGkxQby7ksiLgY aA47ma1WHDtjtJ9rh902GylEUtH/1jcgb3OVvI9D/HM3CynyXHWky8d2BuGkhJYboHjM AkmDHPyQmm4gGJiGrXiZKkASm28lBMvTTSxlXSv0CKH2LdNa5Rop8IjbWMowYFQa0wse 6hXvyO0Eygu7oc/SO9UmewArOy34R/KY5khVU2ILJDtXIEZmPWCssb8iHFst5qMAFIw0 FGeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104133; x=1730708933; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XPIoC8cm6uQmcS2LwQbVyPpi1k+6eJrUrv1pvZL63WU=; b=Yl7u4etuDYa5c2Errx3rf8LuN2qCY2UX+2siR1DRu9tDXkpKy1+tjuTl46uq1L7GpM Htu3YvoPe4gHVGzDz6HRja985weOpZtgiPeMWAZOPUv8lsUn9ospKYHs5jpCVmyIpIhN kLXDhAgAI7bT7uNCdsKv1HHdfS5aXXbTrdqi+C6pop9v/Flij5UoO4/buuRqgrnc7ioD DY6oPZJzPJX9UuhHWp/ADAt6+4CXrtsabt4ucTxnJBvRBI3NFNMGAmrJxNDOJUoh06la yTwbmcSwBQWVgSl04OkVy5FPm8jkPFoSJ1UaFwFBZlssePHsignOpTjxJZraemgTUVB5 qL+g== X-Forwarded-Encrypted: i=1; AJvYcCXLzjG3brsFpUc3ODkJNcV+VxZqdUOUyfKopzsVAm0T31/Iw4GIrZJxkzz+Nk2p6pyM7xvEMh4Q5fZyUqs=@vger.kernel.org X-Gm-Message-State: AOJu0YxX+kni7WDKj7pzFPyVKKttdH7EX0CE7NFS/XTlr6u5Vf+g+Lze yti7pHUcOx3EqoFki1sFFb0x92DFC3N/VUuk/GCy5AIBf5ibL4RlPJMEMfHSLVk= X-Google-Smtp-Source: AGHT+IFglaKlZzp2+ZqUwtxvszDFbByiWZoddmsO7mJ9JCqUIjf+BiPq4PQzRQTscfdjRCxE1I0szQ== X-Received: by 2002:a05:6870:169b:b0:284:ff51:58ad with SMTP id 586e51a60fabf-29051c03edbmr5720685fac.27.1730104133502; Mon, 28 Oct 2024 01:28:53 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7205791e451sm5195419b3a.24.2024.10.28.01.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 01:28:53 -0700 (PDT) From: Guodong Xu To: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , rafal@milecki.pl, Greg Kroah-Hartman Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Neil Armstrong , Heiko Stuebner , Michael Zhu , Drew Fustini , Alexandru Stan , Daniel Schaefer , Sandie Cao , Yuning Liang , Huiming Qiu , Alex Elder , linux@frame.work, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guodong Xu , Emil Renner Berthing Subject: [PATCH v7 5/5] riscv: dts: starfive: add DeepComputing FML13V01 board device tree Date: Mon, 28 Oct 2024 16:25:53 +0800 Message-Id: <20241028082553.1989797-6-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028082553.1989797-1-guodong@riscstar.com> References: <20241028082553.1989797-1-guodong@riscstar.com> 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" From: Sandie Cao The FML13V01 board from DeepComputing incorporates a StarFive JH7110 SoC. It is a mainboard designed for the Framework Laptop 13 Chassis, which has (Framework) SKU FRANHQ0001. The FML13V01 board features: - StarFive JH7110 SoC - LPDDR4 8GB - eMMC 32GB or 128GB - QSPI Flash - MicroSD Slot - PCIe-based Wi-Fi - 4 USB-C Ports - Port 1: PD 3.0 (60W Max), USB 3.2 Gen 1, DP 1.4 (4K@30Hz/2.5K@60Hz) - Port 2: PD 3.0 (60W Max), USB 3.2 Gen 1 - Port 3 & 4: USB 3.2 Gen 1 Create the DTS file for the DeepComputing FML13V01 board. Based on 'jh7110-common.dtsi', usb0 is enabled and is set to operate as a "host". Signed-off-by: Sandie Cao [elder@riscstar.com: revised the description, updated some nodes] Signed-off-by: Alex Elder Signed-off-by: Guodong Xu Reviewed-by: Emil Renner Berthing --- v7: Add Emil's Reviewed-by v6: Dropped all node status disabled code Enabled usb0 and set its operation mode to "host" v5: No change v4: Changed model string to "DeepComputing FML13V01" Changed dts filename and Makefile accordingly to reflect the change Updated device nodes status, and verified functional Revised the commit message v3: Updated the commit message v2: Changed the model and copmatible strings Updated the commit message with board features arch/riscv/boot/dts/starfive/Makefile | 1 + .../starfive/jh7110-deepcomputing-fml13v01.dts | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13= v01.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/st= arfive/Makefile index 7a163a7d6ba3..b3bb12f78e7d 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -8,6 +8,7 @@ DTC_FLAGS_jh7110-starfive-visionfive-2-v1.3b :=3D -@ dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-beaglev-starlight.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-starfive-visionfive-v1.dtb =20 +dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-deepcomputing-fml13v01.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-milkv-mars.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-pine64-star64.dtb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.2a.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts= b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts new file mode 100644 index 000000000000..30b0715196b6 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 DeepComputing (HK) Limited + */ + +/dts-v1/; +#include "jh7110-common.dtsi" + +/ { + model =3D "DeepComputing FML13V01"; + compatible =3D "deepcomputing,fml13v01", "starfive,jh7110"; +}; + +&usb0 { + dr_mode =3D "host"; + status =3D "okay"; +}; --=20 2.34.1