From patchwork Wed Jan 11 09:26:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 641568 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 8BDF1C54EBE for ; Wed, 11 Jan 2023 09:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238562AbjAKJ2L (ORCPT ); Wed, 11 Jan 2023 04:28:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238314AbjAKJ1V (ORCPT ); Wed, 11 Jan 2023 04:27:21 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7867656 for ; Wed, 11 Jan 2023 01:26:43 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id bn26so14421067wrb.0 for ; Wed, 11 Jan 2023 01:26:43 -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=dhVOOJdeRvnuSiz68zPh9oSWD5qRJTw08mRDGl7Mg9c=; b=m72ky2jW1IZmBjSeQqGkNV4atR0AEKhU20RvG8WD8si4aK4UahuDkmbMmWl0NJkLWr pYEJ1BGvxxDWP0E3dQQtZrm0b0fzsXqOXRjxXbfu+FycxgXg8JDLbg2Ics8AorVlNAUO aa66F2EIs2LXIuYUi+WnzAQwvnDmbD2MLNdqi20iuNBsY5H2AS6l4pCe52VQNKHfgh5U CwB3tA91JeA5xUvAwT6IpTFIxGe8ca+JDc6FNQ5iPUP98KnGdx3enFZMkeO5pGnk5wpY z8Un2s13/QvMJQ7EF5sDymo/wDpfWRTk9FGK76k+ipzuAsQRkg0pNut/eYnvrymRoryJ YRfA== 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=dhVOOJdeRvnuSiz68zPh9oSWD5qRJTw08mRDGl7Mg9c=; b=s9/MiBmD501EA9hRHuO1dYhRc3RZzMQUAzI+qOkgDAfto4pSL/tl8m92X8Wg/R3U8W gHmgZ20xAnbnnzZiPyHPWkz/7pocAAY5CrEh12uz0JuElwpWdJb84Cs1UpSdUl4Cy7X+ zVFSCpmh+MQ2TWlBo4abJQ0MbYJ82gxuPnIyNDXYd423hqvh1wnQBVS4sh+bi/lbDr64 YXUjjk1a6MhCvDmZrm0Ds5CRnmwTu7Cca1IxxGQK6lTeI6FRoOPUCjGQT4Ahu35XK5ZH Si7lLH9EoUSjxjXwYmBfetr0n6sLSnJiHBwi9MZuf70LMJIpFyt7ZMz7TOB9CCElAZg9 hXxA== X-Gm-Message-State: AFqh2kq8SwT2dnxlLHBevuND8+U/Ugn4IjWOSPExcoH6pimDinSsPcpm Zeg9Sl2JP7gKeTeMNcutPFf8FA== X-Google-Smtp-Source: AMrXdXsuohtoJKbJgvqRS1RUhc6CAYKdjk7kSA9ROPHTZYCFqar8jLwtNkx/1ka5m+czCKj3jCh0Fg== X-Received: by 2002:adf:e585:0:b0:2bc:7e9b:ca44 with SMTP id l5-20020adfe585000000b002bc7e9bca44mr6679498wrm.59.1673429202537; Wed, 11 Jan 2023 01:26:42 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id n16-20020a5d4010000000b002bbed1388a5sm7954177wrp.15.2023.01.11.01.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Jan 2023 01:26: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 , Rob Herring Subject: [PATCH v2 1/3] dt-bindings: interconnect: split SC7280 to own schema Date: Wed, 11 Jan 2023 10:26:35 +0100 Message-Id: <20230111092637.17946-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 maintenance and to fix warnings like: sc7280-herobrine-crd.dtb: interconnect: 'reg' is a required property Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. Fix typo in commit msg 2. Add Rb tag --- .../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>; + };