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 99D17C4167B for ; Sun, 3 Dec 2023 11:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From: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=PnvKmFcjvLSb16Luyus/Io91SSTo7OlTcrPGP37iUnA=; b=t+7yMXMwYVGIIx9dzRzYhPXPkX VWCTkQ8pCZuo7lM9ST+0sLlSfRc3V+rRvKaZOsaWTbKm0U1sIc9nkCCn00eoTjLuwZGadufjebsU+ V2DCkPTETmOzqa+MqgzFMzriv/YrtRFVtfb/LTCENxmNxMtWZ21nIuMPpBCuma+IYPnFRNUeKfjDa 2xSvbaes3pda4Swu50WpYY4sGw69uTejPNUGhnWfNKLS0xNRYe3jHBbGwPfoksV4E5Ftnq4hasHmo iDagfrCtU3g9S+BaURCAMpLoN56ZKiedZwTZJCIY9BODzXWh3Pelnv549XmItjxmKkaSKg682DkY5 wyHOy7EQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r9kNo-00GgCL-1M; Sun, 03 Dec 2023 11:11:32 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r9kNc-00GgBq-35 for linux-arm-kernel@lists.infradead.org; Sun, 03 Dec 2023 11:11:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id C9265CE0016; Sun, 3 Dec 2023 11:11:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 291DBC433C8; Sun, 3 Dec 2023 11:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701601874; bh=axh+C9i/WNo7QI5/h/RxNR+LYbThXfmZV9VO9RE6NdA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B86yJ4rlMvJqKKKzAoiG/uY7bChF3LIFDp+Jky7dRuI5bXLSdWt6rJB1FONIy39h7 IdDSVMVpA4t/4UaKHCmKPWqJDsMJ4Dv5s4eJ10cSiifucZhIhct627XNj1UvYNvlDw V6aOm1o3R126GZ741cf6q6k/CU5L+xE7nJ0ayQ9ABncUhH4LcJrfrEo/FIrfnDQsKw MaeIHVcuCgGAgQ61mxMu9tNsVF0jDEBPcQ5IEjk6tC8kE28tw7oYae8ADHm0h+PapQ pmdr92cTLegEiJbUq6jHqNSd5j92K83b71mk+fnlmYSx5GHLPDbF9aN4624CYzbn+l mPHofHmZENduw== Date: Sun, 3 Dec 2023 11:11:09 +0000 From: Conor Dooley To: Stefan Wahren Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Mathias Nyman , bcm-kernel-feedback-list@broadcom.com, Cyril Brulebois , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH V3 1/3] dt-bindings: usb: xhci: add support for BCM2711 Message-ID: <20231203-traffic-aide-cb03afdb3546@spud> References: <20231202232217.89652-1-wahrenst@gmx.net> <20231202232217.89652-2-wahrenst@gmx.net> <20231203-chair-zen-afb8b280ca2f@spud> MIME-Version: 1.0 In-Reply-To: <20231203-chair-zen-afb8b280ca2f@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231203_031121_472873_6C3C08D4 X-CRM114-Status: GOOD ( 23.62 ) 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: , Content-Type: multipart/mixed; boundary="===============3980075224407418809==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3980075224407418809== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Oqdw2jwLt/x//D/T" Content-Disposition: inline --Oqdw2jwLt/x//D/T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 03, 2023 at 11:06:43AM +0000, Conor Dooley wrote: > On Sun, Dec 03, 2023 at 12:22:15AM +0100, Stefan Wahren wrote: > > The xHCI IP on the BCM2711 SoC is compatible to "brcm,xhci-brcm-v2", > > but also requires a power domain. Hmm This & the driver change makes it look like your compatible setup should be `compatible =3D "brcm,bcm2711-xhci", "brcm,xhci-brcm-v2";. If the pattern in this patch was repeated, we'd have to modify the driver like your 2nd patch does for each and new broadcom system that needs the power domain. > > So introduce a new compatible > > and the specific constraints. Since the key allOf can only occur > > once, merge the reference below. > >=20 > > Signed-off-by: Stefan Wahren >=20 > Reviewed-by: Conor Dooley >=20 > Cheers, > Conor. >=20 > > --- > > .../devicetree/bindings/usb/generic-xhci.yaml | 21 ++++++++++++++++--- > > 1 file changed, 18 insertions(+), 3 deletions(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/usb/generic-xhci.yaml b/= Documentation/devicetree/bindings/usb/generic-xhci.yaml > > index 594ebb3ee432..b6e10b0a3c24 100644 > > --- a/Documentation/devicetree/bindings/usb/generic-xhci.yaml > > +++ b/Documentation/devicetree/bindings/usb/generic-xhci.yaml > > @@ -9,9 +9,6 @@ title: USB xHCI Controller > > maintainers: > > - Mathias Nyman > >=20 > > -allOf: > > - - $ref: usb-xhci.yaml# > > - > > properties: > > compatible: > > oneOf: > > @@ -28,6 +25,7 @@ properties: > > - description: Broadcom STB SoCs with xHCI > > enum: > > - brcm,xhci-brcm-v2 > > + - brcm,bcm2711-xhci > > - brcm,bcm7445-xhci > > - description: Generic xHCI device > > const: xhci-platform > > @@ -49,6 +47,9 @@ properties: > > - const: core > > - const: reg > >=20 > > + power-domains: > > + maxItems: 1 > > + > > unevaluatedProperties: false > >=20 > > required: > > @@ -56,6 +57,20 @@ required: > > - reg > > - interrupts > >=20 > > +allOf: > > + - $ref: usb-xhci.yaml# > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: brcm,bcm2711-xhci > > + then: > > + required: > > + - power-domains > > + else: > > + properties: > > + power-domains: false > > + > > examples: > > - | > > usb@f0931000 { > > -- > > 2.34.1 > >=20 --Oqdw2jwLt/x//D/T Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWxiTQAKCRB4tDGHoIJi 0pwvAP0ftjAqzLu/r6pNoYYAYQs5oTugu3kN3GmT+drnPNAU4QD/RRZ8W6M+gRsw 4hzlTOnZ7h1U7vo+cBsICs9eV3qTuwI= =AR0B -----END PGP SIGNATURE----- --Oqdw2jwLt/x//D/T-- --===============3980075224407418809== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3980075224407418809==--