Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp186915lqb; Thu, 23 May 2024 15:03:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKUzw4LFty2VKGUtsFihrR3CmCMBi5h4bGRyWAaaU50ck37Tvq24alXAAI/tG50HQQMaQR9l4bTC01QklNjI2/nqbyO8rJzyCNRWvdzA== X-Google-Smtp-Source: AGHT+IGIN2kqRXgwqpZA8VLsHQPZ5TR7gkSUBnAnsK6/v6ng7MhbNrWBCxVd5ljVfDLeXsT6fSjd X-Received: by 2002:a19:ca50:0:b0:523:6354:881e with SMTP id 2adb3069b0e04-52964ca8dd1mr173148e87.39.1716501800519; Thu, 23 May 2024 15:03:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716501800; cv=pass; d=google.com; s=arc-20160816; b=GB13ePFPLb8YlylscXlWkyEuv9jM6VivsTRUFXHNIH2d5nouob70gTsk6jSRCBo8mO fmIbd897Q4JpLKexgkDdQQp5OSntUHVcCzaE39Zkrunhq5eKb0o7u3rdO2Nb/gNNOO64 rlJViKALSf4cK69eTILTwJGhixR87arxCWkEy1kX9Pfodz7xYd8fg2M6FU47FQ9KF0MM zxn1YYh014/khCY3pL8lZwdg9yTUeB03YND6A52CAwO+IM7Hw3QgsdieHe/bJJDaeNP9 SM1uwGaqu5N8FIT7O6LfikWIRRJYq6xivGOl38kDlWaFdY1u6rftvz2Fsvh5rLefZTvh /eUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:message-id:subject :from:to:date:dkim-signature; bh=CdQtkbL7rZtxuy08orSqaz6hkhLm53eUyRt02+x9f9s=; fh=cUHukqOfTwAxuo9BusJRAcuUf3FrI9uB9zzpE0g40eU=; b=ILqE9U412jranWbQQOfpGtXOzOip8W3wcqAlloRqjdM/TWEl1m0sYHJJbp6593t2ql sVJeiUHHHZfnaUVHBGkw9IX6G90C4og+slsUWCrpw/mTbNxX1xhaoSJ70BTHdUdCVAKK Oj7XB2JJbtYepn9vT1IXDNqngBtsb5ZFBwWVpGHPd5wXxIUJJDaDj+Vvf5FIfmujJsax CgbpvZ4tfxddvbao8mCch9bB/l3Tbov9bOtzkQnmToEhkt27Rdm0k66UsYaSzmzPpBIg cQaigshL9+og8QZTC8x5Mtlb84SW/m5PMxkFTDaIbg2Avc6rUd+ckM7gVSJXkgrZDZu7 0U2w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=FuEBXsKZ; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188062-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd918e6si10686566b.753.2024.05.23.15.03.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 15:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=FuEBXsKZ; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-188062-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188062-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3D53D1F257B8 for ; Thu, 23 May 2024 21:56:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00719128389; Thu, 23 May 2024 21:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="FuEBXsKZ" Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D8EC128376; Thu, 23 May 2024 21:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716501353; cv=none; b=fIz4NYgZCm1QaTNweKR42T5pcEQLGo/rrLG6Bfx2m0XXWlJ496J9NXaCzpLJuACrn47vP+IW/qntQh/XFM//Bvag8+NVBByzQ7aqghFVOkwc+ZEx3dXd9MMN6erQnxBHUZvRRDmtN0j/h+kuXyyhSjBbd2pJvPLb4Szd3poHcmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716501353; c=relaxed/simple; bh=tCcsCjlTwKdqtbCnALVMqtV6Sm0kKj2mPnLSWIqGvNQ=; h=Date:To:From:Subject:Message-ID:MIME-Version:Content-Type; b=HXv6gP3MA3y6lZtIL9UC56ookujyIjzPWYsMZvy/Tt5DgOFXTq8f/rssl1YJDjRr/00leKnlYIRGmMA74RwJgqt3mpPCF7QyXPlsZebWyPpT2M+OKrAKTvMGVVUJ5pLET2IAYfm4332dCPvVuZSoutkjmkGTzOQ+mpqi3BcUaUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=FuEBXsKZ; arc=none smtp.client-ip=185.70.43.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1716501344; x=1716760544; bh=CdQtkbL7rZtxuy08orSqaz6hkhLm53eUyRt02+x9f9s=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=FuEBXsKZaynkzfG3KX4+IsWH286zWrcMgL8GC0kNoa0n6/Lda4YKEqx42p3kvpmbg bPPvNaeA1IKzeC/CthceuPOMC6Uf1O3ph+Jw2FLiDaZ7xrXU6ycBb/OJol7Z48/VHZ SLInoKcB7S7d8wiaDwVzv11UgKGJ8bVcAhrkqFuL7EgSxNuEOXy4BFayEpsYftCtPe Mr0HP3bSz7gccx1Pnc5KKX4v0AOdCMhtrUHG4q8y6mUzfIXSwV2VUUJs6SIh3ZnV10 kWMhzvLEzNfxD+Jl1StffRryKICDz5C/pZ46ULXXtoeqHYvIfjHZR1g15wGOcJf1JX UvM9z76oq51Ng== Date: Thu, 23 May 2024 21:55:38 +0000 To: Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , "linux-riscv@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" From: Henry Bell Subject: [PATCH 2/2 v2] RISC-V: add Star64 board devicetree Message-ID: <3Rwq1VegQtSiNjWbBny27eDBw9sCw4cXHBe_3FgihJ1i3dGI6rMS8xI32f2syRXKoa-XZubm7fMr2SED1haIWWygYWJA9azHqRzV6JSmTVo=@protonmail.com> Feedback-ID: 106097379:user:proton X-Pm-Message-ID: ae9242ee3f43ecbe40ad82c9cffbc6db9208979f Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The Pine64 Star64 is a development board based on the Starfive JH7110 SoC. The board features: - JH7110 SoC - 4/8 GiB LPDDR4 DRAM - AXP15060 PMIC - 40 pin GPIO header - 1x USB 3.0 host port - 3x USB 2.0 host port - 1x eMMC slot - 1x MicroSD slot - 1x QSPI Flash - 2x 1Gbps Ethernet port - 1x HDMI port - 1x 4-lane DSI - 1x 2-lane CSI - 1x PCIe 2.0 x1 lane Signed-off-by: Henry Bell --- Changes since v1: - Fix indentation and issues with field ordering - Update Copyright - Move from patch 1 to patch 2 --- arch/riscv/boot/dts/starfive/Makefile | 1 + .../dts/starfive/jh7110-pine64-star64.dts | 61 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/st= arfive/Makefile index 2fa0cd7f31c3..7a163a7d6ba3 100644 --- a/arch/riscv/boot/dts/starfive/Makefile +++ b/arch/riscv/boot/dts/starfive/Makefile @@ -9,5 +9,6 @@ dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-beaglev-starlight.d= tb dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7100-starfive-visionfive-v1.dtb =20 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 dtb-$(CONFIG_ARCH_STARFIVE) +=3D jh7110-starfive-visionfive-2-v1.3b.dtb diff --git a/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts b/arch/r= iscv/boot/dts/starfive/jh7110-pine64-star64.dts new file mode 100644 index 000000000000..fe7e5f3f7f23 --- /dev/null +++ b/arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 Henry Bell + */ + +/dts-v1/; +#include "jh7110-common.dtsi" + +/ { +=09model =3D "Pine64 Star64"; +=09compatible =3D "pine64,star64", "starfive,jh7110"; +=09=09aliases { +=09=09=09ethernet1 =3D &gmac1; +=09=09}; +}; + +&gmac0 { +=09starfive,tx-use-rgmii-clk; +=09assigned-clocks =3D <&aoncrg JH7110_AONCLK_GMAC0_TX>; +=09assigned-clock-parents =3D <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; +}; + +&gmac1 { +=09phy-handle =3D <&phy1>; +=09phy-mode =3D "rgmii-id"; +=09starfive,tx-use-rgmii-clk; +=09assigned-clocks =3D <&syscrg JH7110_SYSCLK_GMAC1_TX>; +=09assigned-clock-parents =3D <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>; +=09status =3D "okay"; + +=09mdio { +=09=09#address-cells =3D <1>; +=09=09#size-cells =3D <0>; +=09=09compatible =3D "snps,dwmac-mdio"; + +=09=09phy1: ethernet-phy@1 { +=09=09=09reg =3D <1>; +=09=09}; +=09}; +}; + +&phy0 { +=09rx-internal-delay-ps =3D <1900>; +=09tx-internal-delay-ps =3D <1500>; +=09motorcomm,rx-clk-drv-microamp =3D <2910>; +=09motorcomm,rx-data-drv-microamp =3D <2910>; +=09motorcomm,tx-clk-adj-enabled; +=09motorcomm,tx-clk-10-inverted; +=09motorcomm,tx-clk-100-inverted; +=09motorcomm,tx-clk-1000-inverted; +}; + +&phy1 { +=09rx-internal-delay-ps =3D <0>; +=09tx-internal-delay-ps =3D <300>; +=09motorcomm,rx-clk-drv-microamp =3D <2910>; +=09motorcomm,rx-data-drv-microamp =3D <2910>; +=09motorcomm,tx-clk-adj-enabled; +=09motorcomm,tx-clk-10-inverted; +=09motorcomm,tx-clk-100-inverted; +}; --=20 2.44.0