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: 13080979 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 56DD4C4167B for ; Fri, 23 Dec 2022 13:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236233AbiLWNUu (ORCPT ); Fri, 23 Dec 2022 08:20:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236140AbiLWNUr (ORCPT ); Fri, 23 Dec 2022 08:20:47 -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 0F55CFDF for ; Fri, 23 Dec 2022 05:20:44 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id f20so5001974lja.4 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=xmNhDh0/TjnSv6U88OX2hLN7f+ZkhoinBa+aSR5Qny8TwTAUbgZ/p0NYC7VKGxGr0D qLg6gNrc8OHgErn3sRMPvGCGOPgR/XgCKJGWCJf9/0SvJ7ghMZLOFSU+hNt4OqnJAhFd qK/PDQ22sFsZMSb2BGq0OgZf0xBcH6MhOWkF2pSxAF92tlXiZrHeVDGYtICe/rQ8tZME SaH9E9id1c2XhqXFOGq4UqnqLszsljCzEulbg2xRafP6AMQON/DI5Unx0WBg8APB6lkA vaLPdMdS6FA4e7KWCNrJXaDOTJV7d5Iwb2DH+GciVk0Sz4KlaMxFXydBN+jCA0NY/K10 YVmg== X-Gm-Message-State: AFqh2kpRdBshPXaxrknToXfvtmiYT3Paop0o2qiKmDvaRnYxM+GEsQsc zQgdm9VlKV3VfdH6vO2A2jYY7af6RPia9KUl 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-arm-msm@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>; + };