Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp206115rwe; Wed, 31 Aug 2022 20:00:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+lwodrp0R7e3Dw+FGYu7W6+j0QBMsJnnRxvN0+oLyf4UYAl0e/GSrBIQ9HEqhWfWz5fjM X-Received: by 2002:a05:6402:51cb:b0:448:3f0c:4085 with SMTP id r11-20020a05640251cb00b004483f0c4085mr17740543edd.170.1662001236935; Wed, 31 Aug 2022 20:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662001236; cv=none; d=google.com; s=arc-20160816; b=S0ZseDZmwoTj3CeBXYwfslywNw9NbrfzdQfkBFZybTDQ2ive2A6dmcidtzVACMeqw+ cd2OiylRdnqxeNKBFZX6kJUXsF45iIJmkn7GoLqxvRG/esfg+JoVpR3xdjxh73HB8GGi ZrytYS1ZcPgu+/71+f1kLeuAt3KRF765mw97tPBvuxWvnks/DrmDV5lfiLbuBB9uVZ+F WxrzjJU31EVpRtH1ltmHKW4uuiGl1kzg6MOH+cJA0+YrtP/xzYRx/83BHfVfslICtiCT 3PyqQOhA0XGGYUE7cfSaorTS1UoLnhV2nVE8u4aJ1dBxT0XxWhcIsVBy9aZWtYEXPYWO NpQQ== 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; bh=iNErgYD0RAgNO4RiUuvJ+5KAxu+mNIBRNQrK5B/JPZk=; b=tfNdtl76rNUK8IYYg1Ed9gQ9xz0hvaec2qas5smcjQ9rWDFpdnU9NItDpQgjLXe2yG xC1rTXoq3WBvtHLgbwtLIF3qePS9kurVBGJx4x8BpKe5xmGwvSb5tT2oJPx5CPUwU4pP kUxyqEBxLz4DjAKQ+IB3zdF1/THlfl/qQdTmTj3mGUHp97G8MslU2GYv3xVq6xvO7FUi QY3qWztT+o5D2qHdk9UcLVX/WX22orgTQ+QakGZpJReweiAsJD/lgQ6pri1UT/giePAk M88nMPwtnsEdKTRJ6QWZVeou2B4KxS8dy1e/CzjrVlBNQ2kRpSxHlvaw2oVOmesJZb6R 2Cpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm22-20020a170907949600b00734be0ce32esi10282373ejc.688.2022.08.31.20.00.09; Wed, 31 Aug 2022 20:00:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232919AbiIACqM (ORCPT + 99 others); Wed, 31 Aug 2022 22:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232791AbiIACqD (ORCPT ); Wed, 31 Aug 2022 22:46:03 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65380F4935; Wed, 31 Aug 2022 19:45:57 -0700 (PDT) Received: from droid01-xa.amlogic.com (10.88.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.9; Thu, 1 Sep 2022 10:45:47 +0800 From: Jiucheng Xu To: , , , CC: Rob Herring , Krzysztof Kozlowski , Will Deacon , Mark Rutland , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Chris Healy , Jiucheng Xu , Krzysztof Kozlowski Subject: [PATCH v6 3/4] dt-binding: perf: Add Amlogic DDR PMU Date: Thu, 1 Sep 2022 10:45:25 +0800 Message-ID: <20220901024526.2833232-3-jiucheng.xu@amlogic.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220901024526.2833232-1-jiucheng.xu@amlogic.com> References: <20220901024526.2833232-1-jiucheng.xu@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.88.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 binding documentation for the Amlogic G12 series DDR performance monitor unit. Signed-off-by: Jiucheng Xu Reviewed-by: Krzysztof Kozlowski --- Changes v6 -> v5: - remove blank line Changes v4 -> v5: - Remove "items" in compatible since have only one item - Condense description of reg - Rename node - Split one reg into two reg items. - Binding go first Changes v3 -> v4: - Fix "$id: relative path/filename doesn't match actual path or filename" warning Changes v2 -> v3: - Remove oneOf - Add descriptions - Fix compiling warning Changes v1 -> v2: - Rename file, from aml_ddr_pmu.yaml to amlogic,g12_ddr_pmu.yaml - Delete "model", "dmc_nr", "chann_nr" new properties - Fix compiling error --- .../bindings/perf/amlogic,g12-ddr-pmu.yaml | 55 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml diff --git a/Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml b/Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml new file mode 100644 index 000000000000..50f46a6898b1 --- /dev/null +++ b/Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/perf/amlogic,g12-ddr-pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic G12 DDR performance monitor + +maintainers: + - Jiucheng Xu + +description: | + Amlogic G12 series SoC integrate DDR bandwidth monitor. + A timer is inside and can generate interrupt when timeout. + The bandwidth is counted in the timer ISR. Different platform + has different subset of event format attribute. + +properties: + compatible: + enum: + - amlogic,g12a-ddr-pmu + - amlogic,g12b-ddr-pmu + - amlogic,sm1-ddr-pmu + + reg: + items: + - description: DMC bandwidth register space. + - description: DMC PLL register space. + + interrupts: + items: + - description: The IRQ of the inside timer timeout. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + pmu { + #address-cells=<2>; + #size-cells=<2>; + + pmu@ff638000 { + compatible = "amlogic,g12a-ddr-pmu"; + reg = <0x0 0xff638000 0x0 0x100>, + <0x0 0xff638c00 0x0 0x100>; + interrupts = ; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8ee68e699e6d..67c2c9e8c4ea 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1055,6 +1055,7 @@ M: Jiucheng Xu S: Supported W: http://www.amlogic.com F: Documentation/admin-guide/perf/meson-ddr-pmu.rst +F: Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml F: drivers/perf/amlogic/ F: include/soc/amlogic/ -- 2.25.1