Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1785107imn; Sun, 31 Jul 2022 23:06:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR7VN5q5wyRbG+3pP+DyLGCMlraQDacEQ1B7FaWggy1jAkCODJFtMLtEC0Yakytcv67yauY0 X-Received: by 2002:a17:902:8209:b0:16c:2da4:e734 with SMTP id x9-20020a170902820900b0016c2da4e734mr15152600pln.43.1659333989497; Sun, 31 Jul 2022 23:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659333989; cv=none; d=google.com; s=arc-20160816; b=KmkflBxWp9ed+0fyxy840CiWqGz8wxN7U0/x6T4iQZf/4T9bb1koXRbOgHAwALS0FW /PuLByp2VrVhqWyseOPlKwFzRq+wkEagluOPCoTUOaCxAznTUjOSrAtrl1741M6u0YqX mr2rANDi00lJFtnAwMtInVNLDlqxrexlNaw1UKva2N5uKAl9pAA5Ti5fJ/bDbx5Q/sHx 24GHK5LCPCEVDImC6jkHC/OxELDf9ORnpe6JGIA+oFaXnYPOpBJ6uKcZJwP29XRkZu2W FbTeuvkXzjjjZwThRrgDrrDxw9tgt0f/LsWh7sNDfJUsqM2Y4cvv2n8ziCgOS2ENqUYa FT4g== 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=sUcWm9sRFd+ANvqXFwOgxowdM47iTQIfmPSEyx7Y69w=; b=xHVRHeK3oUrVYtLc6Gsqr9Iij9SQQGo3dNdJEwjy+tukVXZQFgaoN8Z9Bw9LbguP9l T7PqnEx46xFV1MTOInS394WlLvswSs9v60vYAz3e8tWRNLZK2motSPrF01oZjpoiuFNo yNQ46pNxkNOZyKuRe/y89mwkYeL3CPfzsdItZM9OPThEov7z8bTx4XpfiszbRV40o6ka 6B5GVDYMmdsNzkf87jWOrfDjD2L4jT5SA1L2nBCArWNPOkLrFM2PuaiXKTc7o0Ra/C2/ nUJDnu4fzW4W+8nhTdp36BPs3xYgt5K4+8Eaxdy96T+H0S/BTg/fhS28i42PKciUB8sF bJbg== 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 b12-20020a170902b60c00b0016c45460800si10403927pls.421.2022.07.31.23.06.14; Sun, 31 Jul 2022 23:06:29 -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 S239792AbiHAGBP (ORCPT + 99 others); Mon, 1 Aug 2022 02:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239739AbiHAGBG (ORCPT ); Mon, 1 Aug 2022 02:01:06 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69FBC1057B; Sun, 31 Jul 2022 23:01:05 -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; Mon, 1 Aug 2022 14:00:57 +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 Subject: [PATCH v3 4/4] dt-binding: perf: Add Amlogic DDR PMU Date: Mon, 1 Aug 2022 14:00:49 +0800 Message-ID: <20220801060049.1655177-4-jiucheng.xu@amlogic.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220801060049.1655177-1-jiucheng.xu@amlogic.com> References: <20220801060049.1655177-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 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 --- 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 | 51 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 52 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..961656d4db6e --- /dev/null +++ b/Documentation/devicetree/bindings/perf/amlogic,g12_ddr_pmu.yaml @@ -0,0 +1,51 @@ +# 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. + +properties: + compatible: + items: + - enum: + - amlogic,g12b-ddr-pmu + - amlogic,g12a-ddr-pmu + - amlogic,sm1-ddr-pmu + + reg: + items: + - description: Physical address of DMC bandwidth register + and size of the configuration address space. + - description: Physical address of DMC PLL register and + size of the configuration address space. + + interrupts: + items: + - description: The IRQ of the inside timer timeout. + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + ddr_pmu@ff638000 { + compatible = "amlogic,g12a-ddr-pmu"; + reg = <0xff638000 0x100 + 0xff638c00 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