Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2662327rwb; Mon, 7 Aug 2023 01:00:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFXvwDpKiTi92su5PB4nuXR1Gzm+Lnd3Q7wYpZAOSpb8DtEjZZhr+y5omr+QN3Pi+wrKs6 X-Received: by 2002:aa7:c659:0:b0:522:2019:2020 with SMTP id z25-20020aa7c659000000b0052220192020mr6448082edr.17.1691395239493; Mon, 07 Aug 2023 01:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691395239; cv=none; d=google.com; s=arc-20160816; b=a+ufXm7tHC5ELQAlOWkeyh53mFBIhdWE/G94vEfdrRQpICdHtACI4FFmJH8Cntkpzv y//tW/VZyQQgs9WKngfgCMdXpWHTWfPWQyNCDlarRBFjsBBX+6jOUosrp/nkYYLVNlox qniWxX8OnPHfLNWCD4SB2NxxwjBllqlS6CCLTlp1a8b8pHdCTNZbjYDCwVMyl5cV1H23 5UqNPcz5tqcp6b3d8IeXuoNBe1tTmfCg32wVEjyTaKIt0+2tl5eTK5Hl4teIWJKBpieG YBueIttUA+rW9LSp1twPBti3axPMNI7Cm5joRT6CXyIDtZoUfTPvdo/xck7EyRLLYDnR ytOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2n4d9NrJFBk3tXulQtV94S1t2soeDPPYNV61Zc9tKfY=; fh=urHq+s9xfx+4ihObRzJd9sQaIT85Dx84CuOpTGLsUYM=; b=S0huqr+97YY/QwdRy26czvGuZ7niPNrc/Re+E6lgTmQHQu25Vp4mqSe75u7K1keAPU Ns8KxnK8tnLih18XlwDSFGQZt28lptVLGiX8BOPJJL8nve2u/gK3LxobOibqDYYHeft/ PNWCq4tJvwaeKkIwtpUZ7V3osIjIIPkFTzj+2TCfv9R8umBSMCVWz0UwJPICiLWmlsw+ 2nfdomPgBBQe7R69pfdobxSYy9TcVAF8v6Js/y5fn1txlVKSGy33B3MiYEoZtgfrP2FR GpPncJ3MysJSEschvMG1MROtgwgyOOrVveOwj5noWkSqQ2ALIPUd+OxXSJOBHiiRz+OJ wl6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iUvf0/T8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020aa7ca50000000b0051e04ea21ebsi5581757edt.202.2023.08.07.01.00.14; Mon, 07 Aug 2023 01:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iUvf0/T8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbjHGHqB (ORCPT + 99 others); Mon, 7 Aug 2023 03:46:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjHGHqA (ORCPT ); Mon, 7 Aug 2023 03:46:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C8AFB5; Mon, 7 Aug 2023 00:45:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BE3B615E2; Mon, 7 Aug 2023 07:45:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFC3FC433C7; Mon, 7 Aug 2023 07:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691394358; bh=qsp1Oxg2WXRgJ943p0ma6lIVdbOsynz/TYJEUIi8Ti4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iUvf0/T8ZE27GCIGnr/nt2VVPv+T0SeS6ntnxRwc5Z0CkvrBWv3yMwd4oyaVV42Cd R32nDU4qRUq0Oven3FraG47pCP5GeHhXMTOzTDUFpf+/eIGUFuDUlT86Qwyjh8hp77 Jng143a2lG5FOuvRiuDZfLqtKgqCWUiMLwc3QIPbdwPAByYifBwsSBsEhi/yBS5lZB y02iEkWgVr/7xC2YQaCfLj6Nx/01dYRzcfsYthbYak9vBgLoLm0BKGaqBJvosHBr1U SptHRszWD+UFyV6NIBksU43Mq8gNqzl0lwuUydHQUKMgEEuDEbbjTllvAuL+D2kTqs M97hWJbvdo7WA== Date: Mon, 7 Aug 2023 08:45:52 +0100 From: Conor Dooley To: Minda Chen Cc: Conor Dooley , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Daire McNamara , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Emil Renner Berthing , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie Subject: Re: [PATCH v2 3/4] dt-bindings: PCI: Add StarFive JH7110 PCIe controller Message-ID: <20230807-financial-strategic-e691db948011@spud> References: <20230727103949.26149-1-minda.chen@starfivetech.com> <20230727103949.26149-4-minda.chen@starfivetech.com> <20230804-irregular-distrust-c5d46afe3d9c@wendy> <6c1a4b77-996e-9274-bece-84fe42d6099a@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3RDzNovR7DNXD9yQ" Content-Disposition: inline In-Reply-To: <6c1a4b77-996e-9274-bece-84fe42d6099a@starfivetech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3RDzNovR7DNXD9yQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 07, 2023 at 02:54:50PM +0800, Minda Chen wrote: > On 2023/8/4 15:10, Conor Dooley wrote: > > On Thu, Jul 27, 2023 at 06:39:48PM +0800, Minda Chen wrote: > >> + starfive,stg-syscon: > >> + $ref: /schemas/types.yaml#/definitions/phandle-array > >> + items: > >> + - items: > >> + - description: phandle to System Register Controller stg_sy= scon node. > >> + - description: register0 offset of STG_SYSCONSAIF__SYSCFG r= egister for PCIe. > >> + - description: register1 offset of STG_SYSCONSAIF__SYSCFG r= egister for PCIe. > >> + - description: register2 offset of STG_SYSCONSAIF__SYSCFG r= egister for PCIe. > >> + - description: register3 offset of STG_SYSCONSAIF__SYSCFG r= egister for PCIe. > >> + description: > >> + The phandle to System Register Controller syscon node and the o= ffset > >> + of STG_SYSCONSAIF__SYSCFG register for PCIe. Total 4 regsisters= offset > >> + for PCIe. > >=20 > > These property names tie them closely with naming on the jh7110, but > > there's little value in specifying all of these offsets when you have > > one implementation where they are all fixed. > Yes, the offset value is tied to SoC.=20 > > Do you know what the jh81xx stuff is going to do yet w.r.t. PCI and if > > so, how could you reuse this property? > I do not participate in jh8100. But I heard sys-syscon is exist in 81xx. > But I think stg-syscon and sys-syscon can be move to a common dt-binding= doc. > Bot 71x0 and 81x0 driver can use this.=20 > > Particularly, saying "register 0" seems unlikely to transfer well > > between SoCs. > > I'd be inclined to drop the offsets entirely & rely on match data to > > provide them if needed in the future. > That's ok. The dts can change to starfive,stg-syscon =3D <&stg_syscon>; > I will try to move the offset to driver match data. To be clear, you don't need match data now, only when the jh8100 stuff shows up. Until then the values can be hard coded in the driver as there is only one device it works for. Thanks, Conor. --3RDzNovR7DNXD9yQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZNChKQAKCRB4tDGHoIJi 0oJtAP9DsbfNbx9S7vnxHBnWs4BuGLy0YOzbgKrrD5l+muVWFAD+K9R7IhMsVt3X 8KNtKqBBMWQC8ARlBYqLpGpGbSgBPA4= =REYK -----END PGP SIGNATURE----- --3RDzNovR7DNXD9yQ--