From mboxrd@z Thu Jan 1 00:00:00 1970 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 39DB3C433F5 for ; Mon, 2 May 2022 17:41:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386662AbiEBRoj (ORCPT ); Mon, 2 May 2022 13:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244279AbiEBRob (ORCPT ); Mon, 2 May 2022 13:44:31 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8029E2BC4 for ; Mon, 2 May 2022 10:41:00 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id j6so29055831ejc.13 for ; Mon, 02 May 2022 10:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=1W5zUO25QYJDYm48XI9iv2r7F+nu9wTwCVMIXiaenyo=; b=kMOGIerUlb3HpXuBAaw/lID827I31KbK2l9E10nZIUvHPPXSq9JEg+darQjC98n5oF R+t4Jx9tf3GFAsnPR8OUACLd+44Oubm7Vfa982KmngRIgGq0baPLO2gQOuXIL9YqCaUO 5xJxzSQ2vbVlnytaVEe7RD+xxXfB6d0f4tGCr3aKyTEqEeofrlM1vvsxazJ6fuvUbskk Cb+mi1OIulzayDjzjV5RFyEzGkzcSmTxqgiKNlixrOyQpQhQG1E1S/RmaKdqa5otyPAh oG+L6isfO5+XujQlkgqcyEvPMD1SMRyjUtVGFh4PkDEGj5e0OP1jDkNPF814Fms+/Hl0 2QIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1W5zUO25QYJDYm48XI9iv2r7F+nu9wTwCVMIXiaenyo=; b=ZpZvmIRf1FWmg+hyKxEiDaBPkTRf4186+HPFmKKwxkeJ/MYjOaKM2cMV038DI+WrMJ AR3fFuM3lBbjTndtilwY3ep1ORtbQIizwn3/pHLZZ8Gkv5JqVx4mDpFJqxUXdr4Pagze BuuMdvTYg43qRDnMkq18eQCTaSOKWVzZtJlY+oVKhBBkIy3u7c9DpWmF8RWwfBNIeA79 6zBUtXeu5glawom1xr42IPZf1Ll5CSjYxPD+7PL+oPcoaHan6NVHZSuHI3o2MeSonmU8 wJ0qE84yExPS+hS+GYFkrJ45VS68/JwzHZqbOqdbJrRztJ4zY7YTu8rAX8tBwYlG+kX3 PU8A== X-Gm-Message-State: AOAM5311EKjeA01yF2vjdTcjDT/2r5Y0zbaVvJdMeYbN7++iGjoLv7l2 AT4PSfsSEcxgfX8plixDdiUWVg== X-Google-Smtp-Source: ABdhPJxuf2r3ulY9Xs12BKmEwrFywSFpVtuRQmD/odAKd+JmlEVobu4mcdYLNjSZBcwrV7m06rY5iw== X-Received: by 2002:a17:907:d09:b0:6e8:3eef:3192 with SMTP id gn9-20020a1709070d0900b006e83eef3192mr11913430ejc.122.1651513259100; Mon, 02 May 2022 10:40:59 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n9-20020aa7c689000000b0042617ba639csm6908547edq.38.2022.05.02.10.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 10:40:58 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: interconnect: qcom,sdm845-cpu-bwmon: add BWMON device Date: Mon, 2 May 2022 19:40:43 +0200 Message-Id: <20220502174046.139234-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220502174046.139234-1-krzysztof.kozlowski@linaro.org> References: <20220502174046.139234-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../interconnect/qcom,sdm845-cpu-bwmon.yaml | 105 ++++++++++++++++++ 1 file changed, 105 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..c9b68ca87548 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,sdm845-cpu-bwmon.yaml @@ -0,0 +1,105 @@ +# 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-avg-kBps = <800000 4800000>; + }; + opp-1 { + opp-peak-kBps = <1804000 9216000>; + opp-avg-kBps = <1804000 9216000>; + }; + opp-2 { + opp-peak-kBps = <2188000 11980800>; + opp-avg-kBps = <2188000 11980800>; + }; + opp-3 { + opp-peak-kBps = <3072000 15052800>; + opp-avg-kBps = <3072000 15052800>; + }; + opp-4 { + opp-peak-kBps = <4068000 19353600>; + opp-avg-kBps = <4068000 19353600>; + }; + opp-5 { + opp-peak-kBps = <5412000 20889600>; + opp-avg-kBps = <5412000 20889600>; + }; + opp-6 { + opp-peak-kBps = <6220000 22425600>; + opp-avg-kBps = <6220000 22425600>; + }; + opp-7 { + opp-peak-kBps = <7216000 25497600>; + opp-avg-kBps = <7216000 25497600>; + }; + }; + }; -- 2.32.0