From mboxrd@z Thu Jan 1 00:00:00 1970 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 31E8DC35FFC for ; Tue, 25 Mar 2025 11:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+xwqYSKNkr/xOzTf+LsuikpLoHvrHxujYam1NoADtrw=; b=TnvRrNnpHohEzQCBb4qql4883W Iaq67y+RNOoTNs2ANFat9gkJ+OUmi2gxFKQZwmHojzbJ/BCBqnQB91S+x15Ee8gf68Ixij7SQydPv 2Fn0F4PnKcQ9NgEpX2x1FVOqa+lX0EtkRAi4r6+3sxV5TRWSoarnlUTDFLh9E+fCBUqjwVPvSbEpD zAId00pWPbft41PM9Nbn66wfMRRYhm+s0R5UC9AwyVhUdQJFDXBOet1aR3i6agatMh8c4W/0b9yBK TUzH02xTyZUzaVsEE8VTrGpZ+0R+yMYZXox0AkHLjt3rEljhOEuRFaXKN+yGiJKUlhF3NHMnX2NNq qVEX6Nrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1tx24z-00000005ZrV-2phH; Tue, 25 Mar 2025 11:04:21 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1tx23G-00000005Zi6-3uja for linux-arm-kernel@lists.infradead.org; Tue, 25 Mar 2025 11:02:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id DC37FA4A679; Tue, 25 Mar 2025 10:57:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 922ECC4CEE4; Tue, 25 Mar 2025 11:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742900553; bh=82PBDk1yiFJDvWrapv7fPLNTJc8KmRBR6OCSlAlVnvg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rSbVJsc+GL6lv2xUEvkmMYClr4BiE9asuFbIhOWTxxaTs1tG0Q+KN6REoH02rnooI OAgNfErYs+2G3nGMOZAJMzD+1iqergbb9ImDFAFBpOq+vpOMy4/LiR+ZylRBJRwXuC fb+1o7mFU0aMOYtKunH3eSkvaM1E1sY+8+w+oNgNKxT0mTgioll1qq8uXcBg3ZDOcD pbp1V/ytAHzzsG7A2AYLooNSLrHZsk1ezedBL8ikmWbDSo9+DgO/c6Z3DYqxAWslNe Jbo9bTUbQJVq9vCZOkrWJy3L7Q9XZRDATr6uPPpLTlFma39EmhDluCsCLYWyYNsrNf 249nDn7rWyJxA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tx23C-00Gt6v-IK; Tue, 25 Mar 2025 11:02:30 +0000 Date: Tue, 25 Mar 2025 11:02:30 +0000 Message-ID: <864izhmkzd.wl-maz@kernel.org> From: Marc Zyngier To: Mark Kettenis Cc: linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, alyssa@rosenzweig.io, j@jannau.net, marcan@marcan.st, sven@svenpeter.dev, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, krzk+dt@kernel.org Subject: Re: [PATCH v2 01/13] dt-bindings: pci: apple,pcie: Add t6020 compatible string In-Reply-To: <87iknx75at.fsf@bloch.sibelius.xs4all.nl> References: <20250325102610.2073863-1-maz@kernel.org> <20250325102610.2073863-2-maz@kernel.org> <87iknx75at.fsf@bloch.sibelius.xs4all.nl> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: mark.kettenis@xs4all.nl, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, alyssa@rosenzweig.io, j@jannau.net, marcan@marcan.st, sven@svenpeter.dev, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, manivannan.sadhasivam@linaro.org, robh@kernel.org, krzk+dt@kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250325_040235_109084_753C9070 X-CRM114-Status: GOOD ( 31.01 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Mark, On Tue, 25 Mar 2025 10:50:18 +0000, Mark Kettenis wrote: > > > From: Marc Zyngier > > Date: Tue, 25 Mar 2025 10:25:58 +0000 > > Hi Marc, > > Sorry for not spotting this in the earlier versions, but: No worries -- I expected issues in that department. > > > From: Alyssa Rosenzweig > > > > t6020 adds some register ranges compared to t8103, so requires > > a new compatible as well as the new PHY registers themselves. > > > > Signed-off-by: Alyssa Rosenzweig > > [maz: added PHY registers] > > Signed-off-by: Marc Zyngier > > --- > > Documentation/devicetree/bindings/pci/apple,pcie.yaml | 11 ++++++++++- > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/pci/apple,pcie.yaml b/Documentation/devicetree/bindings/pci/apple,pcie.yaml > > index c8775f9cb0713..77554899b9420 100644 > > --- a/Documentation/devicetree/bindings/pci/apple,pcie.yaml > > +++ b/Documentation/devicetree/bindings/pci/apple,pcie.yaml > > @@ -17,6 +17,10 @@ description: | > > implements its root ports. But the ATU found on most DesignWare > > PCIe host bridges is absent. > > > > + On systems derived from T602x, the PHY registers are in a region > > + separate from the port registers. In that case, there is one PHY > > + register range per port register range. > > + > > All root ports share a single ECAM space, but separate GPIOs are > > used to take the PCI devices on those ports out of reset. Therefore > > the standard "reset-gpios" and "max-link-speed" properties appear on > > @@ -35,11 +39,12 @@ properties: > > - apple,t8103-pcie > > - apple,t8112-pcie > > - apple,t6000-pcie > > + - apple,t6020-pcie > > - const: apple,pcie > > Since the T602x PCIe controller has a different register layout, it > isn't compatible with the others, so it should not include the > "apple,pcie" compatible. The "downstream" device trees for > T602x-based devices do indeed not list "apple,pcie" as a compatible. > So I think this needs to be written as: > > compatible: > oneOf: > - items: > - enum: > - apple,t8103-pcie > - apple,t8112-pcie > - apple,t6000-pcie > - const: apple,pcie > - const: apple,t6020-pcie Ah, indeed, that's a good point. Thanks for that. Whilst I have your attention, how about my question below: > > > > > reg: > > minItems: 3 > > - maxItems: 6 > > + maxItems: 10 > > > > reg-names: > > minItems: 3 > > @@ -50,6 +55,10 @@ properties: > > - const: port1 > > - const: port2 > > - const: port3 > > + - const: phy0 > > + - const: phy1 > > + - const: phy2 > > + - const: phy3 Do we need to make this t6020 specific? Obviously, separate PHY registers do not make much sense before t6020, but I couldn't find a way to describe that. I don't even know if that's a desirable outcome. Thanks, M. -- Without deviation from the norm, progress is not possible.