From patchwork Sun Oct 27 14:44:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13852683 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 93F6CD13569 for ; Sun, 27 Oct 2024 14:46:08 +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=tglFULs1VTyUTmMZksK0aGvd0FD33AlEsYjWlcrCKZs=; b=pIT9+EVqRGx5qR uOsRqvSoxEvAY5yx2SCzQl6GAQFJQS3igcFsVCxoXXLb4GkwDnSirqoGvLRZnpVIBmgawZdwk9URQ d/Cei8rIc7XMQGmwUGI2u2DrrpIwkzDf5M+TXwWojQg1fNpfIU9OU/DC/iITzTUrMAd6VImBLeMqb H4gxxqg9ATLajavUi2/NP5KVpNYAZctJKq04wqxguAXMb0vMC26CHGyOxSWDRYhqs7nYgYnO0XfPa IA8d0MFJbsyYNVzWNncOGz0DuveddDS3h43b20NFNoCr9cGw1Xi2Td7PphKdT34T9GYGkPELIG9ML dAORr+Lhv9mPPfIMm4hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t54Wq-00000008Qns-0OyL; Sun, 27 Oct 2024 14:46:04 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t54Wm-00000008QnI-0rZl for linux-riscv@lists.infradead.org; Sun, 27 Oct 2024 14:46:01 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-71ec997ad06so2457309b3a.3 for ; Sun, 27 Oct 2024 07:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040359; x=1730645159; 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=xWEEDIuoc+ubQpnTY3Wis5Eq7A0dylpkEwbr0VsXG/k=; b=jdqDvL2eTboCyNJErEg9Mpi1lPDyIrQFV8OklIUyV5AIUBFVWnbGlCYbk1kOegMW61 Qsqwd8J60FWizXeO+K0QAj2y8GE/C4unX0JXIz3v4JdFAC9d9j9VaAF64nXIrsQk0+64 JHcuiGB2dKTKGCVpXZtArtWl57FQa+Fh3K8/3Y4aKpHb57oG1f4sgW355QozdFKMHokB 5uvBV/6j31IgjgS3DkAEL1mUSPMxk0rw8tKFI6Euyiat2sNSot30Djoj+7+nX0o5WxOe Jf1R0HDuCptAwyJa2BZVXgxQMYdeEG4mzU4RGS3XECSrYhEIvPfjMiCqe5vSAvW+r8kg faVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040359; x=1730645159; 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=xWEEDIuoc+ubQpnTY3Wis5Eq7A0dylpkEwbr0VsXG/k=; b=JalaK61a+i5lrk4GxXJvGQ+Y3jznwVKQL6ZQX1ZthB7uqLyxvuuEnFKrgQ3mpmijSa iW7hc2qkLp6P6XyZexBPl0Ul/U7NCgBGvd7JaOeXgodji95J94hJZbs+zCwB9sv59iEu zLERH8mHaQp/F1RWh/JTjk7uAmC2JnWXGElpM6h+WCKbpnRAjlcGbVvZ4BWKJEI1TjWk MjgdgEMJCRl4xrXMLUf0KArJdTy09mgtEYKlCpgzpse4Ofvp5zNfNVAVT0GC2vCbeJ1P E4JwQqEK2Zp2WIW84PsrCkAxUknFyWPyKoUh68WGRMPfSLHjksxZJKzSQSFJmrA369bM 1uhg== X-Forwarded-Encrypted: i=1; AJvYcCX3hvK/N7ZN196afxymwwf+RqlXJ1zrINibc7yGMXz7Jbf8q4Tk/R14C/OY3dVy1yp+/XU7XQx28KZ12A==@lists.infradead.org X-Gm-Message-State: AOJu0YycbarKPl03x25TdgLrcAjSLT7FsFsvsMyPNLdFvyroncZ6EqZ8 kSaB+RIL2LzlQa2jXVOXQwfnzbPnJ8Vrbhn0GNtuZAN4+5e8Ce8HOiHRHV2AwcQ= X-Google-Smtp-Source: AGHT+IH9/LAPD9XkxqAgDEzE/OAVQvWb8BYcvTb5Lysws0ZyjzOdHM8FJiGWnGHE78Q99U2WeQiUiQ== X-Received: by 2002:a05:6a20:4499:b0:1d9:1f51:faeb with SMTP id adf61e73a8af0-1d9a85349ecmr7492678637.39.1730040358888; Sun, 27 Oct 2024 07:45:58 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:45:58 -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 Subject: [PATCH v6 1/5] riscv: dts: starfive: jh7110-common: revised device node Date: Sun, 27 Oct 2024 22:44:44 +0800 Message-Id: <20241027144448.1813611-2-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_074600_269559_C4BE28C4 X-CRM114-Status: GOOD ( 13.19 ) 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 "jh711-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 --- 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(-) +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi .../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 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 Sun Oct 27 14:44:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13852684 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 D3271D13569 for ; Sun, 27 Oct 2024 14:46:32 +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=rfgRC+G2GopjhaT0PkBy7V0J9c75wnmCdjWXy/RsWYE=; b=v0yQgloSXaC2ov eBoxOZlIwkh+wCnD0A9teqrf0pA7JeJm4mdfX+y6gOhuJ0IxTvT4H7vie6V1Y4UwMlGi09BK/hcaM sxy1NNC/j7jiSImKxAMNj2rJLzq6S6Rws7Pejmin9gbn5GqBtNHm/U720Rm07mdpjeq0eP5LEb1qK ra5dNcsroeSyhb4yY5l7DLTuSEMI/hVHVcWJc9hfps3l/9sFEs8QRw4IKUU8Z58aZeHXd22DnDLTw IymGKl0vftpccf5h7YSqDJlQmE+uMHw3JMqZfZo7ijKwq5uDyFvv0L2FEBau27INpm+PA5FZYNfXQ iDtm/7AVklHAuuGYKBKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t54XD-00000008Qub-2QDB; Sun, 27 Oct 2024 14:46:27 +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 1t54XA-00000008Qtc-0q2u for linux-riscv@lists.infradead.org; Sun, 27 Oct 2024 14:46:26 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-71e5a1c9071so2622195b3a.0 for ; Sun, 27 Oct 2024 07:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040383; x=1730645183; 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=paImQxICJubDh0CB6JnawmhEoOa3+oPQD0jlOQSWPcA=; b=1apXtN/iuLNkWqpna6uqGntKnzabvysawxZWexlztV1QfzXEqbtHg/WmgDaBL9+Ok6 oAjlvngPVH9rY74F2v8kHuyUFJu1xVA5IXGeZ59+7ZPQKnsYqVIaEXo9TnX0BIZZDw9+ PrB0ExwPoOqcLuqmpdJlnztNZeQkFbmZfO9osAvVylQPO+0dQ0hX+aZqITRj0WUDE6Px 1T91kIUsShUqbq6eu2dOTxiNV20eo98DxQ1qh/kJvLmqxP3Sz9S9WCnVRVSC5GGpXbCO VyBGNbYqtM/dxK/KIKTvuQjQVJxdSGpKTJ+lLTJt8DiNBQiCQwfOxpH9aUP2yYDl352i F+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040383; x=1730645183; 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=paImQxICJubDh0CB6JnawmhEoOa3+oPQD0jlOQSWPcA=; b=HAfVN4kVraFi6kHF9PZIMczQaKpzn/tHAkaQhgAVLoaN5Za0bDjqCOcFo9O8+IDAre 3k+ZJb5zpA8MQU2DXUFogbU4fbtenRl2GABYvHiJ8Shm24vWyKr25lixfeEjqkDotrMT qaaXuEWzzjwcvIZuYNX8kaEhKbZ7IBtMESyIxMJFPJU3+0BRHx2xiMQLMncY8IMJazcw AJMjM0cRFBf3qJO1g5U/m/dCSe22+468FZ1W6AWhpzQZyC8vAp0utxqRD2w8z5st/Wc6 b1w62tk7e39Uc2yN7lHw1pFCdWOxr0+vPyA18vH59+UPQgkWjMAv73VW94UFbbAVMk6A EO7A== X-Forwarded-Encrypted: i=1; AJvYcCU2SV59+PZMOgBKGRa3yvwTpNUatm1RJv4i95evbejMvqKBDY1Awa2y3nnDUBF2lAs/gTEZ4tJGlYGPZw==@lists.infradead.org X-Gm-Message-State: AOJu0YzY2idLlSf877AJFWuEIeFjfDcZTtM3EwEBAwry+l5kuKcAjnYb htRFAoZ1E3LLO5bXui8S+a0YNlBV97weZdkn9qvTvcC88nXoYiNLYei1lTq8umo= X-Google-Smtp-Source: AGHT+IGrHBHy42UGfdOw8ol8FwKHGgUjeMbRosfEWH1RC9fjIGT2l+bD0MYKbWWAyathH6jUocCy/A== X-Received: by 2002:a05:6a00:a1d:b0:71e:587d:f268 with SMTP id d2e1a72fcca58-72062f4be8fmr8205821b3a.4.1730040382835; Sun, 27 Oct 2024 07:46:22 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:46:22 -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 Subject: [PATCH v6 2/5] riscv: dts: starfive: jh7110-common: move usb0 config to board dts Date: Sun, 27 Oct 2024 22:44:45 +0800 Message-Id: <20241027144448.1813611-3-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_074624_259422_ADD2DCF3 X-CRM114-Status: GOOD ( 11.57 ) 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 --- 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 Sun Oct 27 14:44:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13852685 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 1F956D13569 for ; Sun, 27 Oct 2024 14:46:51 +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=V241uIA7WXpL9LFfO/d0gMvsd5FgSdZl3WB0GcEdXt0=; b=XEqiiRJvLxV9Wr kWdAV4p77kHiC0R95mawaB53prPpOWkvzgbVbVvXCLLPxbqzFwYQIDnytbftxrmAcOZ2JhYaqihv+ MJrNbbTwUvSdqaP0ogUy3ffooFGo8WIMhv0+JOa0jSKL/tf5mg/2QUGmywZY0a/rJqulswOjOJBE5 79WhAnk1y+V9plTfhXMvQLW+MAElo5ypOId2NzPp0q8dHt8ZDAkSLk+gxofsgWkdvcVdk6NFoBxLQ 5L4nMwwt0Atgu584c4R7K3n5Q+wirlBtrZQvGW9gMR7EFXAL5NlPaknJA+BZOHk65SRth4vuCd3gP uGxnrAykjsfYFDuizO1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t54XV-00000008R1E-2j07; Sun, 27 Oct 2024 14:46:45 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t54XT-00000008R0B-0f0s for linux-riscv@lists.infradead.org; Sun, 27 Oct 2024 14:46:44 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-20e6981ca77so37368945ad.2 for ; Sun, 27 Oct 2024 07:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040402; x=1730645202; 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=VOnSm2C/X5gMpHd1icM+bHrj8Z4viAW8O/wWabP58r0=; b=Ame7JEo59W0jd1tIlVEZCBpTEt51jRaCx72UnCiSDjO5nr2myaYv1/EHH8wPvg23na b2SRj9o394p65EsG+3d7g13X2oCjZvbuTYPVUiNuoUnbYVJJXdPp+fW89f0WM9Q4Hkuu 5ExDL+zWSAc/+zRTYR846280U0RmPw24gcfN10M9x7nAy8T1eDVv7XckcOSAMJvuBrI3 HpqN5jViCb8tfkLfS8w/mntl8heozqdTcVcvMQThIChGSVcNJXaPQhB8/NqDVFjuQyLp k+L9E7Ngz1QjnF+NF/ssYRdrpBchh2KF8oqbMc/9Uc3ImQh/4uO5DrBBcwrAKXs8uZYE badA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040402; x=1730645202; 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=VOnSm2C/X5gMpHd1icM+bHrj8Z4viAW8O/wWabP58r0=; b=dhPvgBaEdsmc6u24MptS8JGUv1cGxXu9DSnKu19y+TD9Ezkva0WX1VwmlxxB5ZNBp+ ZA0ljSuJUfgeYWE7Z/78U4vz2P8irP9jGf1U1W2ihEPp2WvxB6DVGk//nL+4tobqKH5U snUjxL1XuTGQ0jcQ7SRLYoZjDNCsMGiTzRS2qSTvYn1/R25+YqgB4UODc0vxq1iy5+e1 MO5K8aEn6LoSEiZniTglC98P3erQZ50tmN/IuhRNYGMuwIwoO10Sa6BXQTsytZBLkJmT b/3frGXodN7rZ7xnhNr2KBhkA33/NX10Uy1wrgBkS+Dc5ce2YGyfzPw9JXP6NejSTY6n g9hA== X-Forwarded-Encrypted: i=1; AJvYcCWw/uK94sAzFbOksM5afiU3Yjryhl/Q5R/ZJa4D2b5R+JrwiYushzsRxZ74hgXz8n/aBIbGKW0ARPfqBw==@lists.infradead.org X-Gm-Message-State: AOJu0Yz+taV63sx1mWyXk1Z1LeopG+VxEvT5OXgdx8y+OtpTjjIZEryc 0npS/HQXKAf+c/4aaV2+6SzdmcRIdqG5FB/k/6dOllopozr9pk+PzQV9JIu54OI= X-Google-Smtp-Source: AGHT+IEMhckcSpTykUxTRgkirS7h3AG2OCqYwI+Il0+GmdsMBAeGzkYyuVJZ8rvBXKCI+SEK5+2V9A== X-Received: by 2002:a05:6a21:3a42:b0:1d9:1334:27ca with SMTP id adf61e73a8af0-1d9a840afbdmr7641465637.22.1730040401932; Sun, 27 Oct 2024 07:46:41 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:46:41 -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 v6 3/5] dt-bindings: vendor: add deepcomputing Date: Sun, 27 Oct 2024 22:44:46 +0800 Message-Id: <20241027144448.1813611-4-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_074643_220261_BC6F4D82 X-CRM114-Status: UNSURE ( 9.18 ) 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 --- 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 Sun Oct 27 14:44:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13852686 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 C09EFD13569 for ; Sun, 27 Oct 2024 14:47:12 +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=MrQAD6OXWt8RsKnxwYbYc6quL65b1FY8EbqbUqyUb+E=; b=nM38FvXXF6XFX0 KXFI5BiR5Nm6w2t+bEsRMaFvKvONhudBuSx3XtV+tuYc0u/eUX8/saRyUMIjampsyP86F6/BVVw/m 4X55yIs94QxUgwOfpKo1HRvp3suclfZC9w75C+78dUBYn+QSl6t9jHYDSwMDX2oi0pEkXok1Ze1EM BuPUxNw+bM40+uHXG/GQmTRLQyogUyhlnDZWX4pMKEwQeu+72GcL7fz3olx7s4CSwtj+rLuewvwc1 r5/8XfIKOWWC1+/HyRGDoimp4KLfVvVt7DqRdNkqyTqv/Xozs09SFdGh9UJb8ONfDRzgizGt72UwX vlNCFSjkV09oJQsQQRyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t54Xr-00000008RA3-49Bc; Sun, 27 Oct 2024 14:47:07 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t54Xo-00000008R96-3rex for linux-riscv@lists.infradead.org; Sun, 27 Oct 2024 14:47:06 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-71e52582cf8so2490427b3a.2 for ; Sun, 27 Oct 2024 07:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040423; x=1730645223; 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=M4GIeGGDuOvllBO+Y9jQ/t9+qEbNG0Nmk817vsmjLiw=; b=hpBozLNWIeQ44+nuC+2XJ/ogvp331t53JOH+SGUkfT/fmTe+qteYAjK/yBNS7xHNOS m2I4mL/dEWeJgDefPpft8g4MkwuYonRv2CGB3HAzASICTqttJ+MJ3ip9cFKMM+5xtAuR sOYN4TQwmGdaZNDForit0oibJ77vRbBFISGBw023Pd8FyPRVaQEP2fR5D8Q5vWaaMDud 0GUVUTY42T57OODZ8V5SAz92DCytqQ/Pq9fbVyl990xBNDmn7fjmytx6iAhXAoR1vsb4 gHjjSbtN6EvzXmlEZ1q8sX6RPfUoylWXypcauuo8BVXgzpOMDz8K6sX5ffFwDo4VViZB HlhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040423; x=1730645223; 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=M4GIeGGDuOvllBO+Y9jQ/t9+qEbNG0Nmk817vsmjLiw=; b=BOxupAaE2bisjFvsprwevloSeh185DNpa7gBEwf5uvAcTHZRU0apl/YemLUQ7N/tqu I9TTuLri9kXbQGlWuziRbmJlqTpsm5HUeh6uBVRvmzA/8KeUtfluD52Oa/uTfl1KFMKa t5sljkt24z9K+1iy0FPnQiuWqNxhye/wD6Qxo1nd4AYCt1ID8nsOVnRZtsNxoX8l66y0 5cGL4TFXH6sjshqM3DrcyvygnNKVPR2lHvkhShu31k3a5TdLcjP/BJ9XaBLKHbGIyA5X Dwi6DUgde7dKRHFs6KXEyDkseeSbXSEhnFIr9/jJInUDle3GSTcHT62k+XRXWn532rc4 RjMA== X-Forwarded-Encrypted: i=1; AJvYcCUfI+z83EV8iE6kfxMjIVH6+s4o6Te8/X1RVwbOyvHK/rLs4nGBdfmNkWm2p9AzQTKBn0cKYOWUwJEkfg==@lists.infradead.org X-Gm-Message-State: AOJu0YzqHE+79Gvxv0IVirejLud4/RMLcCj1hZcZvebJ0EAk8vhr7cEo /8SjHRQIa02+K9osZuG/jyj8qevgIQawZgbyp2w8/XBsRmKiXS0+4AyNLsB1wJ4= X-Google-Smtp-Source: AGHT+IGc+yGjvgSTs9oPY7Y6tGkDYIk9TB4OVA42DSvWRUo5dUztajHsh/RICDMaunwtF0trrzElzg== X-Received: by 2002:a05:6a00:2d8d:b0:71e:21:d2d8 with SMTP id d2e1a72fcca58-72062f836f2mr9281823b3a.7.1730040423607; Sun, 27 Oct 2024 07:47:03 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:47:03 -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 v6 4/5] dt-bindings: riscv: starfive: add deepcomputing,fml13v01 Date: Sun, 27 Oct 2024 22:44:47 +0800 Message-Id: <20241027144448.1813611-5-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_074704_984781_5DEECAEC X-CRM114-Status: UNSURE ( 9.13 ) 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 --- 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 Sun Oct 27 14:44:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 13852687 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 B6327D13564 for ; Sun, 27 Oct 2024 14:47:30 +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=XfCPEDuJYawhPC272h5BsXRA8OeiFRqY5Fsr4PveCu8=; b=fMm/sztHzEykEJ 5lyKdvwZl8bbvvSBJFlIB3/LiYaScxdRfGdSTdtyMq8gmzRCGxCuPOpiJ13AIGM7r7rGzdyYhxvDY R8KYhPgWun3hEVuZdu+gFGVqTyXgOxsTSuWLZTFeObf0zXUcZS2eSqbrRC7NjOodLkxH3oXlev0Ba qVXv29HwIqtKfEhaCF9XFY69B2wHnnK0/RaP/yIFdGjiI5nZ4xL4r25ojrWpUvWbt9YrmxvWd8VVe sWLOGR3aFroecq/zxrVyaM4B3CMTUZwcAlLyIAILH7KG1d32vbpOf4YVyKc8XG8JaCn3XhGtjxGmP x9GBjl/Xif8RBgg7B1bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t54YA-00000008RHk-1Q1A; Sun, 27 Oct 2024 14:47:26 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t54Y6-00000008RGK-2lg9 for linux-riscv@lists.infradead.org; Sun, 27 Oct 2024 14:47:24 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-7205646f9ebso1627173b3a.0 for ; Sun, 27 Oct 2024 07:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1730040441; x=1730645241; 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=+wvAtnVKug+duYdZaolG15HbB51AquCXywvQfcB1XNM=; b=oHvWUcrM4qYyOnKz7tuM3lhgOgjnWULB9jsY2SKoi0/HOB3DOFqP0Ubw/zUGaM1f9v BRHgVU/5eWwNlxTTQo21iFky0lttPqajz0e7yDt0AuEmXhhvQIFx4q0DjEekzIRecVq+ 9VM35h9df2WC/9rnoiGwT4XFoK77i31ow6OJfYOcbsw3Ect2+iXQoD16zhHPLLUzmQlP QmH4FiHVuYxGshr1UD90D04dSKCb9OdvRDFyGkAp0/nTJfs/R3tugyRApGJqOU/DEg+D sQgeO5/WHxX2yxIXEx0IHfEkJgQN5MV6lQAfcBtOSWV+qLbOV7WzazuuV2Lw8eNoFhH1 kukw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730040441; x=1730645241; 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=+wvAtnVKug+duYdZaolG15HbB51AquCXywvQfcB1XNM=; b=eJ2+u3nRjnnp02fBjjq5yzjnoJYThXWMhhSGo6G/iSktyrIiseB785OwHMvxfJPyBr onJOhlZ5RJM3Ktr2aAI05Al3p0RCBRb3NKce3duDC7QFDwD3FtqqGBdpJNEN4ffWHPZu e+K8lCk6GNuMSkxBKao19VmnWMJHDTw+6ENvNFLjdunyoV06/Y5/LPa/G10ify4sw0h1 YsG9T5z9VtKHnXIClE3Bxa7zHmAv0LQzC6qKFOQAyoEbkySxwynTWLBYz7RivTEgfukQ Ud9Tk6ETvGU9CKhR8O62LSn2ApmGGxqnWeCnpumvhA3c+rodpQ5L+DXe98cZhtl/051f hOzw== X-Forwarded-Encrypted: i=1; AJvYcCXEE7Iirjc2fcU0/vvBOitngQozDwaRi2zkdCDzRhFDCCSsmlXW36gqaGpeJDIChZmfVW4A93QknaA/xQ==@lists.infradead.org X-Gm-Message-State: AOJu0YzyNTwZwcP5mNk+jqTu0icsCRIUKlDI+aOHF2VPRQc9OJnYsSTk yfRyD3tFbeF3I7LiNcAoEd9cwq4NVwpAB3x1DTbxZKMfwRPPB51DXHsJDLYPf98= X-Google-Smtp-Source: AGHT+IFZ8JfzRKLnF0QcT9iry3r3kCh6zjZywop0HCotG7xPZgCeXWFldiFXMJMj7ItUcYcarU72Bw== X-Received: by 2002:a05:6a00:2d84:b0:71e:693c:107c with SMTP id d2e1a72fcca58-72062fb8107mr8106494b3a.11.1730040441113; Sun, 27 Oct 2024 07:47:21 -0700 (PDT) Received: from localhost.localdomain ([2a11:3:200::401b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057a0cb06sm4065110b3a.115.2024.10.27.07.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2024 07:47:20 -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 Subject: [PATCH v6 5/5] riscv: dts: starfive: add DeepComputing FML13V01 board device tree Date: Sun, 27 Oct 2024 22:44:48 +0800 Message-Id: <20241027144448.1813611-6-guodong@riscstar.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241027144448.1813611-1-guodong@riscstar.com> References: <20241027144448.1813611-1-guodong@riscstar.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241027_074722_750524_C958DEBB X-CRM114-Status: GOOD ( 14.82 ) 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 --- 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"; +};