Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1238379lfc; Wed, 1 Jun 2022 12:42:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIBvOdeqaO8FQKNzA4aJSO+CZt4EMaAuEmAOXPNyWwwSYu/+ERs2/ufB/B1LbvqNy5schP X-Received: by 2002:a65:618e:0:b0:3fb:177f:d365 with SMTP id c14-20020a65618e000000b003fb177fd365mr825278pgv.265.1654112569390; Wed, 01 Jun 2022 12:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654112569; cv=none; d=google.com; s=arc-20160816; b=sMyUKRfVDbdYCp0RioSDBYxjJr7XYamw1/guhCTTB+bBVsR2Q4x/iMxWPHJLCQ78za RAqKyRGz7s54oyfGgNmd6Mij9V1ZwoTL7Xd5qDza90iUfn2vyb6MiCGmF+t2JiIX6f9p n5VS9O4JLoAD3ch/btdPphxbTjjrWUBS9kookdegiDE62KugLJ55sgfhidXFDX+FMlDj zrO0lRVn9JqxttMlmofVKAzxA7Z22l6igmj9/91R6GbLJ6q1NB6KqOnUCHcJwcrIS/GH d/XFUxWGawQhZeKK96rfA3LmMtyFhtcFcckWGOrjU2Z17k5NebvnoIPltiwJyvn0F7YV RNXQ== 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=p7mIRFKlf7mUQrcHty6Iw1fiOYErDnQJ/9BxNwewsYs=; b=o+DSqOC5uctPUbAhHYgqWvzEv+kor4rneecQ4KQGJAdFqJCWlNI9aJGoRtBf2eLmu5 6w7OGlTThDY9dEnpZ4nIRJPvbYwtwnBPgooL77W/H8YSD2bbXVWjaxXIQfYqE3F7U9X/ npkLKtim3/5XT1DEjVOPjArBr2jdvcHJDs9HAKHnB0eLvTwItqL7Lik6PjFzGSacxb6p fYRB8RFLUYOTF3eH3Su7q74fwDpJZbX5vw87Xn6YqlwZLRhpqonsJu7kKU7MIG466oB9 hG37TkPaLKCfhsjVIQaJN74vNZtZYjyMKcxOksDqOxE79xPxWuEJk11rJUTcAhNUIy28 M5lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LoAg86P0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k5-20020a635605000000b003c63c350186si3115642pgb.847.2022.06.01.12.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:42:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LoAg86P0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A68AC11AFDC; Wed, 1 Jun 2022 12:08:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351824AbiFAKL6 (ORCPT + 99 others); Wed, 1 Jun 2022 06:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350806AbiFAKLv (ORCPT ); Wed, 1 Jun 2022 06:11:51 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B07DE9D for ; Wed, 1 Jun 2022 03:11:49 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id me5so2185577ejb.2 for ; Wed, 01 Jun 2022 03:11:49 -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=p7mIRFKlf7mUQrcHty6Iw1fiOYErDnQJ/9BxNwewsYs=; b=LoAg86P0ntllSU1bmFjpKTAEgl1pUq8J8eUjUhYimzTR+IgaCgrABf4gfdnwJCq6cI J44NtFFuVX5TBWsKrdAQgMij796UY8blB8Y/OxW+Zp3c/EMVCdOZA9mS74Q8S0TQQmKt X5NS7BEdSOUabe0f6ooMrygh3NQX2IgQgU2l/XPWy4tIbGSuluYzUOzqQfF0RV4q8r8l 5fdwyBZE6g0iCPIRYmKW2nzCEqzsqxABmckVbdwW+n1zJBhOXDWwFWAIN9FlpkUuwd/K TKlN5EclXdtUV3cy69iZzXTJwMots7jS2gpu0rIIzdBReY7OvaTFxngXwcFPyfOn2wND s9zg== 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=p7mIRFKlf7mUQrcHty6Iw1fiOYErDnQJ/9BxNwewsYs=; b=cp2lVYIlZ+yv2SDnvs+77wocpCvaH7znZV/v5YdxwVlJ2OQrQvSUePcFhMFujnqQ1z PDf7XuJXC46b59IEUoh27OfZBTT+hMU+RBJl+3iHw5QDdRmVmoVfRuU6kd4rDI3cxxED nq6+urUXeDbGW8r3O2zFm5rTu/D9DrxziGyzvfjDdIuLuvPunlveM4lV5Nbx1usyPSeF qIiiYNym/2djF3dN80oyveRsqOLIRPqvG5jaX3Rv+tO99tkKytH9JGuxQnSqdp3wnDX5 XgdrRhf4PXhDdHffoExOxgOx+ztMqpmmP8vyOdw8somMfOf3Dq3z9E4nlzSXCasg2OdT +fcg== X-Gm-Message-State: AOAM5316Z3ft621Nm1qzluuzZ+Xk+vHngsbojLmpQFBSH1mL8e7wjmTd pbqSVzH8Zopep+n3uJOI9d4CQw== X-Received: by 2002:a17:907:3f9a:b0:6ff:25ba:57ea with SMTP id hr26-20020a1709073f9a00b006ff25ba57eamr25929701ejc.141.1654078308199; Wed, 01 Jun 2022 03:11:48 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id m9-20020a170906580900b006feb7b1379dsm501373ejq.181.2022.06.01.03.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 03:11:47 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , 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 v4 1/4] dt-bindings: interconnect: qcom,sdm845-cpu-bwmon: add BWMON device Date: Wed, 1 Jun 2022 12:11:37 +0200 Message-Id: <20220601101140.170504-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220601101140.170504-1-krzysztof.kozlowski@linaro.org> References: <20220601101140.170504-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 version 4, e.g. the instance on SDM845 between CPU and Last Level Cache Controller. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Acked-by: Georgi Djakov --- .../interconnect/qcom,sdm845-cpu-bwmon.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml new file mode 100644 index 000000000000..8c82e06ee432 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,sdm845-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: + enum: + - qcom,sdm845-cpu-bwmon # BWMON v4 + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: ddr + - const: l3c + + 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 + - interconnect-names + - interrupts + - operating-points-v2 + - opp-table + - reg + +additionalProperties: false + +examples: + - | + #include + #include + #include + + pmu@1436400 { + compatible = "qcom,sdm845-cpu-bwmon"; + reg = <0x01436400 0x600>; + + interrupts = ; + + interconnects = <&gladiator_noc MASTER_APPSS_PROC 3 &mem_noc SLAVE_EBI1 3>, + <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + interconnect-names = "ddr", "l3c"; + + operating-points-v2 = <&cpu_bwmon_opp_table>; + + cpu_bwmon_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-0 { + opp-peak-kBps = <800000 4800000>; + }; + opp-1 { + opp-peak-kBps = <1804000 9216000>; + }; + opp-2 { + opp-peak-kBps = <2188000 11980800>; + }; + opp-3 { + opp-peak-kBps = <3072000 15052800>; + }; + opp-4 { + opp-peak-kBps = <4068000 19353600>; + }; + opp-5 { + opp-peak-kBps = <5412000 20889600>; + }; + opp-6 { + opp-peak-kBps = <6220000 22425600>; + }; + opp-7 { + opp-peak-kBps = <7216000 25497600>; + }; + }; + }; -- 2.34.1