From patchwork Mon Oct 28 08:25:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13853168 X-Patchwork-Delegate: mail@conchuod.ie 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 EBFDDD13598 for ; Mon, 28 Oct 2024 08:28:54 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DO7GLYszKhNXGhogZFM5TTrCVOMTkl+d6h3cIbuGBRQ=; b=bkAbXjbuFwFg9C BDVxaEkphPJ+kt+FF6Inf0DDIZbgM15t1pMNmMeHoKiATuBikV+fr+CQowSd2UhW0kf1c+Zuzz7oI Z1x0qUhyg8zYTDwQamJfAYgQz2onp6qKmR/YadDmNRpqaqMq96RUjVKlqM6V+1R2Exp6JJHIFtgpe kdIjIq9kzo0gkz45MHT7/qhSt88HPMqnqFEVrjgMG689nbNB1jxmUUfWGnm/tPsHnrzYlA3aFpz/o Gz2PWJYjoyCiuTA55c3DaKgCXCBZWZZHMnAgCTUdWFI4zMsw+N+xxbCVY3jFc/rqi74v+97bDE3uX 1RKaLtJjxY1lnBEmRzFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7I-0000000A5fF-02qQ; Mon, 28 Oct 2024 08:28:48 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5L67-0000000A5Kl-0SCI for linux-riscv@lists.infradead.org; Mon, 28 Oct 2024 08:27:36 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-29066daf9e2so626750fac.3 for ; Mon, 28 Oct 2024 01:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730104054; x=1730708854; darn=lists.infradead.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=bsfgotkKoS0WaUHUWY8J/hPtZzXW4jK/W4eVX9wKRQoEYmceV1xkw01k5QhDuu3nkm UqJpzzNGoesDdV/zgDYLWE9ObqPECx5mbCc8KR82IILNGudWsKNvyJT4+nyvycs7K8pR QL5O72w0kMXWeZmrzv6I7PKeO2cgIcoJxPwh/ojTsS5Cf/FTGLija+HmBV1hXyHXTZMa JCV269tx9ELDc0NPYKid6LjMdrznUqFbBA+/WAiIEMJqJzEb9StvOHgsJMOL5j/qf0Ol E7UlwBrkSObRMdNMIac1hj9JXLMD02yEuKcdF46kwpG0G6zCZtmFrrwvpAL/FdgCr0uk 29VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730104054; x=1730708854; 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=jMSiwo8MXvMjB3NChDIZW/kKlJHKChCYokQfaHk3hwkzVzkipkRkdlZKj3gmg6iD1F jqOqmA3jQDrVwVdEaPlyflZSEalobVk0IA/sabGcsxBx5/zgqhanI8qtHsNQPpk9U5F5 uns3GPIEHvQS9sqWoyuj00Erd5AtYu7RvojWzPwY3RMvIUT6OUjKOrKMaQG+0yCaWCjl +vHIOtsMM65v6sY+A6G5dBAVoKCNZ4ceu1VQsgvHJMNo7nWYXVgFihluXhhlwjsJkd8c X5WB32pzMzcbZ2qpapf/BQ2laj6kXDG2WzI6qZpjeWpnQgKYN9Mdni47K4C4ppX2yIat uZ0w== X-Forwarded-Encrypted: i=1; AJvYcCWIjghEq3owj3fMCtQQA7JBGoahJyP9N1AoFt7y1ocAfr/OagoUXHLWVAa0DSyq1crEJ8cVHDnC4iPThg==@lists.infradead.org X-Gm-Message-State: AOJu0Yy/r3jyr9vBWLXru7l+0pz7gnml2lfvKXnBCfxVleDXny98HZl6 UcpTVaqnd3fESLTNPVvqYnVcLW9eGsUJe19Qz7wym5HaZbDIl0BKWDqojEuePIY= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_012735_173640_2175BC2A X-CRM114-Status: GOOD ( 13.07 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/boot/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 = <&phy0>; phy-mode = "rgmii-id"; - status = "okay"; mdio { #address-cells = <1>; @@ -196,7 +195,6 @@ &i2c0 { i2c-scl-falling-time-ns = <510>; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; - status = "okay"; }; &i2c2 { @@ -311,7 +309,6 @@ &pcie1 { &pwmdac { pinctrl-names = "default"; pinctrl-0 = <&pwmdac_pins>; - status = "okay"; }; &qspi { @@ -350,13 +347,11 @@ uboot@100000 { &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm_pins>; - status = "okay"; }; &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; - status = "okay"; spi_dev0: spi@0 { compatible = "rohm,dh2228fv"; diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/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 = <&aoncrg JH7110_AONCLK_GMAC0_TX>; assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + status = "okay"; +}; + +&i2c0 { + status = "okay"; }; &pcie0 { @@ -35,3 +40,15 @@ &phy0 { rx-internal-delay-ps = <1500>; tx-internal-delay-ps = <1500>; }; + +&pwm { + status = "okay"; +}; + +&pwmdac { + status = "okay"; +}; + +&spi0 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/riscv/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 = <&aoncrg JH7110_AONCLK_GMAC0_TX>; assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + status = "okay"; }; &gmac1 { @@ -39,6 +40,10 @@ phy1: ethernet-phy@1 { }; }; +&i2c0 { + status = "okay"; +}; + &pcie1 { status = "okay"; }; @@ -63,3 +68,15 @@ &phy1 { motorcomm,tx-clk-10-inverted; motorcomm,tx-clk-100-inverted; }; + +&pwm { + status = "okay"; +}; + +&pwmdac { + status = "okay"; +}; + +&spi0 { + status = "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 { }; }; +&gmac0 { + status = "okay"; +}; + &gmac1 { phy-handle = <&phy1>; phy-mode = "rgmii-id"; @@ -29,6 +33,10 @@ phy1: ethernet-phy@1 { }; }; +&i2c0 { + status = "okay"; +}; + &mmc0 { non-removable; }; @@ -40,3 +48,15 @@ &pcie0 { &pcie1 { status = "okay"; }; + +&pwm { + status = "okay"; +}; + +&pwmdac { + status = "okay"; +}; + +&spi0 { + status = "okay"; +}; From patchwork Mon Oct 28 08:25:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13853167 X-Patchwork-Delegate: mail@conchuod.ie 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 BD06ED13599 for ; Mon, 28 Oct 2024 08:28:55 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pCwXTk/omVDe1M6PdB/HaWp7lMHv95FvmhZoDmMmJv8=; b=eWfLdUA64ooVqM Q3oyTg0Z0p4w9WKngYh2RLI41ZyKNR2tBxGayF+QZQLVnoQIxv404exy2HpODJtkOB03aPMz6yQsc CKYIfnL/YOxA7+Gp1dd5v2+DQrBpEz3PgaO3xpYY6Md4nQozMnFepr9zMu62NpSv8NjjNELw9jUYV hJqZIoyiST6tDz3cjAKS56EcFpsHq402MkQGgLaH2slUcA4OKwflwF3oHRN95dvBPP9MSzI1yGKBT 2lrbtlrgbX0o7b6FdxP82JIx5MTuQGTOhjYmZxgkn22CGHHa2Ecr2n0srjaCsLGID1eUg7NCfiGM3 UrFV3YVYpTbk4sTGINlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7I-0000000A5fU-3AxN; Mon, 28 Oct 2024 08:28:48 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5L6T-0000000A5Qy-1NbZ for linux-riscv@lists.infradead.org; Mon, 28 Oct 2024 08:27:58 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7eda47b7343so2492552a12.0 for ; Mon, 28 Oct 2024 01:27:57 -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=lists.infradead.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=jpcQXuCwUtN4tPhQrd3tmiOJsqALd9fPNerD16lN2Qatpt9qD93bDRW292fwRS8g+X 6bhGEZSVWzdHHcsM1ancId7ZOgnwWhQ39XQgD7LwxAsecCvZRHygkyVvhJ2mM5cUPTbf 3GQwUSPllssAjQyOuctb3G6BpujxWZhiqtlHs8/FuDJZfk8WpSTLl6kzvA5xBcGJyc65 /x9VVtpuTRyxh0mWjoEZcq9tjWXvCgo+RO8hWkhSuqjv7eJTHTj9Sz9QyMoxcad6yoAT sXPy7yVOGpMfvhg/ZkQeEWOxBhOVPZ3re9maAGX3Zb8UErqFh6ESSUTA4FCChOdl8ypX ZDEw== 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=VCQw5zfmWjHcfTkxW6y3X5anCpbf0jrKmMb7BwdXzbnqu0hBSydD2amXBg2NVjLeho Fxq6GRUE8kCua6VLiwBS7VWzrkvTIJcwXCxC46z3mpEjKOIurcRcyOjM+M7JIchoRRcL 7tPlS4chpYl56DBi8CVxTjC2WlxFR/FP4ZgwZmfAgnwqAYZxRt5PqRMWYeJsTnFdrpQG 8EgsJr4KGHdtM5qVIQkw4ONFqVJbCk80MqDldVjjvSK3+aNno1BGbV/cHP4LrVG19XTW 4ACadaxLiu2Madt/sFHIonozN6GnSOFdiTxsVcvOidnJQ/5oIXt7/4CwEWAjMzS4hcqn pFxQ== X-Forwarded-Encrypted: i=1; AJvYcCWZ7swjMRpNRQDysAPPOgMfVKMIHHO57o4kJyW+cD1S+fADXmQkEZmvtOnYE7D9/wPiK2P+koll9NDsPQ==@lists.infradead.org X-Gm-Message-State: AOJu0YwspLzu6m46Yc9wFuP2QRQSB532+OPb/7qHFHVSQAtm2OXE3d05 Br/iNVpfpyDma2PCsMLeaU3nOvtvsffWxBiLO8oI6JZXEBRbahNsLwKr/hJ78K1VimjGRgaRObj jLOtAOTvL 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_012757_391685_F73AF099 X-CRM114-Status: GOOD ( 11.21 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/boot/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 = "okay"; }; -&usb0 { - dr_mode = "peripheral"; - status = "okay"; -}; - &U74_1 { cpu-supply = <&vdd_cpu>; }; diff --git a/arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dts b/arch/riscv/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 = "okay"; }; + +&usb0 { + dr_mode = "peripheral"; + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/riscv/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 = "okay"; }; + +&usb0 { + dr_mode = "peripheral"; + status = "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 = "okay"; }; + +&usb0 { + dr_mode = "peripheral"; + status = "okay"; +}; From patchwork Mon Oct 28 08:25:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13853165 X-Patchwork-Delegate: mail@conchuod.ie 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 8AB06D13588 for ; Mon, 28 Oct 2024 08:28:54 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lpLwMkJ0v3dhxS4bdHyHh31AWkkJTv/FlphP/9tL30s=; b=RQmcvvDEASirnl sCVMvB7j8tt2Vnmk2FbTj1Gcmiet4/0a/faUGyuwe3VhD7vHtUtlkvsZ5DWqlLod+k6N9RdZwJ313 wrX3wjvqiHDi6YFwU5fHWDPWFtbs00sfuaiyaQKzSdtIo/cB3ujWjGPOdvqQQh09A5RcR+uXtJPMI 6e0/Tv9OFZq3i9wPap8gRKiXD+o6RZ8HmokypKZb2ahuXpwDGUnn7SaGMMUkz7kENK9R6xv/lWYLq BKdnVyk2NWpDbZx9AW+CIxl2jMziS4tLXjIed5/OUBCo3RMMQC9P4nSIxrfwnFXc7gKn1BlPMmqSg uTBouLcgzCta0+6y/EsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7J-0000000A5fh-1uAv; Mon, 28 Oct 2024 08:28:49 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5L6m-0000000A5W3-2CCn for linux-riscv@lists.infradead.org; Mon, 28 Oct 2024 08:28:17 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71e4e481692so3210189b3a.1 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=lists.infradead.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=L+oTOJkotVmMvTSE4vVYLNTjPx245DfaWUtGmFi5Qcrcqu36J1ei/KJhQLApGARiTj MbHvv9CDgiu0syT4i2aZVwDvJB0m8Y7W7yyRC4VoSkE1WXVpf6duEZdAwCuybFRLqr7X dOuuVjSiM1T59K9fHQiPGFGweyo+s3mxtQasdIvI9ans7zuhRgalgD7Gx3UN8IEduJ/B RNDkoPnF/isCtCwFSlrQS2ytZoTbi1/pMdLJ1wA6KAaTgdsFNUcSmZGH3GKZahkUj+tH at6yQ9xfB2MblPOibVOfZlfxswkgHJiy3V8xWoiSv524k1Fdm/lxRfybBJs7jNknYChM JRww== 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=e6Jn9qTuZMT2FqGtm8Rl4Ys/XB4LQyJr4H7wRvx3nc/NRLG8CKZZo8TA+KJK1g/3wW AxQCkJo6m3FKvbKQgROMf7HTIb14vp2oWYjyJOYotcf6W0uyMqcuTq9jymI/2DqjiRxX 2XNeaxlvTzknA151s1EIIgIBfp94XWwx4ph1WZiL5vCmuKU32+f3O4Dp0SRRBhRhhcqF Keerp96XAgMEC7rANI17YhowHWpuUgIm/rnfudV5t6lDAAMu79LIoZ7KygNL8iHQ+/C2 xyIXKNXWYCIV0zmClx4kluYfNEsGpwupu5iKacBglOQJQkglUHawmbR+14IZ1Uf9ODSV B7aA== X-Forwarded-Encrypted: i=1; AJvYcCUUbR1IYmYsihbtU9xw9hUaYA3yVZL3QiAkQ0LsTBe74SL9T2a4h0gzd8iEuwRq4HknZmoqQ2cSp9JJyw==@lists.infradead.org X-Gm-Message-State: AOJu0Yx5HUPlzXw0GomGwViciwYexM9zMRZfc6fC27Ij3qOFCXL/ufUf dYCzQkHaUU4eMXgau/jNF6lnmNKPLSmrYsEM4aesT0r7qyJv0qI5IEgYYbKQOwk= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_012816_598458_BDE0C97C X-CRM114-Status: UNSURE ( 9.05 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/Documentation/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,.*": From patchwork Mon Oct 28 08:25:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13853166 X-Patchwork-Delegate: mail@conchuod.ie 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 E7F37D13595 for ; Mon, 28 Oct 2024 08:28:54 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XFF/Q2Q2HFBxt0mmWS0L69OxIznHf+WxIWPXH0THWQ8=; b=l8VUBmG+XgD4u+ Wo8jQhAYmZ/95utxdncAqcU/ojamUb7QqXqt4yxxfz9KTYHAVZy0zjAF4rurWCQcDnABRhKrqtnAy KnaiGX6dnaMKs+2nyPG7GKVIMplmCJcXbXgbN4Muu2369dU4P5/hOkA1ggAueB1SOFKCZAVR/0PkZ sCao0lVAfxUJaLcUSLB+P9zvr1nLeCpoa1Ty7llh29GCgg2yr7izT5dSeLrABPSEjY2qgeuet8ZM2 8nwI9x08QlUIWqhkhzUUUYCHU/NhgXtxIjEPbZ5Le2G+MN32BcDApAq7ZzzMIbUB6wCEOJYKpK8pF BAgPKnlQCMRv1oloOCxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7K-0000000A5gb-11BZ; Mon, 28 Oct 2024 08:28:50 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5L75-0000000A5bR-0G3u for linux-riscv@lists.infradead.org; Mon, 28 Oct 2024 08:28:36 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-72041ff06a0so2550063b3a.2 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=lists.infradead.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=PXkpUdhz4w2qEOVf1ztmKMv068JQvY7TZmuG/Ljg6sTnVaWr/2Fv8jD6MSpcOOp4G7 iCmTPNoB0GmS1UuWlO/idQLAds2wuuw9P356Nvr7oTFKuCEImUbi0LFa1DYBg2MGUN6I drd2XROCUfw/nTEoD8IfEW8r4Bijo7gpZJ6vQBzhZd1t9Y+/5qjdajh1nOgWgOdcjKG7 jRiJcCqmX+YFi30i3SguMtrvcQ68uYCAZ6qqoZw9aBkuhMZ6Sqz2HGY3jwHuIBYRxx8O mRLxyilqjLLO+laO+NeL1xkAjme3dfhMiWlMDg969EWR/bxp0TbSGLFbkiTkvYrAdLpX tBFQ== 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=ebx5+zEY2npr5ZCZ2h1mMGtYxtFjqNsrmAfZQuVzt+/Had+XPBePwtmxoV8k4UBKYw ykF0V5WHVu4kku1HRNts1SEDfQrKD9rMJ7xxZ3FhsmyujELfJgQz9E8778oMhHlKzASq ZRshB7yS3pklswNnUNg4PepPLiftFSEWIMqHugtMFEK6X5ooNALXU8wbG6eqbbxPvD+H gQw5q/RsCd1zi9zezWPzlwDh1E+qnlTOFYlbnhn0oloBBH4J8caaVcx24SBy5Qxjg6Oy g6beB2pqDa1walU7ebtxT3CIFEPEMj4926pwaMfs5zOojn9bMwGyVA6htNOXxuIx0aKc EHzw== X-Forwarded-Encrypted: i=1; AJvYcCXRbA5BN70kQa33sfBvFOQEyioSGJBi2M5akdESZpT0MFTtyCTg9e1/So23SZ4vFiFMtMQ43SORXNILpA==@lists.infradead.org X-Gm-Message-State: AOJu0YyoX4+ArOvwOhjKnK41LpW4aL/f45q2vNusHel0H/RxvpFNV6aR 0xn8HzZh/AhzLJm1V5yTMP9bwtnrtCAm5nqfc1omjTN+Ph5BT2n0rqvoC6sWlZY= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_012835_133459_588ED473 X-CRM114-Status: UNSURE ( 9.00 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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/Documentation/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: - items: - enum: + - deepcomputing,fml13v01 - milkv,mars - pine64,star64 - starfive,visionfive-2-v1.2a From patchwork Mon Oct 28 08:25:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13853170 X-Patchwork-Delegate: mail@conchuod.ie 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 BD6BCD13588 for ; Mon, 28 Oct 2024 08:29:03 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MZl+fsTgZ9g1VTL8l2SuohqjhiALWauX8PCc3ngivwA=; b=b2YZF3biqibo6f /ciAbVXHttUOf2EyrBVI7ktYOzLfaGM73vrIqDwr9GqmFEQGN8fNMLLLYyPZYILcdC3O4cZdqUjA6 OFEGpG7BWQXehtqqyyjDFUqvxrD6PV2WdBzOT2bG3eXYKZZXTfOxG1Wk4ivhzRXr1uDl4dSzPFzD5 LLqb3dDLfZ+lQVH7D67OwHOY6kOEBjWNnMcAyYOe9NNhpqWD5gpJEYhQHHhduMXk0Y2zIoeF8FNF3 STdyDoIQ8lzOlSJb37tw3+I0Dhfj6EuRhyGwMnEp/hjDe+2/5QRgZxNVGOwlxZwlWKmpdBGi+rNFr KW+p0nnNN7/0qkm0FoBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7S-0000000A5m3-0Vdl; Mon, 28 Oct 2024 08:28:58 +0000 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5L7O-0000000A5jR-3cW3 for linux-riscv@lists.infradead.org; Mon, 28 Oct 2024 08:28:56 +0000 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-28896d9d9deso1868433fac.2 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=lists.infradead.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=QAqObGOHbwelRZb3C+5o+jIyOt+L6tvylHiTB5fPUo3tWBsJajKsuhYHTWbV7Arsbh qFEyS2YhSfeolTzAaxnLiXx6Lu5wg+Uln7HEUmZL2JMWyVz5sVAmF8/UaVMCLGZA9zVn 6oLwWeJIl/Fu68CCP7fPrjAR9TsT7/+0V8s5lbnc1grKWX6/z3lRMyeG6eW4H6SFA0cy 122x8tp6SHK4BuOj4eObOkjevd+Bs1JWPnY2OCJxBVHJ14P7QHjIPaN1G6GusIpOwZLM gd0aZLEGoStvxEKupxIP0s+IZplytisQ0SCLeQwaFpocP9xYMdO5R2JhWd0chanQdRb4 FrSA== 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=IyQExRLKFK809kTrMCvAyOPTM2LlreFNj/4utDNDJUrrGNF+FD7uYGnSarouunB3fe 1Nm70/4yC3x+FcqsyQx8N++Y8rDhe7GcQLZ/YNQAR7dPgTxYfynZ23QXiLuwlWGDh9Qw ULPy4UwxqVQUu96Z+si7nAsdFBDvN1OSV8bgXVgjh3/Uxnqe3IZE7xbdCnDomo3uBIJJ 4Uuh/RuPzjKf9Gfvm+S+LFkcNxzhrVuDkUvX0ADEXOfDJlLqDZcQPbPxZhvNXNdAWIDE TlX1mm4FyKud+UHVkOC0xxR047uqCtFUO+Fz3Gbza77u1SEPGawqSpI2h10KBqIAa/ud 2DQA== X-Forwarded-Encrypted: i=1; AJvYcCUvknN4J4t5B3tye3uiV7hPN3CBJ7z0z34h3ImjRQ8/Lmc3TfU2x1x/D8sYqSzrscsovBRP2bXLA+0qVQ==@lists.infradead.org X-Gm-Message-State: AOJu0YwVC/hq84rvvICqZ5zSxJS7BCn4Pza5WBPDgWB3PxI29wQ6kTX4 tSw0DfY6tQbD6HYYLjxSqvRJI+Ho/2yaD7I9RLf4Rc0ukYNe0f85onI1kuOtzMo= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241028_012854_942607_0FFE21E1 X-CRM114-Status: GOOD ( 14.48 ) 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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-fml13v01.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/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 := -@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-beaglev-starlight.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb +dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-deepcomputing-fml13v01.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-milkv-mars.dtb dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-pine64-star64.dtb dtb-$(CONFIG_ARCH_STARFIVE) += 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 = "DeepComputing FML13V01"; + compatible = "deepcomputing,fml13v01", "starfive,jh7110"; +}; + +&usb0 { + dr_mode = "host"; + status = "okay"; +};