Message ID | 20221118182245.31035-2-quic_molvera@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp344421wrr; Fri, 18 Nov 2022 10:24:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ierfz5CoyO+6QQ5ypMhalne1twIWtHehoLrpCdbNOTVI9anB/SlFOvtbAuKTFOECslxtk X-Received: by 2002:a17:902:f313:b0:17d:a81a:5dc2 with SMTP id c19-20020a170902f31300b0017da81a5dc2mr705185ple.90.1668795851221; Fri, 18 Nov 2022 10:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668795851; cv=none; d=google.com; s=arc-20160816; b=06SOmccAR4JmjDfLI9UjBm/e2r7VxDtd9uT6VnNWrzSUHsCHioZhQFSXbr7rdSOs9K 6Gh+d6bW8Ykca8Ez+92pNh3Y/mgH8GYaidNOtu8x6rVBouTOEWUa/k9nE8Jss1c2tY5m pUxHPk+8Cr58qVYge/dO6nNf8CK/L0a+VXESKKl/xme04xzxQwEBt+nvqgb0uC8Dk2+d bSNJwa9VIF0/iVoXNeb2F9CeGEdzU2SpXLiOqZkEeL7SEp5Nb5mm8nAp6bfSofuZdY0w szr0raS8tdUGStRbpO5GOfWZ6NLqt2qO5Phi5djCAGDVOtJzi5ai7ByY0zbY8Dd8RHub DQ3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qak47M4u6T8kHiYXWecTuKzaOl0IZojjbcoprnvHzZc=; b=LgIdNBBdzEPXxjBAv4VzmcsnykQK54hCdchpIZ4Pb2UfiMZ5UiL9YvZncuehflrERI ZcXCkVCbsYxVq1Puyv60ScE741m5+Gu+ouv4EX7svfTcZdThFu6HQlSCI+5rBUk53tZI ktpuFbyOmHH91J4KxZuGYUZBR0H8Ut3zfm6QF8CIshDv1LjolQ3ta7SH0s3kp42C28RO bk9FcipdKTslc509kTFfwoYVgbS4iO5r/rjjJQ1TUeZNjD7CR77vgWNcZLH5gm3zyaMx nsyukETIgqg3i2BRXtzy9s+EzyoM53S9ti8hKNq3l1sywPsLW0mB7S6n/HxXZ/tMFk2O 124Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=J+bRXUIj; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a631a49000000b004611cfaca6asi4435318pgm.381.2022.11.18.10.23.58; Fri, 18 Nov 2022 10:24:11 -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=@quicinc.com header.s=qcdkim header.b=J+bRXUIj; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242761AbiKRSXn (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Fri, 18 Nov 2022 13:23:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242713AbiKRSXD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 13:23:03 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62928976E8; Fri, 18 Nov 2022 10:22:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1668795777; x=1700331777; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qak47M4u6T8kHiYXWecTuKzaOl0IZojjbcoprnvHzZc=; b=J+bRXUIjbW0qQWNTXz6Iv0eHrYl+wxDuTh8uraAKRgv26i9zWsxxcGXz sso6moYAAOUmb6+BvATo5q3gh10udkngrVgtc8Xarpgypyc6VCtX9xBvr bJNz1+N0xY5AweHluu3vqujyd5UDP3Ms1ubkR085cFn56tMU2DDxCL+v2 Q=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 18 Nov 2022 10:22:57 -0800 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2022 10:22:57 -0800 Received: from hu-molvera-sd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 18 Nov 2022 10:22:56 -0800 From: Melody Olvera <quic_molvera@quicinc.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Georgi Djakov <djakov@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: Odelu Kukatla <quic_okukatla@quicinc.com>, <linux-arm-msm@vger.kernel.org>, <linux-pm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Melody Olvera <quic_molvera@quicinc.com> Subject: [PATCH v4 1/3] dt-bindings: interconnect: Add rpmh virt devices Date: Fri, 18 Nov 2022 10:22:43 -0800 Message-ID: <20221118182245.31035-2-quic_molvera@quicinc.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221118182245.31035-1-quic_molvera@quicinc.com> References: <20221118182245.31035-1-quic_molvera@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749859278409041616?= X-GMAIL-MSGID: =?utf-8?q?1749859278409041616?= |
Series |
Add interconnect support for QDU1000/QRU1000 SoCs
|
|
Commit Message
Melody Olvera
Nov. 18, 2022, 6:22 p.m. UTC
Add documentation for virtual rpmh devices. These interconnects
are not controlled by the application processor and thus
require separate bindings. Also, move compatibles for sm8450 to
this document and add them for QDU1000/QRU1000 platforms.
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
.../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++
.../bindings/interconnect/qcom,rpmh.yaml | 2 -
2 files changed, 55 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml
Comments
On 18/11/2022 19:22, Melody Olvera wrote: > Add documentation for virtual rpmh devices. These interconnects > are not controlled by the application processor and thus > require separate bindings. Also, move compatibles for sm8450 to > this document and add them for QDU1000/QRU1000 platforms. > > Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> > --- > .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ > .../bindings/interconnect/qcom,rpmh.yaml | 2 - > 2 files changed, 55 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > > diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > new file mode 100644 > index 000000000000..5cbaa51df863 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect > + > +maintainers: > + - Georgi Djakov <georgi.djakov@linaro.org> > + - Odelu Kukatla <quic_okukatla@quicinc.com> > + > +description: | > + RPMh interconnect providers support system bandwidth requirements through > + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is > + able to communicate with the BCM through the Resource State Coordinator (RSC) > + associated with each execution environment. Provider nodes must point to at > + least one RPMh device child node pertaining to their RSC and each provider > + can map to multiple RPMh resources. Virtual interconnect providers are not > + controlled by AP and do not support QoS; they should not have associated > + register regions. > + > +allOf: > + - $ref: qcom,rpmh-common.yaml# > + > +properties: > + compatible: > + enum: > + - qcom,qdu1000-clk-virt > + - qcom,qdu1000-mc-virt > + - qcom,sm8450-clk-virt > + - qcom,sm8450-mc-virt You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, qcom,sc8280xp-clk-virt and more. > + > + '#interconnect-cells': true > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include <dt-bindings/interconnect/qcom,sm8450.h> > + > + clk_virt: interconnect-0 { > + compatible = "qcom,sm8450-clk-virt"; > + #interconnect-cells = <2>; > + qcom,bcm-voters = <&apps_bcm_voter>; > + }; > + > + mc_virt: interconnect-1 { > + compatible = "qcom,sm8450-mc-virt"; > + #interconnect-cells = <2>; > + qcom,bcm-voters = <&apps_bcm_voter>; These are exactly the same examples, so just keep one. Best regards, Krzysztof
Hi Melody, On 18.11.22 20:22, Melody Olvera wrote: > Add documentation for virtual rpmh devices. These interconnects > are not controlled by the application processor and thus > require separate bindings. Also, move compatibles for sm8450 to > this document and add them for QDU1000/QRU1000 platforms. > > Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> > --- > .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ > .../bindings/interconnect/qcom,rpmh.yaml | 2 - > 2 files changed, 55 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > > diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > new file mode 100644 > index 000000000000..5cbaa51df863 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect > + > +maintainers: > + - Georgi Djakov <georgi.djakov@linaro.org> This email is not valid anymore, so please replace it with djakov@kernel.org. Thanks, Georgi > + - Odelu Kukatla <quic_okukatla@quicinc.com> > + > +description: | > + RPMh interconnect providers support system bandwidth requirements through > + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is > + able to communicate with the BCM through the Resource State Coordinator (RSC) > + associated with each execution environment. Provider nodes must point to at > + least one RPMh device child node pertaining to their RSC and each provider > + can map to multiple RPMh resources. Virtual interconnect providers are not > + controlled by AP and do not support QoS; they should not have associated > + register regions. > + > +allOf: > + - $ref: qcom,rpmh-common.yaml# > + > +properties: > + compatible: > + enum: > + - qcom,qdu1000-clk-virt > + - qcom,qdu1000-mc-virt > + - qcom,sm8450-clk-virt > + - qcom,sm8450-mc-virt > + > + '#interconnect-cells': true > + > +required: > + - compatible > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include <dt-bindings/interconnect/qcom,sm8450.h> > + > + clk_virt: interconnect-0 { > + compatible = "qcom,sm8450-clk-virt"; > + #interconnect-cells = <2>; > + qcom,bcm-voters = <&apps_bcm_voter>; > + }; > + > + mc_virt: interconnect-1 { > + compatible = "qcom,sm8450-mc-virt"; > + #interconnect-cells = <2>; > + qcom,bcm-voters = <&apps_bcm_voter>; > + }; > diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml > index a429a1ed1006..bd474f49deb0 100644 > --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml > +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml > @@ -123,11 +123,9 @@ properties: > - qcom,sm8350-system-noc > - qcom,sm8450-aggre1-noc > - qcom,sm8450-aggre2-noc > - - qcom,sm8450-clk-virt > - qcom,sm8450-config-noc > - qcom,sm8450-gem-noc > - qcom,sm8450-lpass-ag-noc > - - qcom,sm8450-mc-virt > - qcom,sm8450-mmss-noc > - qcom,sm8450-nsp-noc > - qcom,sm8450-pcie-anoc
On 21/11/2022 16:23, Georgi Djakov wrote: > Hi Melody, > > On 18.11.22 20:22, Melody Olvera wrote: >> Add documentation for virtual rpmh devices. These interconnects >> are not controlled by the application processor and thus >> require separate bindings. Also, move compatibles for sm8450 to >> this document and add them for QDU1000/QRU1000 platforms. >> >> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >> --- >> .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ >> .../bindings/interconnect/qcom,rpmh.yaml | 2 - >> 2 files changed, 55 insertions(+), 2 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> new file mode 100644 >> index 000000000000..5cbaa51df863 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> @@ -0,0 +1,55 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect >> + >> +maintainers: >> + - Georgi Djakov <georgi.djakov@linaro.org> > > This email is not valid anymore, so please replace it with djakov@kernel.org. It's still listed in bindings maintainers, so people copy what is there. Can you update your emails? Mailmap is also missing. Best regards, Krzysztof
On 11/21/2022 9:23 AM, Georgi Djakov wrote: > Hi Melody, > > On 18.11.22 20:22, Melody Olvera wrote: >> Add documentation for virtual rpmh devices. These interconnects >> are not controlled by the application processor and thus >> require separate bindings. Also, move compatibles for sm8450 to >> this document and add them for QDU1000/QRU1000 platforms. >> >> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >> --- >> .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ >> .../bindings/interconnect/qcom,rpmh.yaml | 2 - >> 2 files changed, 55 insertions(+), 2 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> new file mode 100644 >> index 000000000000..5cbaa51df863 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> @@ -0,0 +1,55 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect >> + >> +maintainers: >> + - Georgi Djakov <georgi.djakov@linaro.org> > > This email is not valid anymore, so please replace it with djakov@kernel.org. Sounds good. Melody > > Thanks, > Georgi > >> + - Odelu Kukatla <quic_okukatla@quicinc.com> >> + >> +description: | >> + RPMh interconnect providers support system bandwidth requirements through >> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >> + able to communicate with the BCM through the Resource State Coordinator (RSC) >> + associated with each execution environment. Provider nodes must point to at >> + least one RPMh device child node pertaining to their RSC and each provider >> + can map to multiple RPMh resources. Virtual interconnect providers are not >> + controlled by AP and do not support QoS; they should not have associated >> + register regions. >> + >> +allOf: >> + - $ref: qcom,rpmh-common.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - qcom,qdu1000-clk-virt >> + - qcom,qdu1000-mc-virt >> + - qcom,sm8450-clk-virt >> + - qcom,sm8450-mc-virt >> + >> + '#interconnect-cells': true >> + >> +required: >> + - compatible >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + #include <dt-bindings/interconnect/qcom,sm8450.h> >> + >> + clk_virt: interconnect-0 { >> + compatible = "qcom,sm8450-clk-virt"; >> + #interconnect-cells = <2>; >> + qcom,bcm-voters = <&apps_bcm_voter>; >> + }; >> + >> + mc_virt: interconnect-1 { >> + compatible = "qcom,sm8450-mc-virt"; >> + #interconnect-cells = <2>; >> + qcom,bcm-voters = <&apps_bcm_voter>; >> + }; >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml >> index a429a1ed1006..bd474f49deb0 100644 >> --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml >> @@ -123,11 +123,9 @@ properties: >> - qcom,sm8350-system-noc >> - qcom,sm8450-aggre1-noc >> - qcom,sm8450-aggre2-noc >> - - qcom,sm8450-clk-virt >> - qcom,sm8450-config-noc >> - qcom,sm8450-gem-noc >> - qcom,sm8450-lpass-ag-noc >> - - qcom,sm8450-mc-virt >> - qcom,sm8450-mmss-noc >> - qcom,sm8450-nsp-noc >> - qcom,sm8450-pcie-anoc >
On 11/20/2022 5:13 AM, Krzysztof Kozlowski wrote: > On 18/11/2022 19:22, Melody Olvera wrote: >> Add documentation for virtual rpmh devices. These interconnects >> are not controlled by the application processor and thus >> require separate bindings. Also, move compatibles for sm8450 to >> this document and add them for QDU1000/QRU1000 platforms. >> >> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >> --- >> .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ >> .../bindings/interconnect/qcom,rpmh.yaml | 2 - >> 2 files changed, 55 insertions(+), 2 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> >> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> new file mode 100644 >> index 000000000000..5cbaa51df863 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >> @@ -0,0 +1,55 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect >> + >> +maintainers: >> + - Georgi Djakov <georgi.djakov@linaro.org> >> + - Odelu Kukatla <quic_okukatla@quicinc.com> >> + >> +description: | >> + RPMh interconnect providers support system bandwidth requirements through >> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >> + able to communicate with the BCM through the Resource State Coordinator (RSC) >> + associated with each execution environment. Provider nodes must point to at >> + least one RPMh device child node pertaining to their RSC and each provider >> + can map to multiple RPMh resources. Virtual interconnect providers are not >> + controlled by AP and do not support QoS; they should not have associated >> + register regions. >> + >> +allOf: >> + - $ref: qcom,rpmh-common.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - qcom,qdu1000-clk-virt >> + - qcom,qdu1000-mc-virt >> + - qcom,sm8450-clk-virt >> + - qcom,sm8450-mc-virt > You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, > qcom,sc8280xp-clk-virt and more. Ok. I wasn't sure since some of these entries don't seem to conform to these bindings, even though it seems they should. > >> + >> + '#interconnect-cells': true >> + >> +required: >> + - compatible >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + #include <dt-bindings/interconnect/qcom,sm8450.h> >> + >> + clk_virt: interconnect-0 { >> + compatible = "qcom,sm8450-clk-virt"; >> + #interconnect-cells = <2>; >> + qcom,bcm-voters = <&apps_bcm_voter>; >> + }; >> + >> + mc_virt: interconnect-1 { >> + compatible = "qcom,sm8450-mc-virt"; >> + #interconnect-cells = <2>; >> + qcom,bcm-voters = <&apps_bcm_voter>; > These are exactly the same examples, so just keep one. Sounds good. Thanks, Melody > > Best regards, > Krzysztof >
On 21/11/2022 18:39, Melody Olvera wrote: > > > On 11/20/2022 5:13 AM, Krzysztof Kozlowski wrote: >> On 18/11/2022 19:22, Melody Olvera wrote: >>> Add documentation for virtual rpmh devices. These interconnects >>> are not controlled by the application processor and thus >>> require separate bindings. Also, move compatibles for sm8450 to >>> this document and add them for QDU1000/QRU1000 platforms. >>> >>> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >>> --- >>> .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ >>> .../bindings/interconnect/qcom,rpmh.yaml | 2 - >>> 2 files changed, 55 insertions(+), 2 deletions(-) >>> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>> new file mode 100644 >>> index 000000000000..5cbaa51df863 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>> @@ -0,0 +1,55 @@ >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect >>> + >>> +maintainers: >>> + - Georgi Djakov <georgi.djakov@linaro.org> >>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>> + >>> +description: | >>> + RPMh interconnect providers support system bandwidth requirements through >>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>> + associated with each execution environment. Provider nodes must point to at >>> + least one RPMh device child node pertaining to their RSC and each provider >>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>> + controlled by AP and do not support QoS; they should not have associated >>> + register regions. >>> + >>> +allOf: >>> + - $ref: qcom,rpmh-common.yaml# >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - qcom,qdu1000-clk-virt >>> + - qcom,qdu1000-mc-virt >>> + - qcom,sm8450-clk-virt >>> + - qcom,sm8450-mc-virt >> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >> qcom,sc8280xp-clk-virt and more. > > Ok. I wasn't sure since some of these entries don't seem to conform to > these bindings, even though it seems they should. I have impression that devices I listed conform to these bindings, this is why I listed them. But if you are sure that they do not, then they should not be moved. Best regards, Krzysztof
On 11/22/2022 1:50 AM, Krzysztof Kozlowski wrote: > On 21/11/2022 18:39, Melody Olvera wrote: >> >> On 11/20/2022 5:13 AM, Krzysztof Kozlowski wrote: >>> On 18/11/2022 19:22, Melody Olvera wrote: >>>> Add documentation for virtual rpmh devices. These interconnects >>>> are not controlled by the application processor and thus >>>> require separate bindings. Also, move compatibles for sm8450 to >>>> this document and add them for QDU1000/QRU1000 platforms. >>>> >>>> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com> >>>> --- >>>> .../bindings/interconnect/qcom,rpmh-virt.yaml | 55 +++++++++++++++++++ >>>> .../bindings/interconnect/qcom,rpmh.yaml | 2 - >>>> 2 files changed, 55 insertions(+), 2 deletions(-) >>>> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>>> >>>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>>> new file mode 100644 >>>> index 000000000000..5cbaa51df863 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml >>>> @@ -0,0 +1,55 @@ >>>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>> +%YAML 1.2 >>>> +--- >>>> +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# >>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>> + >>>> +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect >>>> + >>>> +maintainers: >>>> + - Georgi Djakov <georgi.djakov@linaro.org> >>>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>>> + >>>> +description: | >>>> + RPMh interconnect providers support system bandwidth requirements through >>>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>>> + associated with each execution environment. Provider nodes must point to at >>>> + least one RPMh device child node pertaining to their RSC and each provider >>>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>>> + controlled by AP and do not support QoS; they should not have associated >>>> + register regions. >>>> + >>>> +allOf: >>>> + - $ref: qcom,rpmh-common.yaml# >>>> + >>>> +properties: >>>> + compatible: >>>> + enum: >>>> + - qcom,qdu1000-clk-virt >>>> + - qcom,qdu1000-mc-virt >>>> + - qcom,sm8450-clk-virt >>>> + - qcom,sm8450-mc-virt >>> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >>> qcom,sc8280xp-clk-virt and more. >> Ok. I wasn't sure since some of these entries don't seem to conform to >> these bindings, even though it seems they should. > I have impression that devices I listed conform to these bindings, this > is why I listed them. But if you are sure that they do not, then they > should not be moved. You're correct; those you listed do conform to the new bindings and should be moved. I also caught qcom,sc7280-clk-virt which needs to be moved. I'll add to the new bindings. Thanks, Melody > > Best regards, > Krzysztof >
On 22/11/2022 18:57, Melody Olvera wrote: >>>>> + >>>>> +maintainers: >>>>> + - Georgi Djakov <georgi.djakov@linaro.org> >>>>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>>>> + >>>>> +description: | >>>>> + RPMh interconnect providers support system bandwidth requirements through >>>>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>>>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>>>> + associated with each execution environment. Provider nodes must point to at >>>>> + least one RPMh device child node pertaining to their RSC and each provider >>>>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>>>> + controlled by AP and do not support QoS; they should not have associated >>>>> + register regions. >>>>> + >>>>> +allOf: >>>>> + - $ref: qcom,rpmh-common.yaml# >>>>> + >>>>> +properties: >>>>> + compatible: >>>>> + enum: >>>>> + - qcom,qdu1000-clk-virt >>>>> + - qcom,qdu1000-mc-virt >>>>> + - qcom,sm8450-clk-virt >>>>> + - qcom,sm8450-mc-virt >>>> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >>>> qcom,sc8280xp-clk-virt and more. >>> Ok. I wasn't sure since some of these entries don't seem to conform to >>> these bindings, even though it seems they should. >> I have impression that devices I listed conform to these bindings, this >> is why I listed them. But if you are sure that they do not, then they >> should not be moved. > > You're correct; those you listed do conform to the new bindings and should be moved. > I also caught qcom,sc7280-clk-virt which needs to be moved. I'll add to the new bindings. Actually let's wait a bit with this. For SM8550 we had an idea to move interconnect to their own bindings file, because they will grow a bit with allOf:if:then clauses. Maybe SM8450 and QDU1000 should also go to their own files which will describe all their interconnects (the virt and the ones requiring clocks)? Apologies for bringing it late for your patches, but SM8550 is also happening right now, so new things pop-up :) Best regards, Krzysztof
On 11/24/2022 2:30 AM, Krzysztof Kozlowski wrote: > On 22/11/2022 18:57, Melody Olvera wrote: >>>>>> + >>>>>> +maintainers: >>>>>> + - Georgi Djakov <georgi.djakov@linaro.org> >>>>>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>>>>> + >>>>>> +description: | >>>>>> + RPMh interconnect providers support system bandwidth requirements through >>>>>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>>>>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>>>>> + associated with each execution environment. Provider nodes must point to at >>>>>> + least one RPMh device child node pertaining to their RSC and each provider >>>>>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>>>>> + controlled by AP and do not support QoS; they should not have associated >>>>>> + register regions. >>>>>> + >>>>>> +allOf: >>>>>> + - $ref: qcom,rpmh-common.yaml# >>>>>> + >>>>>> +properties: >>>>>> + compatible: >>>>>> + enum: >>>>>> + - qcom,qdu1000-clk-virt >>>>>> + - qcom,qdu1000-mc-virt >>>>>> + - qcom,sm8450-clk-virt >>>>>> + - qcom,sm8450-mc-virt >>>>> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >>>>> qcom,sc8280xp-clk-virt and more. >>>> Ok. I wasn't sure since some of these entries don't seem to conform to >>>> these bindings, even though it seems they should. >>> I have impression that devices I listed conform to these bindings, this >>> is why I listed them. But if you are sure that they do not, then they >>> should not be moved. >> You're correct; those you listed do conform to the new bindings and should be moved. >> I also caught qcom,sc7280-clk-virt which needs to be moved. I'll add to the new bindings. > Actually let's wait a bit with this. For SM8550 we had an idea to move > interconnect to their own bindings file, because they will grow a bit > with allOf:if:then clauses. > > Maybe SM8450 and QDU1000 should also go to their own files which will > describe all their interconnects (the virt and the ones requiring clocks)? > > Apologies for bringing it late for your patches, but SM8550 is also > happening right now, so new things pop-up :) Yeah no worries. I can definitely make this change; if this is how we want to do things going forward I'm happy to oblige. Thanks, Melody > > Best regards, > Krzysztof >
On 11/28/2022 9:25 AM, Melody Olvera wrote: > > On 11/24/2022 2:30 AM, Krzysztof Kozlowski wrote: >> On 22/11/2022 18:57, Melody Olvera wrote: >>>>>>> + >>>>>>> +maintainers: >>>>>>> + - Georgi Djakov <georgi.djakov@linaro.org> >>>>>>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>>>>>> + >>>>>>> +description: | >>>>>>> + RPMh interconnect providers support system bandwidth requirements through >>>>>>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>>>>>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>>>>>> + associated with each execution environment. Provider nodes must point to at >>>>>>> + least one RPMh device child node pertaining to their RSC and each provider >>>>>>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>>>>>> + controlled by AP and do not support QoS; they should not have associated >>>>>>> + register regions. >>>>>>> + >>>>>>> +allOf: >>>>>>> + - $ref: qcom,rpmh-common.yaml# >>>>>>> + >>>>>>> +properties: >>>>>>> + compatible: >>>>>>> + enum: >>>>>>> + - qcom,qdu1000-clk-virt >>>>>>> + - qcom,qdu1000-mc-virt >>>>>>> + - qcom,sm8450-clk-virt >>>>>>> + - qcom,sm8450-mc-virt >>>>>> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >>>>>> qcom,sc8280xp-clk-virt and more. >>>>> Ok. I wasn't sure since some of these entries don't seem to conform to >>>>> these bindings, even though it seems they should. >>>> I have impression that devices I listed conform to these bindings, this >>>> is why I listed them. But if you are sure that they do not, then they >>>> should not be moved. >>> You're correct; those you listed do conform to the new bindings and should be moved. >>> I also caught qcom,sc7280-clk-virt which needs to be moved. I'll add to the new bindings. >> Actually let's wait a bit with this. For SM8550 we had an idea to move >> interconnect to their own bindings file, because they will grow a bit >> with allOf:if:then clauses. >> >> Maybe SM8450 and QDU1000 should also go to their own files which will >> describe all their interconnects (the virt and the ones requiring clocks)? >> >> Apologies for bringing it late for your patches, but SM8550 is also >> happening right now, so new things pop-up :) > Yeah no worries. I can definitely make this change; if this is how we want to do > things going forward I'm happy to oblige. > > Thanks, > Melody I think though for these PS, I'll stick to doing w QDU1000. So I'll have a file qcom,qdu1000-rpmh.yaml and qcom,qdu1000-rpmh-virt.yaml Thanks, Melody >> Best regards, >> Krzysztof >>
On 11/28/2022 3:08 PM, Melody Olvera wrote: > > On 11/28/2022 9:25 AM, Melody Olvera wrote: >> On 11/24/2022 2:30 AM, Krzysztof Kozlowski wrote: >>> On 22/11/2022 18:57, Melody Olvera wrote: >>>>>>>> + >>>>>>>> +maintainers: >>>>>>>> + - Georgi Djakov <georgi.djakov@linaro.org> >>>>>>>> + - Odelu Kukatla <quic_okukatla@quicinc.com> >>>>>>>> + >>>>>>>> +description: | >>>>>>>> + RPMh interconnect providers support system bandwidth requirements through >>>>>>>> + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is >>>>>>>> + able to communicate with the BCM through the Resource State Coordinator (RSC) >>>>>>>> + associated with each execution environment. Provider nodes must point to at >>>>>>>> + least one RPMh device child node pertaining to their RSC and each provider >>>>>>>> + can map to multiple RPMh resources. Virtual interconnect providers are not >>>>>>>> + controlled by AP and do not support QoS; they should not have associated >>>>>>>> + register regions. >>>>>>>> + >>>>>>>> +allOf: >>>>>>>> + - $ref: qcom,rpmh-common.yaml# >>>>>>>> + >>>>>>>> +properties: >>>>>>>> + compatible: >>>>>>>> + enum: >>>>>>>> + - qcom,qdu1000-clk-virt >>>>>>>> + - qcom,qdu1000-mc-virt >>>>>>>> + - qcom,sm8450-clk-virt >>>>>>>> + - qcom,sm8450-mc-virt >>>>>>> You should also move qcom,sdx65-mc-virt, qcom,sc8280xp-mc-virt, >>>>>>> qcom,sc8280xp-clk-virt and more. >>>>>> Ok. I wasn't sure since some of these entries don't seem to conform to >>>>>> these bindings, even though it seems they should. >>>>> I have impression that devices I listed conform to these bindings, this >>>>> is why I listed them. But if you are sure that they do not, then they >>>>> should not be moved. >>>> You're correct; those you listed do conform to the new bindings and should be moved. >>>> I also caught qcom,sc7280-clk-virt which needs to be moved. I'll add to the new bindings. >>> Actually let's wait a bit with this. For SM8550 we had an idea to move >>> interconnect to their own bindings file, because they will grow a bit >>> with allOf:if:then clauses. >>> >>> Maybe SM8450 and QDU1000 should also go to their own files which will >>> describe all their interconnects (the virt and the ones requiring clocks)? >>> >>> Apologies for bringing it late for your patches, but SM8550 is also >>> happening right now, so new things pop-up :) >> Yeah no worries. I can definitely make this change; if this is how we want to do >> things going forward I'm happy to oblige. >> >> Thanks, >> Melody > I think though for these PS, I'll stick to doing w QDU1000. So I'll have a file qcom,qdu1000-rpmh.yaml > and qcom,qdu1000-rpmh-virt.yaml > > Thanks, > Melody Nevermind; looks like SM8550 is keeping all in one file, so I'll keep all in one file. > >>> Best regards, >>> Krzysztof >>>
diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml new file mode 100644 index 000000000000..5cbaa51df863 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh-virt.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,rpmh-virt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Virtual Network-On-Chip Interconnect + +maintainers: + - Georgi Djakov <georgi.djakov@linaro.org> + - Odelu Kukatla <quic_okukatla@quicinc.com> + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). The provider is + able to communicate with the BCM through the Resource State Coordinator (RSC) + associated with each execution environment. Provider nodes must point to at + least one RPMh device child node pertaining to their RSC and each provider + can map to multiple RPMh resources. Virtual interconnect providers are not + controlled by AP and do not support QoS; they should not have associated + register regions. + +allOf: + - $ref: qcom,rpmh-common.yaml# + +properties: + compatible: + enum: + - qcom,qdu1000-clk-virt + - qcom,qdu1000-mc-virt + - qcom,sm8450-clk-virt + - qcom,sm8450-mc-virt + + '#interconnect-cells': true + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interconnect/qcom,sm8450.h> + + clk_virt: interconnect-0 { + compatible = "qcom,sm8450-clk-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + mc_virt: interconnect-1 { + compatible = "qcom,sm8450-mc-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml index a429a1ed1006..bd474f49deb0 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml @@ -123,11 +123,9 @@ properties: - qcom,sm8350-system-noc - qcom,sm8450-aggre1-noc - qcom,sm8450-aggre2-noc - - qcom,sm8450-clk-virt - qcom,sm8450-config-noc - qcom,sm8450-gem-noc - qcom,sm8450-lpass-ag-noc - - qcom,sm8450-mc-virt - qcom,sm8450-mmss-noc - qcom,sm8450-nsp-noc - qcom,sm8450-pcie-anoc