From patchwork Sun Dec 11 02:48:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13070477 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 7120CC4332F for ; Sun, 11 Dec 2022 02:50:39 +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: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:In-Reply-To:References: List-Owner; bh=80h6mddyd8ZRU6NzibRRG6b33UOJZq+euRgcpX+AiCI=; b=Eyg6ak4izt5l2h cyBgZHrw4HESZxr0lwHakyvCjchO2sN6tuYrcSxNlP3mW+cIfiFwaxjB4Aqe5nMoQooVJ2Bpaz/ur H+Ds7cHC1kZk22wSi4ObiiZ27eB603MBhUPUwxjF5BKhWXnhcqiyKMlY0nhYwYhZt3i3e+RE1fZNF XQgdtQC+1ZFVDRC8lloCX6xs/w+GaqR3j9sHfDx4zSIb0g15T04ANhXTYcJBrOgkyG3Wb4PU41oRB Sq5bdRdjWaoRo+XEOy0KCYQfMGcZB+Et8QRC3j6lI7QWxW5UvxRYCJuJl8OtruxxwE2PdjAgK2k+U FgCHGCwJhrolV4QDYMxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CP3-00AnGE-8F; Sun, 11 Dec 2022 02:49:21 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CP0-00AnDn-3m for linux-arm-kernel@lists.infradead.org; Sun, 11 Dec 2022 02:49:19 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id BA7AE852FB; Sun, 11 Dec 2022 03:49:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670726956; bh=ufeeitNOLFjVu+vM04bIPjIkphSFWPOp3r4kp9kg0+g=; h=From:To:Cc:Subject:Date:From; b=geIjLOEBAImxGGw9oXDbBrW0V+2L+BYRMxj9EFTwgjXyaLxZov4bQcgF3qqEyaqYC S19bFl9UvDToE54RgyVkR1IbJHN0ZlhWW8n1YcLCXlLbGliamX7CEHjLb/FRCjSa1g jjvpJk4pYXlLhVWMD5+XpBWC9cbI/5z2RuFJtB0UM859T7lo7cxlSw0+1uuRcwxx3J ySB3g6/YXfZ/C/CyuZ9WUayyW+1gqFYkKEm3LJPvQXsMGqlidTSwBdjdVzAMDi9Mur A4tqEBkya8NrWQFZk01XU1POWR4asrxZSe3z3U66pPDcxzz76RX6VNxC4gSHildDaa zLOK2jsxGRcCA== From: Marek Vasut To: devicetree@vger.kernel.org Cc: Marek Vasut , Rob Herring , Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team Subject: [PATCH v6 1/3] dt-bindings: imx6q-pcie: Handle various clock configurations Date: Sun, 11 Dec 2022 03:48:57 +0100 Message-Id: <20221211024859.672076-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221210_184918_481278_5A1700FF X-CRM114-Status: GOOD ( 11.90 ) 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 The i.MX SoCs have various clock configurations routed into the PCIe IP, the list of clock is below. Document all those configurations in the DT binding document. All SoCs: pcie, pcie_bus 6QDL, 7D: + pcie_phy 6SX: + pcie_phy pcie_inbound_axi 8MQ: + pcie_phy pcie_aux 8MM, 8MP: + pcie_aux Reviewed-by: Rob Herring Acked-by: Alexander Stein Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Lucas Stach Cc: Richard Zhu Cc: Rob Herring Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Cc: NXP Linux Team To: devicetree@vger.kernel.org --- V2: - Add AB from Alex V3: - Duplicate clock-names maxItems to mx6sx and mx8mq compatibles - Flatten the if-else structure - The validation no longer works and introduces errors like these: arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dtb: pcie@33800000: clock-names:2: 'pcie_phy' was expected V4: - Reinstate minItems: for clock-names in main section, turn the last two clock-names items into enums to cover all IP variants. - Add another allOf entry for mx6q/mx6qp/mx7d clock-names list. - Adjust clock maxItems in the allOf section. V5: - No change V6: - Add RB from Rob --- .../bindings/pci/fsl,imx6q-pcie.yaml | 70 ++++++++++++++++++- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml index 49b4f7a32e71e..bfb9502d9fc0b 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml @@ -57,8 +57,8 @@ properties: items: - const: pcie - const: pcie_bus - - const: pcie_phy - - enum: [ pcie_inbound_axi, pcie_aux ] + - enum: [ pcie_phy, pcie_aux ] + - enum: [ pcie_aux, pcie_inbound_axi ] num-lanes: const: 1 @@ -215,6 +215,72 @@ allOf: unevaluatedProperties: false +allOf: + - $ref: /schemas/pci/snps,dw-pcie.yaml# + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6q-pcie + - fsl,imx6qp-pcie + - fsl,imx7d-pcie + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_phy + + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-pcie + then: + properties: + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_phy + - const: pcie_inbound_axi + + - if: + properties: + compatible: + contains: + const: fsl,imx8mq-pcie + then: + properties: + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_phy + - const: pcie_aux + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8mm-pcie + - fsl,imx8mp-pcie + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_aux + examples: - | #include From patchwork Sun Dec 11 02:48:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13070478 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 DB30BC4332F for ; Sun, 11 Dec 2022 02:50:43 +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=2KjHPUThsfrEb1HTTurYTkn9TSD/nkFbd9XPEnX6hqM=; b=fO1q5FCx1L3z2u I1A0TgG7IPDSgeEAJeVeQqu08mdlBymTRMbBkwHXv8vfgsuVtdT5hTddIwElZw24mrhhq4ExJe5SM mXzqkaICBPZP7kq7/jbAhfD88DIgiph94km9338mBhi8E1n0TBjZgzK8HNmReY7klu6V2C77Ve5sg ZNrQaZBRiO09AztiMn5jiSl53pOUF5REG7bwNxoz2RGKV8wwHhPwg6ZnVCvb9yRA66N6lN9D8qt9U Ew1nlNuYoc87E1ZrpBR+Eb87cOAmVuMqhedxXxr36JL+KP31kvENumkVvM7hyDKPb90m32Qxq+bLn CFPGqyCqjd6wnsjlC/zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CPE-00AnP1-7a; Sun, 11 Dec 2022 02:49:32 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CP0-00AnDx-Li for linux-arm-kernel@lists.infradead.org; Sun, 11 Dec 2022 02:49:20 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3ED248530B; Sun, 11 Dec 2022 03:49:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670726956; bh=J+l1Yn7MAg4ceITe5CKw1k7DW8y5zmZNcbw7tSJD5hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lMHSOdPF24OhYbK48YxFGf//OG6GPbcrpWOkkLZOpiUp7UUwILksoNFdBO/+9Xrtg CAOWU53NPdYaSWZcQ62kzPSHcjvTyT7USFTYcsVYVoynBUh9RS2YReHSvCL3zJi2Bm ISDY9FMt/Iezyci7yfFNGTqWObg4gNDYm8yuRJknjNhh6jb0I3IkmOwMi2q8eYMVG6 6sEZjR3QVOVeJ1KVBUVeHGPjNKilmQ06YnIwWTQYsVcNRcX1Cdjs6QgBDzXc7P6dFk Nmch9S/i6w46R+lHDy/f+v9dOk9QgxB38b9G7zhmoQ0S/QZfbX3BihlZYF7iiuvuWP jdMvmYcrToU5g== From: Marek Vasut To: devicetree@vger.kernel.org Cc: Marek Vasut , Krzysztof Kozlowski , Fabio Estevam , Krzysztof Kozlowski , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team Subject: [PATCH v6 2/3] dt-bindings: imx6q-pcie: Handle various PD configurations Date: Sun, 11 Dec 2022 03:48:58 +0100 Message-Id: <20221211024859.672076-2-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221211024859.672076-1-marex@denx.de> References: <20221211024859.672076-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221210_184919_038334_6185B403 X-CRM114-Status: GOOD ( 11.94 ) 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 The i.MX SoCs have various power domain configurations routed into the PCIe IP. MX6SX is the only one which contains 2 domains and also uses power-domain-names. MX6QDL do not use any domains. All the rest uses one domain and does not use power-domain-names anymore. Document all those configurations in the DT binding document. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Lucas Stach Cc: Richard Zhu Cc: Rob Herring Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Cc: NXP Linux Team To: devicetree@vger.kernel.org --- V2: - Keep the power-domains description in the main section V3: - Move power-domains back where they were originally (fixes V2) - Do not use else: in allOf section V4: - Special-case MX6Q and MX6QP in allOf section since they dont use PDs - Drop minItems: from power-domains main section - Handle anything which is not MX6SX,MX6Q,MX6QP as having one PD V5: - Add RB from Krzysztof V6: - No change --- .../bindings/pci/fsl,imx6q-pcie.yaml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml index bfb9502d9fc0b..b434a1949b9ae 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml @@ -69,6 +69,7 @@ properties: required properties for imx7d-pcie and imx8mq-pcie. power-domains: + minItems: 1 items: - description: The phandle pointing to the DISPLAY domain for imx6sx-pcie, to PCIE_PHY power domain for imx7d-pcie and @@ -77,6 +78,7 @@ properties: for imx6sx-pcie. power-domain-names: + minItems: 1 items: - const: pcie - const: pcie_phy @@ -281,6 +283,47 @@ allOf: - const: pcie_bus - const: pcie_aux + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-pcie + then: + properties: + power-domains: + minItems: 2 + maxItems: 2 + power-domain-names: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6q-pcie + - fsl,imx6qp-pcie + then: + properties: + power-domains: false + power-domain-names: false + + - if: + not: + properties: + compatible: + contains: + enum: + - fsl,imx6sx-pcie + - fsl,imx6q-pcie + - fsl,imx6qp-pcie + then: + properties: + power-domains: + maxItems: 1 + power-domain-names: false + examples: - | #include From patchwork Sun Dec 11 02:48:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13070479 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 371C6C10F1B for ; Sun, 11 Dec 2022 02:50:45 +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=3psMpelI5iREGde8h6bY95Gzxz+qyCEnKstd/Voz0zk=; b=rrwoU0e5vYy6aJ PlKw/3l7+BxHZMVMq4JD6LcVJCpiGJjj0hLQWIXIiQmLFzWaGhnO/m5p1TQghwU+y+Xdxtq+Cgnx2 Ajycepul8EzrYiG8DK47r9LIxIAEchjj1tojPiEdHVQrDfinu7xW1e06vUBQBWiRflaCsUORAt/SP 6kPpQKs5vscJOSBRS/Huw9Ny8SfbbESrf59CqaskaoOuwWZdCnMx9kVeM9c3+l9akNNB2v59sPxxU qb26xS2WLnwxt5Ljpd0QYAvGiHdhsKjeRP24wTsrwh6AgWwcfT3c/v1iHS3nfkUgpGY5h+HAiUG4O CCbFtOLVdlYR0rIs3oqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CPN-00AnWK-44; Sun, 11 Dec 2022 02:49:41 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4CP1-00AnEH-F5 for linux-arm-kernel@lists.infradead.org; Sun, 11 Dec 2022 02:49:21 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C790285334; Sun, 11 Dec 2022 03:49:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1670726957; bh=9EDrUk/FXDakhvKu4hHdaikk6s+VBFhmtOLNXsXsZyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iiA5JGjZ6RnX8qiYt1GGhY07KQ+9wE5EKMg+sPYdhRMOtGzDtxXvsK/okWUbV+fFz lTrp/NmKDrnoUfOYgBHIgjJA4+Vi2IwmLJ1zkqkl2f6QrvE6kvDn0Ds08irdf/36d+ fC4mudgIAHhguK9JE+OfTBXvUqMKT/y++iQUGhZN/EexflAfypOa5gvnAUfAwYWzsG aEGw5ic4m7ROaan2XaLW/vvsygopOoqgtwEfpYpk03FKlPy7i2Y+pZ9dcXrgwgIglN D84TMx+ZnxOy2V0H4uqQmxagLv1hTFuT8h+TfHplw5IoOjFXe2v2ezMCrpK9SA1+tq In0eMunElxN8g== From: Marek Vasut To: devicetree@vger.kernel.org Cc: Marek Vasut , Krzysztof Kozlowski , Fabio Estevam , Krzysztof Kozlowski , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team Subject: [PATCH v6 3/3] dt-bindings: imx6q-pcie: Handle more resets on legacy platforms Date: Sun, 11 Dec 2022 03:48:59 +0100 Message-Id: <20221211024859.672076-3-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221211024859.672076-1-marex@denx.de> References: <20221211024859.672076-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221210_184919_830314_F35C7BE9 X-CRM114-Status: GOOD ( 10.12 ) 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 The i.MX6 and i.MX7D does not use block controller to toggle PCIe reset, hence the PCIe DT description contains three reset entries on these older SoCs. Add this exception into the binding document. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Lucas Stach Cc: Richard Zhu Cc: Rob Herring Cc: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org Cc: NXP Linux Team To: devicetree@vger.kernel.org --- V2: - Add mx8mq to 3-reset PCIe core variant - Handle the resets in allOf section V3: - Reinstate reset: maxItems:3 and add minItems:2 - Move reset-names back to main section - The validation no longer works and introduces errors like these: arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dtb: pcie@33800000: reset-names:0: 'pciephy' was expected V4: - Reinstate reset minItems and maxItems - Turn the first two reset-names items into enums to cover all the various name combinations, sort the rest in allOf section V5: - Drop items from main section reset-names and add maxItems:3 V6: - Add RB from Krzysztof --- .../bindings/pci/fsl,imx6q-pcie.yaml | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml index b434a1949b9ae..1a0ea9d3eaa43 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml @@ -84,15 +84,14 @@ properties: - const: pcie_phy resets: + minItems: 2 maxItems: 3 description: Phandles to PCIe-related reset lines exposed by SRC IP block. Additional required by imx7d-pcie and imx8mq-pcie. reset-names: - items: - - const: pciephy - - const: apps - - const: turnoff + minItems: 2 + maxItems: 3 fsl,tx-deemph-gen1: description: Gen1 De-emphasis value (optional required). @@ -324,6 +323,34 @@ allOf: maxItems: 1 power-domain-names: false + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6q-pcie + - fsl,imx6sx-pcie + - fsl,imx6qp-pcie + - fsl,imx7d-pcie + - fsl,imx8mq-pcie + then: + properties: + resets: + minItems: 3 + reset-names: + items: + - const: pciephy + - const: apps + - const: turnoff + else: + properties: + resets: + maxItems: 2 + reset-names: + items: + - const: apps + - const: turnoff + examples: - | #include