Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp688084rwb; Wed, 16 Nov 2022 06:29:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf5nzDCbkXZa/Pa87xfqvHMIzpWvGBxEYsCyNTI+wjHhitdCfYsWAsYNWP8o+NCeTZzGs+5T X-Received: by 2002:a17:906:4e0b:b0:7ad:7d4a:ec2c with SMTP id z11-20020a1709064e0b00b007ad7d4aec2cmr17625129eju.710.1668608942903; Wed, 16 Nov 2022 06:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668608942; cv=none; d=google.com; s=arc-20160816; b=lvqg/Wrc7W4NE9Xubo0mXQ/ttRwhBA5y3Sneh2VI4BinTDWxwgRlP+LiudRL3L+LRU hUoZ1KHVGMe0BAOUuUkZCo5GzSMjSAt6ZVKOavG0Be+oe++wliFIkVn9+sxrVx4U5sip q03LqxKgyP+gAlgzmvBDotf2bGenU+TRbGPoveHtf7/LhAVVNKAFOdfBRwIJYjcU/ot7 MiLzI+4jZVo7ExqfLPVG4tvOHA1mzrIqffXh41tHd1LE+GhvTHkYbBSnP0z73BSN4awY 4NKIZ8E8bMFBwlZfncScXWM1Rz7m0lCXQ5Wt1+lOcFHM5FFqXHmaV8wjpfYi6ApSM9jc WTDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ixY6rGth4R5S6xUhfpLwgnCtN7nGlQgokMY3zz5pVtQ=; b=cOwlT69S35aCVxrIe/v00hQ0KDonfn7taXIesR/Y62fhsVyTmqzb59IPjeCJjuC3gU CNwMBvCxJqzIowSxzIoXLOzWkNH5G1A1X9qPaiUdQCnPq5L2N0kFjxnfVpskJXlI1/+o xBZcuCcQ1wkHFXLBlGS/CXh6S1wnd4S2SlxX1TEjq9r1arfa9gmvEr1343WNDy/2Sjpq 2MLOUP4VdAa2fhnq5eEfEQs6Tr8dq/rc/e4eXu/rs/MrpZ0ZZdjqV+DiLtNivUeVdYKo 3U3m1dO5MJnC4iP+6c9fJdXMSpcST5NzdEcjvWhRU5C1yTq+87UZG/3bze5fPp9QArL2 8B8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYQqBhcD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020aa7c2d4000000b004591f959c3bsi12315797edp.427.2022.11.16.06.28.40; Wed, 16 Nov 2022 06:29:02 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYQqBhcD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbiKPNfF (ORCPT + 91 others); Wed, 16 Nov 2022 08:35:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233072AbiKPNez (ORCPT ); Wed, 16 Nov 2022 08:34:55 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C729A6308; Wed, 16 Nov 2022 05:34:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 620C461DF3; Wed, 16 Nov 2022 13:34:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAF30C433D6; Wed, 16 Nov 2022 13:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668605693; bh=zlY4mrIv0s5cE8xdBAeTBqSjaL9Tl9EQS+raR3pCQ2A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AYQqBhcDXeEq2QL2JmFHGJK3Tj4P9EKXRaACb5i3uhghyscPxmFiZEQ8+nlhhWVR0 GUhOk8J2YSZcsOAoevlc3MkgR9TLSrfB0CXPcRo41NjJ/v5oHSxyypEUcLNPeOFrwX StXcGyTnOy8++FMmkG4OVTGQGXwH1HhY/Q43zyqh/yB5KgfAow+/sKuOnW6gC/ioGo Uch2eUL14/+f5d3Qxo6tDM+fys7daoYB+bDO+9QkQ9VcOG+p5HW1QnUNJNREOAy6oV cTdd0WMJZ+LUGV1x3MSybJSVA/N3AeWd2N9P279nHycdAUY0IxirZEU8NERnqLUHXv 9L9+CSHzIzxqg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ovIYZ-0002cK-Ts; Wed, 16 Nov 2022 14:34:23 +0100 Date: Wed, 16 Nov 2022 14:34:23 +0100 From: Johan Hovold To: Abel Vesa Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Manivannan Sadhasivam , Lorenzo Pieralisi , Rob Herring , kw@linux.com, Krzysztof Kozlowski , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: PCI: qcom: Add SM8550 to binding Message-ID: References: <20221116123505.2760397-1-abel.vesa@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221116123505.2760397-1-abel.vesa@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Wed, Nov 16, 2022 at 02:35:04PM +0200, Abel Vesa wrote: > Add the SM8550 platform to the binding. > > Signed-off-by: Abel Vesa > --- > .../devicetree/bindings/pci/qcom,pcie.yaml | 96 +++++++++++++++++++ > 1 file changed, 96 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > index 54f07852d279..efa01a8411c4 100644 > --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > @@ -34,6 +34,8 @@ properties: > - qcom,pcie-sm8250 > - qcom,pcie-sm8450-pcie0 > - qcom,pcie-sm8450-pcie1 > + - qcom,pcie-sm8550-pcie0 > + - qcom,pcie-sm8550-pcie1 You should only need one compatible even if there are differences in which bus clocks you need to enable. > - qcom,pcie-ipq6018 > > reg: > @@ -92,6 +94,10 @@ properties: > power-domains: > maxItems: 1 > > + enable-gpios: > + description: GPIO controlled connection to ENABLE# signal > + maxItems: 1 > + > perst-gpios: > description: GPIO controlled connection to PERST# signal > maxItems: 1 > @@ -187,6 +193,8 @@ allOf: > - qcom,pcie-sm8250 > - qcom,pcie-sm8450-pcie0 > - qcom,pcie-sm8450-pcie1 > + - qcom,pcie-sm8550-pcie0 > + - qcom,pcie-sm8550-pcie1 > then: > properties: > reg: > @@ -601,6 +609,92 @@ allOf: > items: > - const: pci # PCIe core reset > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,pcie-sm8550-pcie0 > + then: > + properties: > + clocks: > + minItems: 11 > + maxItems: 11 > + clock-names: > + items: > + - const: pipe # PIPE clock > + - const: pipe_mux # PIPE MUX > + - const: phy_pipe # PIPE output clock The mux and pipe output does not belong in the binding and instead the muxing should be handled by the clock driver (cf. sc8280xp). You can probably drop the refclock too. > + - const: ref # REFERENCE clock > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock > + - const: ddrss_sf_tbu # PCIe SF TBU clock > + - const: aggre0 # Aggre NoC PCIe0 AXI clock Johan