From patchwork Fri Dec 23 13:20:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 636949 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B5BCC41535 for ; Fri, 23 Dec 2022 13:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236236AbiLWNUu (ORCPT ); Fri, 23 Dec 2022 08:20:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236136AbiLWNUr (ORCPT ); Fri, 23 Dec 2022 08:20:47 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F5F0FE3 for ; Fri, 23 Dec 2022 05:20:44 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id q2so5005672ljp.6 for ; Fri, 23 Dec 2022 05:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0h8gBiSip5CPQa41Be2qfSjOofzaNdmELJ6gbSf7W+Q=; b=BM4mM/ZEBiugthpciRcdgoIZedNvK7KRM+cZ568R7kpSRPwACaY8wMlGQ7O3B8PGoi VZImChTjy0m5IHpf5gat1apVPTi+mXna/i8iTWhHOhHZltpJSDUTWGrZw1yg7AcfrSh5 WbDGahdlaV4rqorw0UaTGM4HGfGcLutfVb16WdLCZJwqVOTzG2C/AHjQIZ4AcuHRywY9 OrI++4i/gTNCk/PtqGvC4jqzLdKflJkvstrz9TnbSSdlfBEmGm+6EEp0WJm4RsuO3hpX XEAjDZt6SDLhtcKEySowhripkYGC8s3W34bObuuUAKCa7OudwzPQSFMKaWJ6nLxVa0HU YatQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0h8gBiSip5CPQa41Be2qfSjOofzaNdmELJ6gbSf7W+Q=; b=tlv+5wiPG5DoJlQKW9FqaDGEvw5MgNhLV23yts4SstI/UQWaHOl/mtRIn6IZvSfpOa +RKOhsms0U2dfSRzUok9Grbtt1JZF4kSaD3xZoHzmwc5qij4oVkp0vPkbLM+8wSEm4O9 Uwf/conYTXfSTw3Hal1neu7nyifxnJcRfW47Fl12qlbv0yWpklVSw09LPa+Me/TWf0bw 7YPnVL9AZmhgh2J72iu7tKs9YJIR81brACMGpBMoiTBc8KjKIeQinYzXmlKvf1jmujKc +6WIB6XXSIine/zbcWJB36zigPQtP/jMRccm/lPoITDS/CEXMyDEuR+pmLk0uPp1ta5V +XbA== X-Gm-Message-State: AFqh2ko/yo2UowSodmATwUil/sgHZR9DZYZs/zWc0FXnfngMArsiIuHt iQ5Kc+SoH+ZWVJ+xkV7Lm2PStg== X-Google-Smtp-Source: AMrXdXtWY4Wr6HDx1RmiVT5cyM3RHiUOV7DYWSjRrzf7W3d5GqVel23YQGTvIhNqKkWXf8dKFXlpnw== X-Received: by 2002:a2e:b637:0:b0:27a:e3f:7dd5 with SMTP id s23-20020a2eb637000000b0027a0e3f7dd5mr2614956ljn.33.1671801643202; Fri, 23 Dec 2022 05:20:43 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v11-20020a2ea60b000000b0026c2baa72d4sm426753ljp.27.2022.12.23.05.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:20:42 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Odelu Kukatla , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] dt-bindings: interconnect: split SC7280 to own schema Date: Fri, 23 Dec 2022 14:20:38 +0100 Message-Id: <20221223132040.80858-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org SC7280 comes with interconnects having and missing IO address space, so split it from common file for easier maintenancen and to fix warnings like: sc7280-herobrine-crd.dtb: interconnect: 'reg' is a required property Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/interconnect/qcom,rpmh.yaml | 12 ---- .../interconnect/qcom,sc7280-rpmh.yaml | 71 +++++++++++++++++++ 2 files changed, 71 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml index a429a1ed1006..4bdcc014c46b 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml @@ -39,18 +39,6 @@ properties: - qcom,sc7180-npu-noc - qcom,sc7180-qup-virt - qcom,sc7180-system-noc - - qcom,sc7280-aggre1-noc - - qcom,sc7280-aggre2-noc - - qcom,sc7280-clk-virt - - qcom,sc7280-cnoc2 - - qcom,sc7280-cnoc3 - - qcom,sc7280-dc-noc - - qcom,sc7280-gem-noc - - qcom,sc7280-lpass-ag-noc - - qcom,sc7280-mc-virt - - qcom,sc7280-mmss-noc - - qcom,sc7280-nsp-noc - - qcom,sc7280-system-noc - qcom,sc8180x-aggre1-noc - qcom,sc8180x-aggre2-noc - qcom,sc8180x-camnoc-virt diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml new file mode 100644 index 000000000000..b135597d9489 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sc7280-rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect on SC7280 + +maintainers: + - Bjorn Andersson + - Konrad Dybcio + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). + + See also:: include/dt-bindings/interconnect/qcom,sc7280.h + +properties: + compatible: + enum: + - qcom,sc7280-aggre1-noc + - qcom,sc7280-aggre2-noc + - qcom,sc7280-clk-virt + - qcom,sc7280-cnoc2 + - qcom,sc7280-cnoc3 + - qcom,sc7280-dc-noc + - qcom,sc7280-gem-noc + - qcom,sc7280-lpass-ag-noc + - qcom,sc7280-mc-virt + - qcom,sc7280-mmss-noc + - qcom,sc7280-nsp-noc + - qcom,sc7280-system-noc + + reg: + maxItems: 1 + +required: + - compatible + +allOf: + - $ref: qcom,rpmh-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-clk-virt + then: + properties: + reg: false + else: + required: + - reg + +unevaluatedProperties: false + +examples: + - | + interconnect { + compatible = "qcom,sc7280-clk-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + interconnect@9100000 { + reg = <0x9100000 0xe2200>; + compatible = "qcom,sc7280-gem-noc"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; From patchwork Fri Dec 23 13:20:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 636532 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E797AC3DA7D for ; Fri, 23 Dec 2022 13:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236286AbiLWNUx (ORCPT ); Fri, 23 Dec 2022 08:20:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236227AbiLWNUu (ORCPT ); Fri, 23 Dec 2022 08:20:50 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A76B16 for ; Fri, 23 Dec 2022 05:20:45 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id q2so5005721ljp.6 for ; Fri, 23 Dec 2022 05:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KAqjOZmQgKpq60Hvn4MV1XO42eVbyH2AUxe/oo8PbSo=; b=iPbMYCW4kcVxICq2SMG51HRVwi9b1fAuglq/YZ9KmuY41FJF3IscgecvvVuMoXPk2Z KHQTokgaiDi3da8YzmIWqv2E1433lF8w77qA2wVwRDMBBgXtKqNvAjwae6Y8qQM0VIHc y9GbR5PRtFDyiZI5yiJQvLM2w46fbykxmPZYkzJ1qaiWIoX4nklIAQkoGXwsrKgUN3qC DalWUscp/lX6doZmF7LCQ4Aozn71POxyIwFeY3AF2G1b5mN7N3rvOhOTXgzGY/qe0a2S wcFozyi+Rcg9mv/CGYrh6/PuSpWMJRmeGVMylb0ze6SUzutPGcIVE6vn+CeJJY8miKEd 0/0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KAqjOZmQgKpq60Hvn4MV1XO42eVbyH2AUxe/oo8PbSo=; b=JoMgROuLUbklMQ0LVVGxKYm10nS04bqBEKgl21sw0D2i6V7kSf2ipUbxhWd4JKgu1U n1ycrl6mLv1SKav7ou5bWNLQUh0kK5yDKgNWA88Y2Qqx9jVcwFmNn3N+TqoD/Woyk+fl eP1ZxDWY3lacCaBwz1LD6ytNVY46yR7G5EiVlbLKsZzWtuGMEmIdGxB1Xz15XNRfjv7H DE9pmPKviLehxJUBJBM+qG3yBrFml4GXnQegBhkOHljE5idr/jr+LJ9smks1ReAhKfLy ysws3Aq3VemLC6SNs0wSZXPeuakDIQGg5ThhaivykzupZKQYd+ctqqvu4Ooa+rqsIDzK Y4yA== X-Gm-Message-State: AFqh2koYpFKHuV7/uy0ppSwBYPHGWagJiTqYc/5Ds/0KcCwMbT2KYJ+v 6/WNX2VfR1dHP8EtKMOa1I/u/A== X-Google-Smtp-Source: AMrXdXtE/yG/W2lBdxxiEduIdQ9CUndTh3wxJcNaAGJ0JB9jFBLOeqdQ3xWLW1v99YnSR1Jn3M+yiA== X-Received: by 2002:a2e:2e18:0:b0:279:2199:5787 with SMTP id u24-20020a2e2e18000000b0027921995787mr2442494lju.1.1671801644270; Fri, 23 Dec 2022 05:20:44 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v11-20020a2ea60b000000b0026c2baa72d4sm426753ljp.27.2022.12.23.05.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:20:43 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Odelu Kukatla , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] dt-bindings: interconnect: split SC8280XP to own schema Date: Fri, 23 Dec 2022 14:20:39 +0100 Message-Id: <20221223132040.80858-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221223132040.80858-1-krzysztof.kozlowski@linaro.org> References: <20221223132040.80858-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org SC8280XP comes with interconnects without IO address space, so split it from common file for easier maintenancen and to fix warnings like: sc8280xp-lenovo-thinkpad-x13s.dtb: interconnect-mc-virt: 'reg' is a required property Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/interconnect/qcom,rpmh.yaml | 12 ----- .../interconnect/qcom,sc8280xp-rpmh.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sc8280xp-rpmh.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml index 4bdcc014c46b..448829ecf6b6 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml @@ -51,18 +51,6 @@ properties: - qcom,sc8180x-mmss-noc - qcom,sc8180x-qup-virt - qcom,sc8180x-system-noc - - qcom,sc8280xp-aggre1-noc - - qcom,sc8280xp-aggre2-noc - - qcom,sc8280xp-clk-virt - - qcom,sc8280xp-config-noc - - qcom,sc8280xp-dc-noc - - qcom,sc8280xp-gem-noc - - qcom,sc8280xp-lpass-ag-noc - - qcom,sc8280xp-mc-virt - - qcom,sc8280xp-mmss-noc - - qcom,sc8280xp-nspa-noc - - qcom,sc8280xp-nspb-noc - - qcom,sc8280xp-system-noc - qcom,sdm845-aggre1-noc - qcom,sdm845-aggre2-noc - qcom,sdm845-config-noc diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sc8280xp-rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sc8280xp-rpmh.yaml new file mode 100644 index 000000000000..6c2da03f0cd2 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,sc8280xp-rpmh.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sc8280xp-rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect on SC8280XP + +maintainers: + - Bjorn Andersson + - Konrad Dybcio + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). + + See also:: include/dt-bindings/interconnect/qcom,sc8280xp.h + +properties: + compatible: + enum: + - qcom,sc8280xp-aggre1-noc + - qcom,sc8280xp-aggre2-noc + - qcom,sc8280xp-clk-virt + - qcom,sc8280xp-config-noc + - qcom,sc8280xp-dc-noc + - qcom,sc8280xp-gem-noc + - qcom,sc8280xp-lpass-ag-noc + - qcom,sc8280xp-mc-virt + - qcom,sc8280xp-mmss-noc + - qcom,sc8280xp-nspa-noc + - qcom,sc8280xp-nspb-noc + - qcom,sc8280xp-system-noc + +required: + - compatible + +allOf: + - $ref: qcom,rpmh-common.yaml# + +unevaluatedProperties: false + +examples: + - | + interconnect-0 { + compatible = "qcom,sc8280xp-aggre1-noc"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; From patchwork Fri Dec 23 13:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 636948 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 148A1C41535 for ; Fri, 23 Dec 2022 13:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236261AbiLWNU5 (ORCPT ); Fri, 23 Dec 2022 08:20:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbiLWNUv (ORCPT ); Fri, 23 Dec 2022 08:20:51 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA04627D for ; Fri, 23 Dec 2022 05:20:47 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id q2so5005787ljp.6 for ; Fri, 23 Dec 2022 05:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7vpelYbZ2CZ71ir8I9eV6R8yg0lPmPjYmYdPxnjBzak=; b=sFmU6T1pTUbS96njlBXd8rPgDghuHYDFp2KFmj2k3EAuCgNh8NGIJjuC81Zwyey+vy OHypVcY5I4eXGO2boKJsWJ4UJ5LlIUQzG5nxpYLsNz1oTSLcdTdENPjyy0G4y2jicbVs nLadSydRA+ydZwxqZb8zBLFyJcFg6upKybhK4RifChDXDnXDmXPHdKWkmVBKvoHqgMN7 Zm3KeI9drjMBCaLTp+Ayhw6uAgA2iT+N+iJ8p52hnOovsYLsTNF2n3bK7B7uQAT7r6Lf KC8pEHKWT1b8KWjhIGfv83uoi52sVwRwzKbfFu02HqiK/F3BNQNrjhjOJxBgZ4ahKA93 cR0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7vpelYbZ2CZ71ir8I9eV6R8yg0lPmPjYmYdPxnjBzak=; b=4LlNlcmT/tsZpdv2ClpGiKLyGO2SXxvq/QksQPRUO/DkHk/wiixfGqe+N7xLY8hXs7 VGbUimQz1XPrJX0UVEZNsOUME0jkcpY0huZgI5tmoEhfN0Y/MERaBVMCoad8e2YVsM26 Wz9aAxTiXmH8Wa77u2q6E3cyvuuUFHHBS08JaPWLF8+lH4VPoZe8QQLG4sM/txgvjuRe 1CIETVgT977AcXo8oOYWCpmjfTl2dacLs67eL5p0VlyiRPwBQphFS5IK8xAPOOIdLFNV l3im30s0GQRc92OxeCswwhEXneMqgAG9aqoE6k3h48BzHi9zF9zb59EUYv9cxa27FCAE Bx8Q== X-Gm-Message-State: AFqh2kqf/zPaX9UlI0hyespqzbmJLnHE47Vt7lRegSXjWqKk4kNtQXZ1 F0+icxvOUlZknfRXhsB6iQTDDA== X-Google-Smtp-Source: AMrXdXsXZpD+XYE4U62yzkISiO3OiTfBaqD6ceG9XoVihva4qaAzWpcaeR9CF+jQXe9/pJcU2MPdrg== X-Received: by 2002:a05:651c:48e:b0:27d:5e67:cb15 with SMTP id s14-20020a05651c048e00b0027d5e67cb15mr3181596ljc.4.1671801645723; Fri, 23 Dec 2022 05:20:45 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id v11-20020a2ea60b000000b0026c2baa72d4sm426753ljp.27.2022.12.23.05.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 05:20:45 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Odelu Kukatla , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] dt-bindings: interconnect: split SM8450 to own schema Date: Fri, 23 Dec 2022 14:20:40 +0100 Message-Id: <20221223132040.80858-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221223132040.80858-1-krzysztof.kozlowski@linaro.org> References: <20221223132040.80858-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org SM8450 comes with interconnects having and missing IO address space, and variable number of clocks, so split it from common file for easier maintenancen and to fix warnings like: sm8450-hdk.dtb: interconnect-0: 'reg' is a required property Signed-off-by: Krzysztof Kozlowski --- .../bindings/interconnect/qcom,rpmh.yaml | 11 -- .../interconnect/qcom,sm8450-rpmh.yaml | 124 ++++++++++++++++++ 2 files changed, 124 insertions(+), 11 deletions(-) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sm8450-rpmh.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml index 448829ecf6b6..335836a1b3c4 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml @@ -97,17 +97,6 @@ properties: - qcom,sm8350-mmss-noc - qcom,sm8350-compute-noc - 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 - - qcom,sm8450-system-noc '#interconnect-cells': true diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sm8450-rpmh.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sm8450-rpmh.yaml new file mode 100644 index 000000000000..3cff7e662255 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,sm8450-rpmh.yaml @@ -0,0 +1,124 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sm8450-rpmh.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect on SM8450 + +maintainers: + - Bjorn Andersson + - Konrad Dybcio + +description: | + RPMh interconnect providers support system bandwidth requirements through + RPMh hardware accelerators known as Bus Clock Manager (BCM). + + See also:: include/dt-bindings/interconnect/qcom,sm8450.h + +properties: + compatible: + enum: + - 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 + - qcom,sm8450-system-noc + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 4 + +required: + - compatible + +allOf: + - $ref: qcom,rpmh-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8450-clk-virt + - qcom,sm8450-mc-virt + then: + properties: + reg: false + else: + required: + - reg + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8450-aggre1-noc + then: + properties: + clocks: + items: + - description: aggre UFS PHY AXI clock + - description: aggre USB3 PRIM AXI clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8450-aggre2-noc + then: + properties: + clocks: + items: + - description: aggre-NOC PCIe 0 AXI clock + - description: aggre-NOC PCIe 1 AXI clock + - description: aggre UFS PHY AXI clock + - description: RPMH CC IPA clock + + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8450-aggre1-noc + - qcom,sm8450-aggre2-noc + then: + required: + - clocks + else: + properties: + clocks: false + +unevaluatedProperties: false + +examples: + - | + #include + #include + + interconnect-0 { + compatible = "qcom,sm8450-clk-virt"; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + }; + + interconnect@1700000 { + compatible = "qcom,sm8450-aggre2-noc"; + reg = <0x01700000 0x31080>; + #interconnect-cells = <2>; + qcom,bcm-voters = <&apps_bcm_voter>; + clocks = <&gcc GCC_AGGRE_NOC_PCIE_0_AXI_CLK>, + <&gcc GCC_AGGRE_NOC_PCIE_1_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&rpmhcc RPMH_IPA_CLK>; + };