Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp631067iog; Wed, 29 Jun 2022 07:13:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6/mWS/T5n+QPt8QBeXPOKXsIkDeYjx3gwgcEavi+Wuu/ApZMdIKhjDlsTexbUWAclOFB6 X-Received: by 2002:a17:902:e80b:b0:16a:61da:924 with SMTP id u11-20020a170902e80b00b0016a61da0924mr10644820plg.54.1656511992161; Wed, 29 Jun 2022 07:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656511992; cv=none; d=google.com; s=arc-20160816; b=BbPLTILph2IGpaTaISU4fQjsOIL+LsV/nc9PU8xz4andIYxStkgyeHZXl+YRk7m1Tx jCXu0eBHgNT1eY/H3L4LqeGLKGiIGw4k9pvc4CMVmjJaiQEdE5i1u/veIJmtZUV+7rjP 3YMrx/WLccK/fdf4HfVivIQ6k2/wLyoTtCdXT4ufmuQGwAchmSNI2CHPtDWfkBdjk0ck IWCyM9Pc1ELlY34ALHoLVj/mLBZH0r/umPMki1VMLgc14QAb5CTHyUIPq7ZYLiCaznhG 1UqLHyc9CktfXuJ/EBybhVhXV0zIKALHFGj9r59cPFXnmGHvRqC0hpNVQdmhwPLk7rfx WSkA== 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=WoV4pas84c7AMle4/cOCqX9GxEkhRyeiQnd4AgtTb4M=; b=qc75tIj/MSwqjdUVmNyQ0s85pZfC1YKVSiqxnxSlpFtx25bnFpwJpB0gBfGA6tq/4S 10cmq48AtONl587UXAutdGF37q9mHrrwg7jZRZzvSsreArV5BwlRifq/H/n98cTyuZl5 62Jh91G7/KLO89HkILDhd/FRdRNrh+ncF76MOh+1SHpAm/vZnsCzscWVBbSCNjB29ZN4 pzrlwn0VM62mZRgQvLXhol0TzcY0fg2KojpmaVa1ckseGlzq/MMai2Nz00uCiCIoNNx4 lsBEHUYNQ7cvPuHQeqIIYM9QMMpZi96yk0Mw7o0SUNH8wUIUamGDSEHGnbAC5OWsf8/v grIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nBxPgnpt; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a170902ce8b00b0016a3139ee03si23996812plg.602.2022.06.29.07.12.55; Wed, 29 Jun 2022 07:13:12 -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=nBxPgnpt; 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 S233253AbiF2ODO (ORCPT + 99 others); Wed, 29 Jun 2022 10:03:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233081AbiF2ODM (ORCPT ); Wed, 29 Jun 2022 10:03:12 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5942C640A for ; Wed, 29 Jun 2022 07:03:09 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id u12so32757672eja.8 for ; Wed, 29 Jun 2022 07:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WoV4pas84c7AMle4/cOCqX9GxEkhRyeiQnd4AgtTb4M=; b=nBxPgnptDg1TDKkHwk9owzFTTn+EAgl050PaJcrBtU2U2LZyXX9+wqNTfjhhHY83vk O67kySTQ/Yrh7un5++SeFAKWkT9UOb4Lu81dC/TFDBocO9nww4QhAzPj4AmYxoKQZdwu q7BABzVKeH/yYhkhD7ecjRPfddU3qVgI4zSvvC30I+Si1p9S17kzj7Uc+p0NX06wTIhu E2PR2QHYKIkCBJ3m769D65wbmf4i+2GTd/CqA/cxHIRirMBufIq2fVMoF+Rxw4NA1lOh +iOqHqYT2aoBKOyYLZoKXAmMh1qn2V9vy9yODYM+tXswFoOQGdieUwOSo4sbBfGlTIkI c7hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WoV4pas84c7AMle4/cOCqX9GxEkhRyeiQnd4AgtTb4M=; b=RnA3A1YXRIMtM/WgzYSIJtlAsathK6cnK52LEZsvYt7inxaYAXFf7rXQsbA2nzkcNN +KX9m6bb1vihdV7QtGS6G33jsxWro97I52YrwUka1ntvDOoGvgJk+LhfcHDdvD8b44Zq YSUVXmXOcyEOBsvecSrwpai4lYEPtTqNlIOnJT9dhnJIzSLkQHmmkf/kq3RKVaI97vW+ zClwI6t3sEfSzwhRrRmDNXakPSUhDNj0peVOimTvW1Cs0KTah7d+dbgClT24qLb0ZYFF aMYbdPPoilCtHuhSI7a+90bsxv8nm9a8rIGKHQleBWm4fBJ8GRIttxwrR32LpisBLTe/ +5Ag== X-Gm-Message-State: AJIora/UAZodrhuLD7x8+GDsO1MoQS6fUg+/Re0KNYtJvi+e2t9GrM5L 0HU/3q03SGnJgRSXDWfI+27c2A== X-Received: by 2002:a17:907:75f9:b0:72a:38f3:f0b5 with SMTP id jz25-20020a17090775f900b0072a38f3f0b5mr2321627ejc.549.1656511387925; Wed, 29 Jun 2022 07:03:07 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id f9-20020a17090660c900b007262a5e2204sm7739260ejk.153.2022.06.29.07.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 07:03:07 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rajendra Nayak , Rob Herring Subject: [PATCH v6 1/4] dt-bindings: interconnect: qcom,msm8998-cpu-bwmon: add BWMON device Date: Wed, 29 Jun 2022 16:02:59 +0200 Message-Id: <20220629140302.236715-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629140302.236715-1-krzysztof.kozlowski@linaro.org> References: <20220629140302.236715-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add bindings for the Qualcomm Bandwidth Monitor device providing performance data on interconnects. The bindings describe only BWMON CPU (version 4), e.g. the instance which appeared for the first on Qualcomm MSM8998 SoC and is also used on SDM845. This BWMON device sits between CPU and Last Level Cache Controller. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Acked-by: Georgi Djakov --- .../interconnect/qcom,msm8998-llcc-bwmon.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8998-llcc-bwmon.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-llcc-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-llcc-bwmon.yaml new file mode 100644 index 000000000000..76e09658d615 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-llcc-bwmon.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8998-llcc-bwmon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Interconnect Bandwidth Monitor + +maintainers: + - Krzysztof Kozlowski + +description: | + Bandwidth Monitor measures current throughput on buses between various NoC + fabrics and provides information when it crosses configured thresholds. + + Certain SoCs might have more than one Bandwidth Monitors, for example on SDM845:: + - Measuring the bandwidth between CPUs and Last Level Cache Controller - + called LLCC BWMON, + - Measuring the bandwidth between Last Level Cache Controller and memory (DDR). + +properties: + compatible: + oneOf: + - items: + - enum: + - qcom,sdm845-llcc-bwmon + - const: qcom,msm8998-llcc-bwmon + - const: qcom,msm8998-llcc-bwmon # BWMON v4 + + interconnects: + maxItems: 1 + + interrupts: + maxItems: 1 + + operating-points-v2: true + opp-table: true + + reg: + # BWMON v4 (currently described) and BWMON v5 use one register address + # space. BWMON v2 uses two register spaces - not yet described. + maxItems: 1 + +required: + - compatible + - interconnects + - interrupts + - operating-points-v2 + - opp-table + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + pmu@1436400 { + compatible = "qcom,sdm845-llcc-bwmon", "qcom,msm8998-llcc-bwmon"; + reg = <0x01436400 0x600>; + interrupts = ; + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_LLCC 3>; + + operating-points-v2 = <&llcc_bwmon_opp_table>; + + llcc_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-0 { + opp-peak-kBps = <4800000>; + }; + opp-1 { + opp-peak-kBps = <9216000>; + }; + opp-2 { + opp-peak-kBps = <15052800>; + }; + opp-3 { + opp-peak-kBps = <20889600>; + }; + opp-4 { + opp-peak-kBps = <25497600>; + }; + }; + }; -- 2.34.1