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 86C62C4332F for ; Thu, 3 Nov 2022 08:31:00 +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=BNhGpAeORTe7v1YPvBr11UFPUeqU0u/hY0+AFGI5LhI=; b=zSOie6AvRngqmO wtBCEtH2YVot5lyde2BkdprAJzn1/5HEPgjVlQZJwtabT5e/HY/dfIsuBPHFVu8o6Iy3hBb4vJvtn uEp6312zw6bYFOgyo2EyfUkuzV17jsRuEI13EOepuDhR3uurI22L5NC28iJeU0kP5IVfulCXcslQu R982IgkkTO6xe3zZrclHDUvm5i+TYnLdApqr9kAuZrpuTLr+tfXSkqe3Em+p6M+LYyA6GLUWnnPCo udxW2mW/WEP0YV+tfj9b4GZ5PtxliUaodB6dGapbGpLu67ckpYafcbtNQhEichyp0ZF1cEgvAi3Tx vZCIsrc5Qz5vh3zVvBbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqVbj-00Gh9F-0I; Thu, 03 Nov 2022 08:29:51 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqVbd-00Gh6z-2a for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 08:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667464185; x=1699000185; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nhzYPUwoc2molQBCwNVn4uqguZHlXyZ1jSm1Y79u20Y=; b=KIvowcUsCYS4slAr1TxaAOvaLjD2VUwhrZ3pBEghijnwHP4s0kgCKPUV zs80mSsAvjRUIwWU85y/CtmStHQnattjp5YN01LbmkXgONlTnsYtvcdPe s1wHdAM7jdj9C2H73+4jXMOp6xJaEydTnoHBg62pO+VqHbWPR7Dv958r/ SibBnsXHB9QBvGiSS5txNnh601fKbWkQElk3MeOvgZJ4vI/eGhn2X9EAH QTpnpe/HoSOcaQPG8zpp9Rgif59shSN0lCHCJmLdlvQjNpk4XX+TrxImE LpQPS1mwsdGHWYah+R+ubUvFSiEuDFkHNhF38kSH527LrAzb1LY4K1gS9 w==; X-IronPort-AV: E=Sophos;i="5.95,235,1661810400"; d="scan'208";a="27127637" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 03 Nov 2022 09:29:43 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 03 Nov 2022 09:29:43 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 03 Nov 2022 09:29:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667464183; x=1699000183; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nhzYPUwoc2molQBCwNVn4uqguZHlXyZ1jSm1Y79u20Y=; b=e42VJ7IXPFvp+zmNrKjhGvCmi+0RhzV9vtvix+TWORZJppjhWb10eaFT tLI8Vp9+riMwmzaYnGYjo4EQZJkctUs8iThJ+swjuXe1uY1gH3L4A+2mA +mqXHdEFuKCW09RHH+0cowIk2TwKpK/Gyb5hfLm6GhujlHutP846TSyfS FlElL/f8exOGiifiAvNH6kyISadKvr1wQjhG5tjEfPE9zrcaZmhenwuc7 ZnQzmrDEiAd4/vSnKCl9cS/t89H6JOCiRZSoKrn4rmZdk5KHlJlFk9DJV hCLI9D8FHhHQs9bbI/9S2JU7TaESFWrcEROXLAvVxQs4AeVZk/5CVdfVx A==; X-IronPort-AV: E=Sophos;i="5.95,235,1661810400"; d="scan'208";a="27127636" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 03 Nov 2022 09:29:42 +0100 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 3812A280056; Thu, 3 Nov 2022 09:29:42 +0100 (CET) From: Alexander Stein To: Marek Vasut Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, Fabio Estevam , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team , Marek Vasut Subject: Re: [PATCH 2/3] dt-bindings: imx6q-pcie: Handle various PD configurations Date: Thu, 03 Nov 2022 09:29:42 +0100 Message-ID: <3645906.iIbC2pHGDl@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20221102215729.147335-2-marex@denx.de> References: <20221102215729.147335-1-marex@denx.de> <20221102215729.147335-2-marex@denx.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_012945_516373_9E624863 X-CRM114-Status: GOOD ( 20.75 ) 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 Hi Marek, Am Mittwoch, 2. November 2022, 22:57:28 CET schrieb Marek Vasut: > 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. > > Signed-off-by: Marek Vasut > --- > Cc: Fabio Estevam > 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 > --- > .../bindings/pci/fsl,imx6q-pcie.yaml | 47 ++++++++++++++----- > 1 file changed, 34 insertions(+), 13 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml index > 1cfea8ca72576..fc8d4d7b80b38 100644 > --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > @@ -68,19 +68,6 @@ properties: > description: A phandle to an fsl,imx7d-pcie-phy node. Additional > required properties for imx7d-pcie and imx8mq-pcie. > > - power-domains: > - items: > - - description: The phandle pointing to the DISPLAY domain for > - imx6sx-pcie, to PCIE_PHY power domain for imx7d-pcie and > - imx8mq-pcie. > - - description: The phandle pointing to the PCIE_PHY power domains > - for imx6sx-pcie. > - > - power-domain-names: > - items: > - - const: pcie > - - const: pcie_phy > - > resets: > maxItems: 3 > description: Phandles to PCIe-related reset lines exposed by SRC > @@ -241,6 +228,40 @@ allOf: > - const: pcie_bus > - const: pcie_phy > > + - if: > + properties: > + compatible: > + contains: > + const: fsl,imx6sx-pcie > + then: > + properties: > + power-domains: > + items: > + - description: The phandle pointing to the DISPLAY domain for > + imx6sx-pcie, to PCIE_PHY power domain for imx7d-pcie and > + imx8mq-pcie. > + - description: The phandle pointing to the PCIE_PHY power > domains + for imx6sx-pcie. > + power-domain-names: > + items: > + - const: pcie > + - const: pcie_phy > + else: > + if: > + not: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx6q-pcie > + - fsl,imx6qp-pcie > + then: > + properties: > + power-domains: > + description: | > + The phandle pointing to the DISPLAY domain for imx6sx-pcie, > to + PCIE_PHY power domain for imx7d-pcie and imx8mq-pcie. + Doesn't it makes more sense to keep the power-domains descriptions in the common part on top, as before, but adjust minItems/maxItems for each compatible? Regards, Alexander > examples: > - | > #include _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel