From patchwork Mon Jul 24 14:06:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 125031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1837502vqg; Mon, 24 Jul 2023 07:28:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDNtvRuVqI/Hb2AiOGCJ+Eujn09Gp6tn0m5LGkJKsdg87LTDzrlxansxF7uvvojj57L4Oa X-Received: by 2002:a17:90a:cb01:b0:268:2127:6cb6 with SMTP id z1-20020a17090acb0100b0026821276cb6mr1249684pjt.16.1690208909557; Mon, 24 Jul 2023 07:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690208909; cv=none; d=google.com; s=arc-20160816; b=vCwo08kMmsL7YZeJ48COFJI4v9zLs69OM1s9TUmTgvJwOGfi8+ZYmMhZSu+aNM0nO/ sGryrxW9puwcKu2jCSdmI7XferECguteIV/U/KnA8ZARiUFbS6UoUJ4tAupn3lW8VN2Y kSAQX59g8F2p6USCCznBjXijPgwjsyXPNMk6k38IchJxxgZgkXzmZzURVb9wrJuUJ8Ci 1xKS21QVCNnj9oSiUt6JfPNEvO1SrbLhtMlUBAne4+AnJvVCrzvvPlNAvLqUojycgzE7 awrXSBQ+0ZV5Q9IkVzzFxHQ7cfP4KBkk9+Df9tRNWH8aXyOZNEkX0QmqEBT1dfqx9TUa MWNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CapD9bYuIwUBKvnkt1qJ6Eemt2zJ1oxS+R4FEv0Bm0g=; fh=xQ4bPgBMp6pjfu5uXr9M5NsLBi3mTDsOQP6lWaQWMDw=; b=kbTXuNsfF4+YAS1naBGIPs0uSy5rPCQCN/mdecT2V3QIWMR0KVAv9DWLcE/nX7N9qm nGvIaPDqCfvm33wSYc2kXGnmIh2pewzdcPu8Jmfde33o1W7PhRnvCYlIIeRbWQhdDFrT 24b6b7QMr1kHKLVdEU8OacMfOQkMoBiu+xSMgYa3ALzzq+HIy93ZqtgCJ7nXGZKh5Db9 FHUHCaZu8EMaenuP0+M/XZMl+LJekpT/p86nfQzgJPq+ualClTc8aFmy/aXpHwBYF3C1 JQ7BKUZJimPkHIK5vUnDBqk1cPbvkPBrjBpykXToFstrL2mf6As6y7THLUWRdf8ATy5i 8jBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AqcIdqD4; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi12-20020a17090b1e4c00b00262ef440ed4si12707735pjb.27.2023.07.24.07.28.16; Mon, 24 Jul 2023 07:28:29 -0700 (PDT) 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=@linaro.org header.s=google header.b=AqcIdqD4; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbjGXOGj (ORCPT + 99 others); Mon, 24 Jul 2023 10:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbjGXOGf (ORCPT ); Mon, 24 Jul 2023 10:06:35 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CD9FE66 for ; Mon, 24 Jul 2023 07:06:33 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so6546001e87.2 for ; Mon, 24 Jul 2023 07:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690207591; x=1690812391; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CapD9bYuIwUBKvnkt1qJ6Eemt2zJ1oxS+R4FEv0Bm0g=; b=AqcIdqD41SpNK2X2B8hSTnLurI1F5svcZcyRVNqIz4559TniEhyh242n2bKqJS64CQ ww+XFroXZCYgSYdT91JQGvcGH3ULmQWSznVIUIW5CSJQrcfzKeq7Xuxu9q0cYQRBn+8h MpeIhPTBtrAH7JXpiYOkYJ0rNE6Bgl6eIM0Ajr9XL4JZFGnAWuni+lN608fC6MK3eQSC 25Qz4FmA1m5US40WJech+ZXWGqMkvfSg8QZpiamVBvUI0mMM1iZncJPGDpmpo67RsTlZ nzphsMTbfXZupgUTTQc7XqWMf33/vTYnAXwRiU9clKTzTqSZbE/byxhM9MDCRiECbvke 3Isw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690207591; x=1690812391; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CapD9bYuIwUBKvnkt1qJ6Eemt2zJ1oxS+R4FEv0Bm0g=; b=IwiNI+abjDzEifQ2oaVEVlWC911QPCB0X5rMvmcvntUfA1c7pbe9TvB7G8DrpmeB4g 2W1MWGonKGrmdhuTCdUXpuFXrcv5rklaM44+UpeA1Ck9m+tZSaw9t3czcniG/sDm0cOu 5eY3gOmW7hfMO5hfYRc1U9Byg4TMldWl4xkN7i1cYTUnEIYvtsnC9BXaNMN78CEqKtl2 UnDmZG7C4mmm95YIqO/8A1iFqoFccVT/LGrDO9dgipAJLD3LkMacUloHVVQjxn0xdHFP aS9dgkVUn/ESMHtg1/7bs+iXx9xJOwvVSu/HuaobE4OoYfQrlqsJGC/+ack83PwxIp43 wvSQ== X-Gm-Message-State: ABy/qLYx/VAORCH7q6xsaO67tgGGFUfhH1Qh/L6xp58Vi6NFPqyHjuiU ZoXgf4IekwEZMQcXWBq7Oy9gjQ== X-Received: by 2002:a05:6512:15a8:b0:4fd:faf0:6591 with SMTP id bp40-20020a05651215a800b004fdfaf06591mr1587057lfb.10.1690207590869; Mon, 24 Jul 2023 07:06:30 -0700 (PDT) Received: from [192.168.1.101] (abxj221.neoplus.adsl.tpnet.pl. [83.9.3.221]) by smtp.gmail.com with ESMTPSA id er26-20020a05651248da00b004fbab1f023csm2223481lfb.138.2023.07.24.07.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 07:06:30 -0700 (PDT) From: Konrad Dybcio Date: Mon, 24 Jul 2023 16:06:27 +0200 Subject: [PATCH v2 1/7] dt-bindings: interconnect: qcom: Introduce qcom,rpm-common MIME-Version: 1.0 Message-Id: <20230721-topic-icc_bindings-v2-1-e33d5acbf3bd@linaro.org> References: <20230721-topic-icc_bindings-v2-0-e33d5acbf3bd@linaro.org> In-Reply-To: <20230721-topic-icc_bindings-v2-0-e33d5acbf3bd@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: Marijn Suijten , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690207588; l=3192; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DFcyR0dd5amSxKhNEmUSmBnWVhsX8Mb+i59oiYKx9c4=; b=NbwvG601DWdnCJKIO2oWBvJFf4T6510JL6NWGgxi9ywRj1MSoZDKvluPSNMXZix4dZQqv0nat 8KgwxsVRsmBCLujdhiN2SBHJVYBQnQYNcM3jEj1Uke/dqn0ryC6hcaK X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772312497725655246 X-GMAIL-MSGID: 1772312497725655246 The current RPM interconnect bindings are messy. Start cleaning them up with a common include. Signed-off-by: Konrad Dybcio --- .../bindings/interconnect/qcom,qcm2290.yaml | 18 +++++++------- .../bindings/interconnect/qcom,rpm-common.yaml | 28 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcm2290.yaml b/Documentation/devicetree/bindings/interconnect/qcom,qcm2290.yaml index f65a2fe846de..df89f390a9b0 100644 --- a/Documentation/devicetree/bindings/interconnect/qcom,qcm2290.yaml +++ b/Documentation/devicetree/bindings/interconnect/qcom,qcm2290.yaml @@ -13,6 +13,9 @@ description: | The Qualcomm QCM2290 interconnect providers support adjusting the bandwidth requirements between the various NoC fabrics. +allOf: + - $ref: qcom,rpm-common.yaml# + properties: reg: maxItems: 1 @@ -23,9 +26,6 @@ properties: - qcom,qcm2290-cnoc - qcom,qcm2290-snoc - '#interconnect-cells': - const: 1 - clock-names: items: - const: bus @@ -44,6 +44,9 @@ patternProperties: The interconnect providers do not have a separate QoS register space, but share parent's space. + allOf: + - $ref: qcom,rpm-common.yaml# + properties: compatible: enum: @@ -51,9 +54,6 @@ patternProperties: - qcom,qcm2290-mmrt-virt - qcom,qcm2290-mmnrt-virt - '#interconnect-cells': - const: 1 - clock-names: items: - const: bus @@ -66,20 +66,18 @@ patternProperties: required: - compatible - - '#interconnect-cells' - clock-names - clocks - additionalProperties: false + unevaluatedProperties: false required: - compatible - reg - - '#interconnect-cells' - clock-names - clocks -additionalProperties: false +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/interconnect/qcom,rpm-common.yaml b/Documentation/devicetree/bindings/interconnect/qcom,rpm-common.yaml new file mode 100644 index 000000000000..1ea52b091609 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,rpm-common.yaml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,rpm-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm RPMh Network-On-Chip Interconnect + +maintainers: + - Konrad Dybcio + +description: + RPM interconnect providers support for managing system bandwidth requirements + through manual requests based on either predefined values or as indicated by + the bus monitor hardware. Each provider node represents a NoC bus master, + driven by a dedicated clock source. + +properties: + '#interconnect-cells': + oneOf: + - const: 2 + - const: 1 + deprecated: true + +required: + - '#interconnect-cells' + +additionalProperties: true