Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2199529lqb; Mon, 27 May 2024 10:58:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVDy2YwNpyuDoNg2Wv7fiJMtlneWKuj0DGRPztpK2PgWPBDw7q6WzlDGR++anxrA284DpTsdR9WKBfoV7SRm//IR+KtofuxJlGrClvjw== X-Google-Smtp-Source: AGHT+IG0qnUtUJXCAh0IevVL9ZV5gjEmmGLJwXrjAuvN9otAag7QAd/hUENwI4OzmCrFGBjtbSHE X-Received: by 2002:a05:6102:1251:b0:485:d1bd:64bc with SMTP id ada2fe7eead31-48a3855a6bemr8642404137.12.1716832716211; Mon, 27 May 2024 10:58:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716832716; cv=pass; d=google.com; s=arc-20160816; b=FZuj10HA4AGMCZ6gNuKuS5npp97+XDPlz7/OYYaC1JSz/Eieiph0KDsu5hEsQygRqZ qJ8g3RNaniUSWyCZXZvy2bMwJCcwia4fwymgzAEnGyh7pNifQ26HTlaOznKxAYC+jRW+ nUWqYWp/e311LujRxnQrX7XB82nXtC79Q5IZXI5cL1dRdfSmxGPwduUM1i/U5HHn++Ql 1i0AIySrG6W70mNKKFwn+e0cBmXyphuxinciNrPbbqHBMpUfRABpLUk7LO9TelGdsDAe W/ti7NMQ+K6W/5ciZWKvaDM5+cOqVW0vSCpGqbKUwwk968B1mMUOaEFGXaJAJ1XoXVvI SaEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kfm+67RC9slcyPkpkWJbxcKfJYoKu8wEzHZD3ejLbYc=; fh=7gjqehuMWMnVABF7QWOVcgjwy94wLp/uZ6oJwyCSzfE=; b=PHeUXhdR2EcDOAlII7+DVXCK40TevurXmLi95vbrJAEIgCZh/bLF2/vtdEga2kICO1 sopCiCIkBrMrHgojSZbLso21L7gOPN4QdzEIeog4O5JYCaBgvT0YlDyJuBdqhiypmFHb e+NGoKL7JqYdvWFGAw7o3uhF9gfgSsXQbsXyHmNCDzSuO6Ff1EsAsemS9myX+R3rCk1L v14l5YnUzhM5Z8tJNbMSKmOb/VCYNwLqFQWJPTOCQNx4XNiBetgP9heIMpKknPEcRcBB 7hi5jZhzZN/Gborba2fK2HLkPUKQRvlmJjUgqacQR+t7jdZHbQ1eMR3uYloiIwNlaVe5 MdMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEfnYxEW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abcab8c5si815422385a.25.2024.05.27.10.58.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEfnYxEW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E500B1C20EB4 for ; Mon, 27 May 2024 17:58:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4692415F321; Mon, 27 May 2024 17:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dEfnYxEW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5DCA515F324; Mon, 27 May 2024 17:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716832699; cv=none; b=DMwr7piv8Fqi2ufD+ea/GZXo+6v9tn09v90Npwygutc9xkZ7KtL2sdXqJFxH/jnsjvTsd0CB4DhCmFHVDE7BAAoIi7d3Ozo+/Scpq82I7JlhqRcnI021/PSvAwfp1Ofun0ApqkuKhZRyZV9IQNNuKZ0a80eWfSpv+sVy3c2vySA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716832699; c=relaxed/simple; bh=gCXv+nHNnQD7augX4DlW+RaGEwwmei/GP6Fq18AYOB0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YupWdvC39F0v6ZnPhZ1HsGOp2vSOqq3/POSmVt2wYMEoEv70gTErNVbXamt6WWLed2GdKOtY9HfqywnucHMxnHhG/dREUpnjewYlgLHF6HeDfN9/D4nYVCUiJbaGtPMr3/l8W8J2YqCsD0hC/rG4ktm2pxlZJq1CyS6K1H54W9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dEfnYxEW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D1E5C2BBFC; Mon, 27 May 2024 17:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716832699; bh=gCXv+nHNnQD7augX4DlW+RaGEwwmei/GP6Fq18AYOB0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dEfnYxEWOIJJ8TcgU5mQLgdr25Lj3LkIbx2lb8YaKbc8P0mC1J6crboBXOLtFLA0S 0GtKjPYNS60L9jCAIXwTrafWDWT/3WgDPhvqx6mmh4CvZee/O4YMUvKfAfCAwzeFwp rlBePPnxvXtin0XTLykd4ooP3UsnSQAavttFTZhvdJ7DPV8rG/mrORskIeUbYY1YZU N7kXSxyb8v+rg1kc32vGwgm3xfvRECiodVyBW1MKuvlj+4jmxEA7V8bDqhE5agHw47 n9OIJyzHnFHQfaS9py2AwsnfR3346f85zlIdGdR+BOHx/Zn9uUpHeWqfs9A8V9aq8U CbBC3tdALZ3Ww== Date: Mon, 27 May 2024 18:58:15 +0100 From: Conor Dooley To: Henry Bell Cc: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , "linux-riscv@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2 v2] RISC-V: add Star64 board devicetree Message-ID: <20240527-securely-crafter-17dd1dd3b765@spud> References: <3Rwq1VegQtSiNjWbBny27eDBw9sCw4cXHBe_3FgihJ1i3dGI6rMS8xI32f2syRXKoa-XZubm7fMr2SED1haIWWygYWJA9azHqRzV6JSmTVo=@protonmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9gaHJ4IdlRivnZAb" Content-Disposition: inline In-Reply-To: <3Rwq1VegQtSiNjWbBny27eDBw9sCw4cXHBe_3FgihJ1i3dGI6rMS8xI32f2syRXKoa-XZubm7fMr2SED1haIWWygYWJA9azHqRzV6JSmTVo=@protonmail.com> --9gaHJ4IdlRivnZAb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 23, 2024 at 09:55:38PM +0000, Henry Bell wrote: > The Pine64 Star64 is a development board based on the Starfive JH7110 SoC. > The board features: >=20 > - 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 >=20 > Signed-off-by: Henry Bell > --- >=20 > Changes since v1: >=20 > - 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 >=20 > diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/= starfive/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= =2Edtb > 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= /riscv/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" > + > +/ { > + model =3D "Pine64 Star64"; > + compatible =3D "pine64,star64", "starfive,jh7110"; > + aliases { > + ethernet1 =3D &gmac1; > + }; There was still some funky looking indentation here, so I fixed that up on application. Emil, shout if you spot something awry, it's gonna be at the top of the branch for a while I bet so plenty of time to drop etc. Thanks, Conor. > +}; > + > +&gmac0 { > + starfive,tx-use-rgmii-clk; > + assigned-clocks =3D <&aoncrg JH7110_AONCLK_GMAC0_TX>; > + assigned-clock-parents =3D <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; > +}; > + > +&gmac1 { > + phy-handle =3D <&phy1>; > + phy-mode =3D "rgmii-id"; > + starfive,tx-use-rgmii-clk; > + assigned-clocks =3D <&syscrg JH7110_SYSCLK_GMAC1_TX>; > + assigned-clock-parents =3D <&syscrg JH7110_SYSCLK_GMAC1_RMII_RTX>; > + status =3D "okay"; > + > + mdio { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + compatible =3D "snps,dwmac-mdio"; > + > + phy1: ethernet-phy@1 { > + reg =3D <1>; > + }; > + }; > +}; > + > +&phy0 { > + rx-internal-delay-ps =3D <1900>; > + tx-internal-delay-ps =3D <1500>; > + motorcomm,rx-clk-drv-microamp =3D <2910>; > + motorcomm,rx-data-drv-microamp =3D <2910>; > + motorcomm,tx-clk-adj-enabled; > + motorcomm,tx-clk-10-inverted; > + motorcomm,tx-clk-100-inverted; > + motorcomm,tx-clk-1000-inverted; > +}; > + > +&phy1 { > + rx-internal-delay-ps =3D <0>; > + tx-internal-delay-ps =3D <300>; > + motorcomm,rx-clk-drv-microamp =3D <2910>; > + motorcomm,rx-data-drv-microamp =3D <2910>; > + motorcomm,tx-clk-adj-enabled; > + motorcomm,tx-clk-10-inverted; > + motorcomm,tx-clk-100-inverted; > +}; > --=20 > 2.44.0 >=20 >=20 --9gaHJ4IdlRivnZAb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZlTJtwAKCRB4tDGHoIJi 0qu8AQCA9UW29IzxSz09cAmZHuac48ZMGd79RXS66A35/pXDYAD/WDL31TIu5Hzb 3hYNciS/mj7KD67rbeVCrRp6EtqPegk= =H9/m -----END PGP SIGNATURE----- --9gaHJ4IdlRivnZAb--