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 67419C4332F for ; Fri, 4 Nov 2022 15:02:13 +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:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6tcIAzpci8IuGW8KXMXsN79RzCDi7SU9UvTkWqe3xks=; b=mZhEOxmTKf1TFk K6cTbcc6wj52EG2NCol2MO6goqKa++fhrLk2n6kuJhHJU2zPjzMesSQIYVAwt3tKvoS2hQae0C9qp McG1qKZdINFIJj6XFjKd1ZHSfwrh1YXdXFNTFReQyJ56tDOfCqeoWx3/3JyyXLZ2kvBYnBAcF/QZb jeZmHyPtMY1vJeBihCOA4JhA7kG6O3caHEL0mMFT7aj7RDowIum2OTsac7tyEnCuCJ/T66yc4+ppI zFbMZmBjKo9qAnTSNijFmKMhMKiCbbKUDY4XXEna+laRXAedSmrRgalT+St9bVwrCCpK0VUi58ABd iAPrT5FgAXN8gaK8IQuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqyBn-0047MH-QI; Fri, 04 Nov 2022 15:00:59 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqyBk-0047LJ-FB for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 15:00:58 +0000 Received: by mail-qt1-x82c.google.com with SMTP id c15so3158392qtw.8 for ; Fri, 04 Nov 2022 08:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XBOCQwzI8Jg6HjRw1ZMhTiwR9qUWk8djSry2Q4SbpHU=; b=DKPv7jMV4kRa0jJYp1uPE6bs01+SSWLLZDitSA+hygmANkODSRXgzH7fzU//BleoNX JqWGRCxnaxKtOSeBr2eVS/KmIZs6tFzUXzjB1TC7OqjAtYFidBbtvdtRUi/os5AoOplA BxmmDp626yM+EbodkfES+8kj0mD/wiLPuVOXxmFg8fKCLNVw6EBFAc2pP+obkpLqyzYw qftA8woyrtqVl4ukEr3yjopO8z/I9ui5KHiegxKAsRMEghSl4XuMxJh4nS5eQSUAZZWs Oc6cjacn/imY3Qrc5B/zTF1CK62+QaAnzEEeWRN2uA4RjFZCbWbXvNPXDA4JvQ/HmVo3 41+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XBOCQwzI8Jg6HjRw1ZMhTiwR9qUWk8djSry2Q4SbpHU=; b=LB3UU8eZa49scXwB3kwqRtGvNjZs5M7Wb1b3g+Si1rRFIR0ADhgbL4g9E9LJGB/jtp g32/STQ0Jb0oeaL+NqZ3vVpbA/uGH6hYse/GTmyC9zp5NZ+czqSlDNoSCiFyid4V3XXx yI0zuVpU4dvHxaHEHhWCPhv+QkUlAXD/5tbqhO0OUtQkW1UYPklD82CGfwJe7wdoz92D l1kP3w0gqaD5TeKvmE79wHZMOLqRn70fRYWXAr36uCvkwKHHRXFmLul+7kSHsEV20W5U rBJHoG4w0PCoSwg+Nrukd9ZbDl3Rpfw9OMaASiihloedzwXJD1PAHsQ8D3dQ6TmUqrJr ktog== X-Gm-Message-State: ACrzQf2MhS5MjPyjV7iw2t7VEtFneLhu5CA4RusdifJ/URsTo+olAjd4 ljTtPkoWrGXYngvR4XRDWVcufg== X-Google-Smtp-Source: AMsMyM4JbPyRCAGrQKoqytMxqbYYGCadulYOO1qjHFlvMxN79KX1vha+BnqVm+gUg0wnn2wIGR/JsA== X-Received: by 2002:a05:622a:4c07:b0:3a5:27ec:6dd3 with SMTP id ey7-20020a05622a4c0700b003a527ec6dd3mr21498139qtb.411.1667574051214; Fri, 04 Nov 2022 08:00:51 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:aad6:acd8:4ed9:299b? ([2601:586:5000:570:aad6:acd8:4ed9:299b]) by smtp.gmail.com with ESMTPSA id a16-20020ac87210000000b0039d02911555sm2512875qtp.78.2022.11.04.08.00.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Nov 2022 08:00:50 -0700 (PDT) Message-ID: <4e44e9bb-acfb-eb20-d050-71485803e2c9@linaro.org> Date: Fri, 4 Nov 2022 11:00:49 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 2/3] dt-bindings: imx6q-pcie: Handle various PD configurations Content-Language: en-US To: Marek Vasut , devicetree@vger.kernel.org Cc: Fabio Estevam , Krzysztof Kozlowski , Lucas Stach , Richard Zhu , Rob Herring , Shawn Guo , linux-arm-kernel@lists.infradead.org, NXP Linux Team References: <20221104131044.103241-1-marex@denx.de> <20221104131044.103241-2-marex@denx.de> From: Krzysztof Kozlowski In-Reply-To: <20221104131044.103241-2-marex@denx.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_080056_541494_D84F780B X-CRM114-Status: GOOD ( 22.19 ) 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 04/11/2022 09:10, Marek Vasut wrote: > 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: 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 > --- > .../bindings/pci/fsl,imx6q-pcie.yaml | 55 ++++++++++++++----- > 1 file changed, 42 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..2087dab95d679 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 > @@ -132,6 +119,19 @@ properties: > phy-names: > const: pcie-phy > > + 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 > + imx8mq-pcie. > + - description: The phandle pointing to the PCIE_PHY power domains > + for imx6sx-pcie. > + power-domain-names: > + items: > + - const: pcie > + - const: pcie_phy I don't understand why these are being moved. Commit msg also does not explain this. While moving you make some changes so it's difficult to review. > + > reset-gpio: > description: Should specify the GPIO for controlling the PCI bus device > reset signal. It's not polarity aware and defaults to active-low reset > @@ -241,6 +241,35 @@ allOf: > - const: pcie_bus > - const: pcie_phy > > + - if: > + properties: > + compatible: > + contains: > + const: fsl,imx6sx-pcie > + then: > + properties: > + power-domains: > + minItems: 2 > + maxItems: 2 > + power-domain-names: > + minItems: 2 > + maxItems: 2 > + else: > + if: Don't nest, it's difficult to track what is where. > + not: > + properties: > + compatible: > + contains: > + enum: > + - fsl,imx6q-pcie > + - fsl,imx6qp-pcie > + then: > + properties: > + power-domains: > + minItems: 1 > + maxItems: 1 > + power-domain-names: false > + > examples: > - | > #include Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel