Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp157480lqp; Tue, 11 Jun 2024 19:04:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6Kn7FjxjuWic0slOFxaJW9KXA4yyvj7F1gHhxtCkZK/YOOcijV6f7MoZZoRzU6F8Pg0e8mToWNesxLGPDIg+jgss+dRNgYgNL2T/Grw== X-Google-Smtp-Source: AGHT+IHD9SBNgnjywS5RtfHScIkZOp/E8hbI5Cc02Okm82xKjQpdPPpMe8ealQYEt8sbQFtoF8fP X-Received: by 2002:a17:902:d501:b0:1f7:13b1:752e with SMTP id d9443c01a7336-1f83b5f0631mr6839475ad.21.1718157846053; Tue, 11 Jun 2024 19:04:06 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f741786f09si11214745ad.639.2024.06.11.19.04.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 19:04:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-210793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210793-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AD5512854C1 for ; Wed, 12 Jun 2024 02:04:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9E835CB0; Wed, 12 Jun 2024 02:03:56 +0000 (UTC) Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2114.outbound.protection.partner.outlook.cn [139.219.146.114]) (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 38A4CAD54; Wed, 12 Jun 2024 02:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.114 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157836; cv=fail; b=B75dUer0x2+vy8eyM0ksDPEUTmaH2NXOKn3rXLBDkfRpghQLtvDfjb2O+l6yUWolta6r3OJgzSmNAKPVLFxIu9nVAj9/yDCNNeuCCd99iQvuRAlhdpWf2IbVMUMV5ia/Wov82NZnmIlRZc+pcf25Jd/DlmSUGlBT0Q2EonAR69g= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157836; c=relaxed/simple; bh=/gAG+sPoJVKAt9UQa6uWHGHXIprSw11MyzlmEjbGwyA=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=ObyWAWtI4OWdm9MC+gKzOoGyB1mE1nipukw+UTa+IxjUE5Frovpc/IQyvOy07PArOXhkA8/jiWeZKhXeKKX3ibQdDKMgTlSaEcHJnt9lHTfsHvFLp+M9iJmjN9p+yGJuqet5xAV0ezngn8LjxIX9OioFfQZEommW26djTOgiXUM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.114 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UN+WIZA4nHCXnvCFhZrjuwbMD93i7hz2oVTgBcKa6wuAc3WS9GbPQmaQVywJoIU7skIMrFFT4cOVrgPd1KRgw5c/qiQ66tH5YIkbFEeVQM6lGFgWTL6Sftuxs9IfMDX72LE7Wx7NkueWYKE5k5bxdv0FME8Sh4ZO3kDf5ssaJFmqsOVOIo0RAkX7Ls5KtT7tkhQarz10bVYQeGRuTBdws9t/KhXrLXk0epzNJLKhV3m5gcCYLlpdJzs7VI7Npq9vkq6lBKKpHq7JyDtg2CYpFJ6rSjCCeOzri2VvNgr7QZKKcDCGsKPY4Jsfp8Oy7wMQRngGuki23QQX1iLVCPlKEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uZOWGyYhl+Jp5HAj4A6YQPblAkBM6DKRwdTqd6roCwI=; b=bLCO5FfAosCaUJvBVmVrhgHPz8CnMMCylO/z7cpfADWHW23TbOJfsp8GpwKycT+wUBg4TYzKjo2TgLvLRv8PPHGnV1Xx5i3NHJaE0UecVQplxDeZwh72pq5WODUrPiI/cBscOHxPgzPpLENqfJvMNnmvg8CglHhuI1trZeWxz/f3PSeBBXWxpnNmzfWb6jf6Zuk2aFBblDPJnpBfKO2UnC9awfUTbDpE7Sy6QIh7mbf2xCQZRqaGRcZz2MR+qXbRO1dYhmwy328xkQXHmrToq87LluJ061tivOnIuR25d3B+PYuClgUImoJZZP1qccXNIIWDvJY3OnUhr5RPiP6LcQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::15) by SHXPR01MB0831.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.42; Wed, 12 Jun 2024 01:48:55 +0000 Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::358e:d57d:439f:4e8a]) by SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::358e:d57d:439f:4e8a%7]) with mapi id 15.20.7611.039; Wed, 12 Jun 2024 01:48:55 +0000 From: Minda Chen To: Conor Dooley CC: Rob Herring , Emil Renner Berthing , Krzysztof Kozlowski , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re : [PATCH v1] riscv: dts: starfive: add PCIe dts configuration for JH7110 Thread-Topic: [PATCH v1] riscv: dts: starfive: add PCIe dts configuration for JH7110 Thread-Index: AQHau6H4HWcv0PbsKE2MIzy9iFiWZbHCwFiAgACdwFA= Date: Wed, 12 Jun 2024 01:48:55 +0000 Message-ID: References: <20240611015200.40996-1-minda.chen@starfivetech.com> <20240611-irk-hypocrite-a53e98e6c394@spud> In-Reply-To: <20240611-irk-hypocrite-a53e98e6c394@spud> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SHXPR01MB0863:EE_|SHXPR01MB0831:EE_ x-ms-office365-filtering-correlation-id: b5943f68-2ab4-4e3b-e675-08dc8a81d18c x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0;ARA:13230032|41320700005|7416006|366008|1800799016|38070700010; x-microsoft-antispam-message-info: REkP3XbPtL2E/iZ8LSMQ7A7ikRkOGvmrvl9wJK2QD9CLTuYRqUSojsszPhRrHwJdPlFEBc7pbKLsmpV8/46E5Q6sv3xcSr6xPPl+BEYOT6AtnuIN1cSWNZyq2DXCERaKpaOuVQG9S9okMeDGz/twtyThOoT1JKYxhBW3PEmosUhcvMYQQMnhLUdUh68HmSWMT+brd/OF0qfBMLUgvJBWVaQQwdjYZloQTuP1RTY/NON5ewSS2iBoi+1U//4HAo0D79T3xhg44tKucChQHr3jd+mTntBXJ+pTDzubfHgNy9Dxm3Nt6+pePd+JozpR5eEOpM86P3MHnSoH8lZszj/tZu0Ip9KEcSEjMIJ66YspSzBl8sizayvJQfRQgvOuUetfxOc3kMl7EcwoArsu+E/dMPb5U5FLHt1G6XWvDRNhmj4Gtz25UmtTHGaxNW49Z1wreFWea5WH7QMaSLDcM35WaWib/YHQh2IGe69twGphFVMg1Zkg+XXqVcuEjxgxqYGutkFdgdx5ZxnS5amlH4NEt+r0CmOQ/TsI3G8JoZ90FjkdZvSBX1U0jAYroJ++2ce9ePNeRegPd/efT1iQD/1h9XkUwQDn0B1DJe5Fhr8OPYF8UEUgM60VWQ5L8KuuFIC3 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230032)(41320700005)(7416006)(366008)(1800799016)(38070700010);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uPTxhKZcb92yYp2X/PvHQg9a06W1gfTstFujzB/G7KcYM+ThmZ9eRIl37wNZ?= =?us-ascii?Q?LiiOH3gU4i3IBgIv1BjWn/0QNdMPKXcz6gsll0z1Jd1LjIU7cmH3936jej7Q?= =?us-ascii?Q?DJkKfPfe7bm9y9lU/5tPdMjKJignka+cZlWvJCdp/rLYWgOlVqGyBrMkHEnu?= =?us-ascii?Q?At0zOUnVR1nCPzJvY4CDKUG/nlSBg8cwK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HnKiaFgyV08fii8eRghd0tNZI1Ueg6t30VG2le0LN?= =?us-ascii?Q?W3wLGqc+W5XC1L/RiFO+NrCxLVZqBfT/4pm3TNE4lrSGUcXjYcVzphEOJDQW?= =?us-ascii?Q?+vxNtIgndyRj+05hIRdC/BacZi6C3IGcQs9NiU93w38gJMHfXU8VAFcZb2Fj?= =?us-ascii?Q?3KqB7zhOuxsfSLCylVfsNduLxXbGIgDnb8jLr8Mh173A5INz4wgKG8cYLu5H?= =?us-ascii?Q?zmCgmK8YRsyqfTaW8cHkBjwKyFzJbNNgY/tHMLeOi+exEolXbkczsi/mvMoq?= =?us-ascii?Q?PeFZ/x9o+epaprCUrySRMk2/ykJQmvjhewVlSc/Z3gWY8daOCB+KOJVpJDcy?= =?us-ascii?Q?EOSQDEGCZ36ITnnIyg8nvQMlzLDzSLQaDhwmP6bsDyh+bKGkzL8s1wql4/D8?= =?us-ascii?Q?aQm1wshAwXjwmMUg0iV045ucdHMYeQvPpHbpoLiLUJvyKOJyQ92/tWb0nLcC?= =?us-ascii?Q?z2o9xP3/fLwhZU1l/88rjsL2odRF+aW6xQCYpbzv?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-Network-Message-Id: b5943f68-2ab4-4e3b-e675-08dc8a81d18c X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2024 01:48:55.0702 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q57qnS4Gbh4lXzHTRoobpnCCGKxDl7DEzUIEzCQB+tJ2GwUWw5J9FfnX5NlyaxcPXOLxDpQfzk5BIYEBJLoZ4BduDUEXBBlOuHiEELCwyGc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0831 >=20 > On Tue, Jun 11, 2024 at 09:52:00AM +0800, Minda Chen wrote: > > Add PCIe dts configuraion for JH7110 SoC platform. > > > > Signed-off-by: Minda Chen > > Reviewed-by: Hal Feng > > --- > > .../boot/dts/starfive/jh7110-common.dtsi | 64 ++++++++++++++ > > arch/riscv/boot/dts/starfive/jh7110.dtsi | 86 +++++++++++++++++++ > > 2 files changed, 150 insertions(+) > > > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi > > b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi > > index 8ff6ea64f048..1da7379f4e08 100644 > > --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi > > +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi > > @@ -294,6 +294,22 @@ > > status =3D "okay"; > > }; > > > > +&pcie0 { > > + perst-gpios =3D <&sysgpio 26 GPIO_ACTIVE_LOW>; > > + phys =3D <&pciephy0>; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&pcie0_pins>; > > + status =3D "okay"; > > +}; > > + > > +&pcie1 { > > + perst-gpios =3D <&sysgpio 28 GPIO_ACTIVE_LOW>; > > + phys =3D <&pciephy1>; > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&pcie1_pins>; > > + status =3D "okay"; > > +}; >=20 > Do all 3 of the mars, star64 and visionfive 2 have both PCIe ports expose= d? I > assume if one does, all does, since they're basically identical? Visionfive 2 and milkv mars are all the same. Star64 do NOT enable PCIe0, P= CIe1 pins are the same.