Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp592321rwo; Wed, 2 Aug 2023 00:31:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmlNw7IwhWx+dC1TmxbO5vH1E9QmCWmg1WeBO11KPFQy5iUgK91v3bSYmvKDAVlmZAk1/m X-Received: by 2002:aa7:dd13:0:b0:521:7ab6:b95d with SMTP id i19-20020aa7dd13000000b005217ab6b95dmr4005652edv.29.1690961467161; Wed, 02 Aug 2023 00:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690961467; cv=none; d=google.com; s=arc-20160816; b=l5dIvQAoK70gFziQGhUx12R0ktEPbgl7oJjxp6jpJB2Q0r91wnP2HZYzkGh3S6txEU 9R8Z3gpMkGmqc4zLONw/t6A3EAUAzVnLhDNOfey+d+P8F4xR2LLGiQwmRmVbnoAj7GRK KZoTatH8WFhbpGMH8PChuC9mQY+RikUxri6aItQgAbGdOU2qQN3cChtm1du1AiY0Wv+1 YCx8Ec5UkOLO9p/vHDBxYXXy4l+wlOET91fcG3QLKt9X66cBkmCyyqXdid/bQSk/KCKY CzKDNNgCbKlVYJU7tNwzBgRgqAPALtDIfs1JoeugC4Yi8Y92Ic/NzxXAc3bPpYLY5x3b gykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=slTCvpE9Pw0KofZ8DcjL3n2hsTVFpAkeNWexmaY57n0=; fh=z1MafgbF6R1gkKU1hfSs3mUT954SWLMzSuIx/+pap2A=; b=RJrbgER0fjYv2meYhvRrTngBY8aq2WI5FUgR1St4HcjMbeo2EXzjznGWhbJ/N3ZXLh 8IEUZ1SBACrX5GP9PyUpBfMKqZpvT1KJynxGEOPq5uZBNpvzjPzLnAgwKCKwCTiGx/c+ ioJ3gZx1khJvQKM6OW798J4Vf5C9AEVWr0Isf8oIoaAQ8QHwlCm6Cn80z248/sd58JCj u01lJ943tTv2UftTJf5T/nlZQ+7IDdGFMAurq1GddthqdNi7OdMVXpbN9z1gaBtLsHbA EAcoGHwqLHi5t3lFvNVme7jJ2CH8NyIWFCnL94aeg1d2ng1SZoYfb/q5K0JwFlBvXPfG yv7w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a50ec92000000b0052239439e90si9662648edr.484.2023.08.02.00.30.42; Wed, 02 Aug 2023 00:31:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjHBGtp (ORCPT + 99 others); Wed, 2 Aug 2023 02:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbjHBGt0 (ORCPT ); Wed, 2 Aug 2023 02:49:26 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C46930C4; Tue, 1 Aug 2023 23:48:59 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 76C84201A43; Wed, 2 Aug 2023 08:41:10 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 489692005FA; Wed, 2 Aug 2023 08:41:10 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id B745B1802183; Wed, 2 Aug 2023 14:41:08 +0800 (+08) From: Richard Zhu To: l.stach@pengutronix.de, shawnguo@kernel.org, lpieralisi@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: hongxing.zhu@nxp.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Subject: [PATCH 1/9] dt-bindings: PCI: fsl,imx6q: Add i.MX6Q and i.MX6QP PCIe EP compatibles Date: Wed, 2 Aug 2023 14:06:43 +0800 Message-Id: <1690956412-2439-2-git-send-email-hongxing.zhu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1690956412-2439-1-git-send-email-hongxing.zhu@nxp.com> References: <1690956412-2439-1-git-send-email-hongxing.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Add i.MX6Q and i.MX6QP PCIe EP compatibles. - Make the interrupts property optional, since i.MX6Q/i.MX6QP PCIe don't have DMA capability. - To pass the schema check, specify the clocks property refer to the different platforms. Signed-off-by: Richard Zhu --- .../bindings/pci/fsl,imx6q-pcie-ep.yaml | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml index ee155ed5f181..9b881777c801 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml @@ -19,6 +19,8 @@ description: |+ properties: compatible: enum: + - fsl,imx6q-pcie-ep + - fsl,imx6qp-pcie-ep - fsl,imx8mm-pcie-ep - fsl,imx8mq-pcie-ep - fsl,imx8mp-pcie-ep @@ -46,7 +48,7 @@ properties: interrupts: items: - - description: builtin eDMA interrupter. + - description: builtin eDMA interrupter (optional). interrupt-names: items: @@ -56,8 +58,6 @@ required: - compatible - reg - reg-names - - interrupts - - interrupt-names allOf: - $ref: /schemas/pci/snps,dw-pcie-ep.yaml# @@ -77,7 +77,30 @@ allOf: - const: pcie_bus - const: pcie_phy - const: pcie_aux - else: + + - if: + properties: + compatible: + enum: + - fsl,imx6q-pcie-ep + - fsl,imx6qp-pcie-ep + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: pcie + - const: pcie_bus + - const: pcie_phy + + - if: + properties: + compatible: + enum: + - fsl,imx8mm-pcie-ep + - fsl,imx8mp-pcie-ep + then: properties: clocks: maxItems: 3 -- 2.34.1