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 10E4FC433FE for ; Thu, 17 Nov 2022 07:59:05 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X9fUtuitlMaX6O1BwL8GAtlkraiXwFO2gTy0pNOOjl0=; b=Q5WphN6+pAjgZi uwZVtL88ThiIV0XTK90Ghgvki0LVD1i+UJb8yyD0dTUbJi4U2BQFzhiuKlPGcKsks8xxleeRsanmk F7NDkf8JJKzVLth6982oYsvIFOZHknlm290JbmUD5beW/rh6Ea7ZGwL2I4C+Yt4PrtH4SL4CnxV54 1Bxt4uw2CU2/NlABwsdGxMpPt9jIjLGsDnoVRvTctP3Knd5KsMc54fsOLsGNvJxCIWn22r5ixT/w1 uPjlbr6wlkBP9SjdKEHe1uhxATZIen12u4koQi9IgisD3wa70Jeu3kw9l2ZlkbzlrTjHKeHkdr5UA FIMBsRDk3+vl6VVDRU2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovZmb-00BORq-Ep; Thu, 17 Nov 2022 07:58:01 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovZmX-00BONW-U6 for linux-arm-kernel@lists.infradead.org; Thu, 17 Nov 2022 07:57:59 +0000 Received: by mail-lj1-x234.google.com with SMTP id t10so1745790ljj.0 for ; Wed, 16 Nov 2022 23:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nFOePCV5AyriYjsyfQ9Ny4GF1k82Nr332eVFKq6WF4k=; b=UAXmSv6HSMo0Eb6cEw1VG8mO9IpJubp7nUx72xQtORbXGnqzt1WpUFVrKds/yLzUXI 3Of+qjYTH59IKUXAoG1jOnhtT3+WRt4Yg2CzaGhXp9lhflaO+5U2kk7zr+jjNHOx73c5 QW0RvBaxEth3ZBWb7e1Rlp9MIGKLA2mA8uRlfqy/W4Ok7gPk6zQGcyXnkM32mEz9eJEn XhSO6xW/dp68JWOp7xHQ6f0JFmHoCtMwmj0jc7aZK8eV99VLtdtNAXy9RGiN2uJkIMIi Ui95kN3q14T7+E5mR3BgqyCMvUxfuLphtxO0bPhmMQZBh3N+kIxXALWSlevZ3sF2LM1G u8RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nFOePCV5AyriYjsyfQ9Ny4GF1k82Nr332eVFKq6WF4k=; b=teL3lvThl6tSNWlBahPryl5GKbVUUIyzJKhh44eI4Rk2blH5R2Tx9p4yMMNe11weFS 0RGp6BC//T2IYREVf1vehxTS8WvCbpnx63VMPQnQqviNDkmZOGcvF7CaLdlTkrD8HWJr /J0ENXAD2+Z9U+jsAa7GATHVDoPkAP05SKnBnYk+2x04au141Xg2MXgrG8ZB9++e0cDT 545FrSolPkgtAbLRRXSHK8lsO9R3WT2+qpG/B2pPSytv5cnudpbR9ctjnQ5V/fb4y2jj cHzp4Ikjf+OuwIbHGXivj9jaLiAPixaodtnWms+v+bJbTtKgHZrKWFDb2192f9otEl7R WUKQ== X-Gm-Message-State: ANoB5pmrIOITGzffj47b/l7gBf/ZJXMM8gD1ujAYBpihyRDCP2UpvyfQ NIP4PPmEraIpYAYr7A4VqkE= X-Google-Smtp-Source: AA0mqf42Q8b+2cNSrNm06BoY5KV/nytrKYZT88KusUpEO72frdDg1V9mmPgfUID7u/usKHRY69ZwKA== X-Received: by 2002:a05:651c:338:b0:277:1158:7ebb with SMTP id b24-20020a05651c033800b0027711587ebbmr589418ljp.521.1668671868323; Wed, 16 Nov 2022 23:57:48 -0800 (PST) Received: from mobilestation ([95.79.133.202]) by smtp.gmail.com with ESMTPSA id 26-20020ac25f5a000000b004ac393ecc34sm21272lfz.302.2022.11.16.23.57.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 23:57:47 -0800 (PST) Date: Thu, 17 Nov 2022 10:57:45 +0300 From: Serge Semin To: Marek Vasut Cc: devicetree@vger.kernel.org, Alexander Stein , Fabio Estevam , Krzysztof Kozlowski , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team Subject: Re: [PATCH v5 1/3] dt-bindings: imx6q-pcie: Handle various clock configurations Message-ID: <20221117075745.yvgp4t6qefdbr7vc@mobilestation> References: <20221109002449.35936-1-marex@denx.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221109002449.35936-1-marex@denx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_235757_997436_A2DA7A4B X-CRM114-Status: GOOD ( 24.55 ) 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 On Wed, Nov 09, 2022 at 01:24:47AM +0100, Marek Vasut wrote: > 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 This patch does two things at a time: 1. Fixes invalid fourth clock-names entry. 2. Fixes the fsl,imx8mm-pcie/fsl,imx8mp-pcie devices having the "pcie_aux" clock name required instead of "pcie_phy". There is a single patch which fixes the only first part of the problem: Link: https://lore.kernel.org/linux-pci/20221113191301.5526-2-Sergey.Semin@baikalelectronics.ru/ I suggest to consider moving that patch to this series and altering this patch so one would fix the iMX 8MM/8MP clock names only. Rob, please note my patchset will fail the dt_binding_check procedure if that patch is moved from it. * Please note one nitpick below. > > 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 > --- > .../bindings/pci/fsl,imx6q-pcie.yaml | 73 +++++++++++++++++-- > 1 file changed, 68 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > index 376e739bcad40..2df73be0ffbea 100644 > --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.yaml > @@ -14,9 +14,6 @@ description: |+ > This PCIe host controller is based on the Synopsys DesignWare PCIe IP > and thus inherits all the common properties defined in snps,dw-pcie.yaml. > > -allOf: > - - $ref: /schemas/pci/snps,dw-pcie.yaml# > - > properties: > compatible: > enum: > @@ -60,8 +57,8 @@ properties: > items: > - const: pcie > - const: pcie_bus > - - const: pcie_phy > - - const: pcie_inbound_axi for imx6sx-pcie, pcie_aux for imx8mq-pcie > + - enum: [ pcie_phy, pcie_aux ] > + - enum: [ pcie_aux, pcie_inbound_axi ] > > num-lanes: > const: 1 > @@ -177,6 +174,72 @@ required: > > unevaluatedProperties: false > > +allOf: > + - $ref: /schemas/pci/snps,dw-pcie.yaml# > + Unnecessary newline. -Sergey > + - 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 > -- > 2.35.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel