Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp337972iog; Wed, 29 Jun 2022 00:55:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uFpXTPUC+FB9bVSf3Q+eluI5VA04GM0xCNpj87m0jkMHBcud9Uz/zgqcHQT7Qq0I9Y7lFo X-Received: by 2002:a63:2254:0:b0:40d:d291:7710 with SMTP id t20-20020a632254000000b0040dd2917710mr1866682pgm.269.1656489305218; Wed, 29 Jun 2022 00:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656489305; cv=none; d=google.com; s=arc-20160816; b=tV6//yQSS57FOUuupnNWvkjxvCE3JMOVGhVgaDWl3Vc2ZJJFAGlnwbKt59YuEaJal2 vXBFqBLpCfoERuMGEfHVgHyAji1yuegq18Ng7cEAktWNjbR2q0wpRuoGS4kTj6qQvP3Z qDy0JLmujbnGf/YE7/0bzbAhbx4Loss4s8cw7Zwi9/uwRWJ6UVSL+i4HfiT/IAQO72qm Ybeq24zgxtjjtpsEdqbRbzrZrKX7VJjcLt8KxVCwjBOYAisRifQG+ImWJsHRchdIAm9u +yxvqLtXADDDQJak0D7GzBrrpcM+8n2JUaDQCrq5W2XyGK8a5mc4KIMYtfAmDAY4L2ea ATGg== 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=7DTWZB97Om2EveO4+LeSiMIgS7q933Vk+cFtrI7PvsQ=; b=JsuFbtZRaP50z3+Yw+v8CRMoa13dpeKtTI/zOR7vjGSyRCA6Y5LCB/SoUVk4F3Ng2d xax146HJAukYpX49Fl8PLP5+pH/+zd3ImBq5lb/bPq2kFfWa4x1Z8/BWxqq0WAMa2r8j uR+Kgu4Z5KQ7s1JNQ5EZoJpkiYY9i1IGMwTdTIDRgVwAD+wE8uQ+8wMxV8zWXpEtwhRb SJHX2nXNvex3LsNYOjfTgRLgLFLpbptsKYtjC4updwY3asJl+lXeyNgzLs+b8r+Keaj6 2EhsnL1M4rHJ26ypHxk8YIOH9ld4V0EUU8inuQKok0Vcgbqm2xR+vVS5skOWzsTygH6Z 5rXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zo3HdiH3; 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 b9-20020a170902b60900b0016b960dfce8si3529682pls.577.2022.06.29.00.54.53; Wed, 29 Jun 2022 00:55:05 -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=zo3HdiH3; 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 S232625AbiF2Hx3 (ORCPT + 99 others); Wed, 29 Jun 2022 03:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232016AbiF2HxK (ORCPT ); Wed, 29 Jun 2022 03:53:10 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED97D3B3EE for ; Wed, 29 Jun 2022 00:52:57 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id z41so2451739ede.1 for ; Wed, 29 Jun 2022 00:52:57 -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=7DTWZB97Om2EveO4+LeSiMIgS7q933Vk+cFtrI7PvsQ=; b=zo3HdiH3SVClA6tRFUsSAldlGZ7jiFDvugQ1kWdZQ9ekf/Ozhrgk0z81b6Nqrbpks3 sgzhA4O8dTYtfjFIoiPvk0XL60KrbJFjttz5TXomBBdytDCt7EZKt2bHWZaPeeA2FzgW s4k2egFMvlEQ0/QNpZlIJ6QtDVCLs0gBl5m9pBsl6CHVSeB65s3AiwkYVKsCFAAxGLec dpWKx3YtpMzMTcYzySduJwZ/ormwujS1GbV6+4t2PSlZx8HAiXzo7XADHPvJ0AoXpmj1 PwSXz49zZFIqJ+c2emCj4D0xfckpewGxmXZnTBt4zhpkrZ6p2JTfSOxduK7cqJjMnVQX Y/BQ== 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=7DTWZB97Om2EveO4+LeSiMIgS7q933Vk+cFtrI7PvsQ=; b=pgg3wQFr0Al8j0C2dUTO68wGL/8k4oQdIG6Du+oA+fB664FrAsGrkTqPQ55N7tdBxp 9qsdu7pAOla9/Bso1fiEPNzCReNNhxkWVhXUXNN0bpwn7nYDAiR9SqxudDEx1WlN+5my OPzDrnULVMvaKh8gn7XtPPdNRzbFAMbK16V7mI8Zqz2wGscDWMKJWc9OMkfSAXlLArHz YYN4x92Sqn8lMnveknRE4+ipjXuK+djAFvF2EoTQxF3f+BS1F0JzBaen08VbSzsL1bQG AznAi137fOPTCNfMyiGzzYITuItMbmsf3jeojKtpATpWEAgZtUE/BVKSDlHHSfVU82HV vorA== X-Gm-Message-State: AJIora8zjjvJ5Y97SgZmI143bqkwEkiJIMAR5859P3oHiW6EnqLEENcO PECLAozp5MkLx5RbvBhLTEXZ1A== X-Received: by 2002:aa7:d353:0:b0:435:6a15:139f with SMTP id m19-20020aa7d353000000b004356a15139fmr2507062edr.19.1656489175969; Wed, 29 Jun 2022 00:52:55 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id t2-20020a056402020200b00437db6acaeesm432173edv.95.2022.06.29.00.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 00:52:55 -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: Rob Herring Subject: [PATCH v5 1/4] dt-bindings: interconnect: qcom,msm8998-cpu-bwmon: add BWMON device Date: Wed, 29 Jun 2022 09:52:47 +0200 Message-Id: <20220629075250.17610-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629075250.17610-1-krzysztof.kozlowski@linaro.org> References: <20220629075250.17610-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=ham 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-cpu-bwmon.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8998-cpu-bwmon.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8998-cpu-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-cpu-bwmon.yaml new file mode 100644 index 000000000000..b6ced53b92f7 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8998-cpu-bwmon.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,msm8998-cpu-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. + +properties: + compatible: + oneOf: + - items: + - enum: + - qcom,sdm845-cpu-bwmon + - const: qcom,msm8998-cpu-bwmon + - const: qcom,msm8998-cpu-bwmon # BWMON v4 + + interconnects: + maxItems: 1 + + interrupts: + maxItems: 1 + + operating-points-v2: true + opp-table: true + + reg: + # Currently described BWMON v4 and 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-cpu-bwmon", "qcom,msm8998-cpu-bwmon"; + reg = <0x01436400 0x600>; + interrupts = ; + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_LLCC 3>; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_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