From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.net header.i=wahrenst@gmx.net header.b="F91h6paz" Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95164194; Tue, 5 Dec 2023 12:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1701806763; x=1702411563; i=wahrenst@gmx.net; bh=sHZB3gt1cJ2iNutQMvwwC4/pfSexz1q7EQBrxnjvhz8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=F91h6paznK1HzvIAwkwOlqO8cgiciTQRzoHZZRV+86U0Y88DfVlsjXNFztbt5aNy +s7pIBdSqT528Zs3mLzdLvyBTFlNdgEzH/eJ1jvCVJa4Jku3C39mdOt1p7PuShINv 2bfKYKVnhrdvvUdBkCKR0bebEDFwtBvvTB2GicfhUGN80iVH/VvKTLmQDGipuYVcR h153cMMqdQbDMv+bf3gtwcE3tqRErQGAj5FkO8KKZ3jm7dLlRLrQGI40hS8l4Q4hw SQM+Qlemj6wIOK5hjouq7W1QwQxWJVUvk31/5uDIQVF4reaR7FpF+iNDW4X1+g2tJ SrCQnGzDH9YqNcLdfg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLi8m-1qt4pP20sy-00HfYH; Tue, 05 Dec 2023 21:06:03 +0100 From: Stefan Wahren To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Mathias Nyman Cc: bcm-kernel-feedback-list@broadcom.com, Cyril Brulebois , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren , Conor Dooley Subject: [PATCH V4 1/3] dt-bindings: usb: xhci: Add support for BCM2711 Date: Tue, 5 Dec 2023 21:05:29 +0100 Message-Id: <20231205200531.8232-2-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231205200531.8232-1-wahrenst@gmx.net> References: <20231205200531.8232-1-wahrenst@gmx.net> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:M/FBh/U+w4JvaljMqyNW6OWptCyc8BIPABF/ynqsHQVmNwwJ45B RNz6e/k50d9l2uGbes9MHD0QWG9QJkKXYKkhcMiKNpJtpP6W+QRRYKpNQoFz6cWuxXsjCz5 PI27JTzuuqb4ju8kY9DAPhq0dyaPYxEsEdsZlcekPoGnSTUKhYUtXNY5dPdlCksjd41Wez3 eWumZ4/lCVMtMzdm2yjmQ== UI-OutboundReport: notjunk:1;M01:P0:breIgNV51t8=;BUZbIZmjjmgmrk7TUmApci4zrvc 3hotQes/pAgADtlmJCbosOXLIjlp1aTNiU/bMvTxnVgW7lbFuuDy3mYjHlJStl8H3r8+pylV0 53HGlM2HT2By95m7VVQBKLQl351NNms7Ah0ocGVyh6J+nMkcsP3r6mK6MP8GqN+TGAhsdetI0 peU9y+jeEUtxoD2a6q4KgOWZmZefudMKxr4QQM/M5h/L9YiG0J8a/z6p4fMfcGyfQfgBnKr39 VBC7jzNjkE9PCPIhLTFeCZUEI1LAJdwb8DRh85SbHmP47oFUkCKRM70vtXpkVrNilYQB5Jb+l ceSjECOEk/BC8AAONgdOMCv9IHpqU2PzFKsJF9M7UBW+D1K8ZnPGXwhvmLAif1K7YNbjtzgpC aVxlbvMnq76mq4tt+KJZqAZLGZny7ItNRdaanfHR8uG3TLR/jEpLoAVlaM6uHVJeOItRyfXGU JAhTXe+0dWYOoJoN9sD2g36MU9ZXz36GTDI/8KjtIhgc+gtjHKaFFSN1JCZ0lQ0LUxFFv8eJd d+RRPLm6Iosh4yVSsoUVJdaqU99h/MuOfz4pSnoMAsDihRA6capb1/jzz3dMQsHsxWvkSx7wC REyH0qvCMbPSpTk/GCzlLGczO58QySMxsfbJkCfJC7MQL0thuKo4VrVmluqvnll3GKXPXGsjY l411YTnlQ3KMcuzlytp3KOWAiQ6fcbha7nmbK4z0n8EIfxWTg9PqiiYtSefJcsBh6FH/5PMWT ivqfSug2HimGFSc78t+uy8KelZtljg+vbeYlzsnT4klGODuAmC7gbAGgwq5I9xCpkwBlwTL2F Vp4RZvhvn3mjof/N7eTcg0xuv5Hmd4tMzhO7QH+u8LXm9St6JMtKkR+oExmCxJHZJYGu1NcTb 7PTyVK3fU2KQfEp4M8QVvYgoDKGPQKH29sa61JCSZCWneLoALl56m5n5XYhIuBxQttv1qFPtH sKE/bSpoNTCMxPKpHugUL3JuD7E= The xHCI IP on the BCM2711 SoC is compatible to "brcm,xhci-brcm-v2", but also requires a power domain. So introduce a new compatible and the specific constraints. Since the key allOf can only occur once, merge the reference below. Signed-off-by: Stefan Wahren Reviewed-by: Conor Dooley =2D-- .../devicetree/bindings/usb/generic-xhci.yaml | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/generic-xhci.yaml b/Doc= umentation/devicetree/bindings/usb/generic-xhci.yaml index 594ebb3ee432..6ceafa4af292 100644 =2D-- 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 -allOf: - - $ref: usb-xhci.yaml# - properties: compatible: oneOf: @@ -25,6 +22,11 @@ properties: - marvell,armada-380-xhci - marvell,armada-8k-xhci - const: generic-xhci + - description: Broadcom SoCs with power domains + items: + - enum: + - brcm,bcm2711-xhci + - const: brcm,xhci-brcm-v2 - description: Broadcom STB SoCs with xHCI enum: - brcm,xhci-brcm-v2 @@ -49,6 +51,9 @@ properties: - const: core - const: reg + power-domains: + maxItems: 1 + unevaluatedProperties: false required: @@ -56,6 +61,20 @@ required: - reg - interrupts +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 { =2D- 2.34.1 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 869B4C4167B for ; Tue, 5 Dec 2023 20:06:53 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QtA5SiecrseaGjC6T3XfZMbaDIXHSPNQEAU1AYJM1DI=; b=S3pcF6lo9NDfJl JvZwD1QCLkCe8ozQ8o92UL4azYbcC7gN6WEuDB7n/FwWou83jgfp0weCc7jHjq7xO3NOqojzFzxz3 5hsyopGDldjZZjMNlKY6kHjEcLa9DOYFcXj0E2vsl0U1oYEseFkZec/Qo5Gtn1YLFN2MxYG5V1Fop 3wJj0+k4W8sE1PZhmTk3p0vtgAyGV+m+lOuooGWHspQICV9K9KkmuaxEAOl4dWToj6gfQCrRrSV9f tq8tVfMuVdG4A+t3OhWh0sX7Mlvt7jAD8XYdwuJZjJNaePbG+G4W8zX09BWY10EuWfnsIR/Gcn5gf pZeQ/lIKEXUgwWiAv0TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAbgY-008L4m-38; Tue, 05 Dec 2023 20:06:26 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAbgW-008L3q-0W for linux-arm-kernel@lists.infradead.org; Tue, 05 Dec 2023 20:06:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1701806763; x=1702411563; i=wahrenst@gmx.net; bh=sHZB3gt1cJ2iNutQMvwwC4/pfSexz1q7EQBrxnjvhz8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=F91h6paznK1HzvIAwkwOlqO8cgiciTQRzoHZZRV+86U0Y88DfVlsjXNFztbt5aNy +s7pIBdSqT528Zs3mLzdLvyBTFlNdgEzH/eJ1jvCVJa4Jku3C39mdOt1p7PuShINv 2bfKYKVnhrdvvUdBkCKR0bebEDFwtBvvTB2GicfhUGN80iVH/VvKTLmQDGipuYVcR h153cMMqdQbDMv+bf3gtwcE3tqRErQGAj5FkO8KKZ3jm7dLlRLrQGI40hS8l4Q4hw SQM+Qlemj6wIOK5hjouq7W1QwQxWJVUvk31/5uDIQVF4reaR7FpF+iNDW4X1+g2tJ SrCQnGzDH9YqNcLdfg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLi8m-1qt4pP20sy-00HfYH; Tue, 05 Dec 2023 21:06:03 +0100 From: Stefan Wahren To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Mathias Nyman Cc: bcm-kernel-feedback-list@broadcom.com, Cyril Brulebois , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren , Conor Dooley Subject: [PATCH V4 1/3] dt-bindings: usb: xhci: Add support for BCM2711 Date: Tue, 5 Dec 2023 21:05:29 +0100 Message-Id: <20231205200531.8232-2-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231205200531.8232-1-wahrenst@gmx.net> References: <20231205200531.8232-1-wahrenst@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:M/FBh/U+w4JvaljMqyNW6OWptCyc8BIPABF/ynqsHQVmNwwJ45B RNz6e/k50d9l2uGbes9MHD0QWG9QJkKXYKkhcMiKNpJtpP6W+QRRYKpNQoFz6cWuxXsjCz5 PI27JTzuuqb4ju8kY9DAPhq0dyaPYxEsEdsZlcekPoGnSTUKhYUtXNY5dPdlCksjd41Wez3 eWumZ4/lCVMtMzdm2yjmQ== UI-OutboundReport: notjunk:1;M01:P0:breIgNV51t8=;BUZbIZmjjmgmrk7TUmApci4zrvc 3hotQes/pAgADtlmJCbosOXLIjlp1aTNiU/bMvTxnVgW7lbFuuDy3mYjHlJStl8H3r8+pylV0 53HGlM2HT2By95m7VVQBKLQl351NNms7Ah0ocGVyh6J+nMkcsP3r6mK6MP8GqN+TGAhsdetI0 peU9y+jeEUtxoD2a6q4KgOWZmZefudMKxr4QQM/M5h/L9YiG0J8a/z6p4fMfcGyfQfgBnKr39 VBC7jzNjkE9PCPIhLTFeCZUEI1LAJdwb8DRh85SbHmP47oFUkCKRM70vtXpkVrNilYQB5Jb+l ceSjECOEk/BC8AAONgdOMCv9IHpqU2PzFKsJF9M7UBW+D1K8ZnPGXwhvmLAif1K7YNbjtzgpC aVxlbvMnq76mq4tt+KJZqAZLGZny7ItNRdaanfHR8uG3TLR/jEpLoAVlaM6uHVJeOItRyfXGU JAhTXe+0dWYOoJoN9sD2g36MU9ZXz36GTDI/8KjtIhgc+gtjHKaFFSN1JCZ0lQ0LUxFFv8eJd d+RRPLm6Iosh4yVSsoUVJdaqU99h/MuOfz4pSnoMAsDihRA6capb1/jzz3dMQsHsxWvkSx7wC REyH0qvCMbPSpTk/GCzlLGczO58QySMxsfbJkCfJC7MQL0thuKo4VrVmluqvnll3GKXPXGsjY l411YTnlQ3KMcuzlytp3KOWAiQ6fcbha7nmbK4z0n8EIfxWTg9PqiiYtSefJcsBh6FH/5PMWT ivqfSug2HimGFSc78t+uy8KelZtljg+vbeYlzsnT4klGODuAmC7gbAGgwq5I9xCpkwBlwTL2F Vp4RZvhvn3mjof/N7eTcg0xuv5Hmd4tMzhO7QH+u8LXm9St6JMtKkR+oExmCxJHZJYGu1NcTb 7PTyVK3fU2KQfEp4M8QVvYgoDKGPQKH29sa61JCSZCWneLoALl56m5n5XYhIuBxQttv1qFPtH sKE/bSpoNTCMxPKpHugUL3JuD7E= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_120624_496197_C8CEAAEF X-CRM114-Status: GOOD ( 10.68 ) 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The xHCI IP on the BCM2711 SoC is compatible to "brcm,xhci-brcm-v2", but also requires a power domain. So introduce a new compatible and the specific constraints. Since the key allOf can only occur once, merge the reference below. Signed-off-by: Stefan Wahren Reviewed-by: Conor Dooley --- .../devicetree/bindings/usb/generic-xhci.yaml | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/generic-xhci.yaml b/Documentation/devicetree/bindings/usb/generic-xhci.yaml index 594ebb3ee432..6ceafa4af292 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 -allOf: - - $ref: usb-xhci.yaml# - properties: compatible: oneOf: @@ -25,6 +22,11 @@ properties: - marvell,armada-380-xhci - marvell,armada-8k-xhci - const: generic-xhci + - description: Broadcom SoCs with power domains + items: + - enum: + - brcm,bcm2711-xhci + - const: brcm,xhci-brcm-v2 - description: Broadcom STB SoCs with xHCI enum: - brcm,xhci-brcm-v2 @@ -49,6 +51,9 @@ properties: - const: core - const: reg + power-domains: + maxItems: 1 + unevaluatedProperties: false required: @@ -56,6 +61,20 @@ required: - reg - interrupts +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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel