From patchwork Mon Nov 21 02:16:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiucheng Xu X-Patchwork-Id: 23516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1358368wrr; Sun, 20 Nov 2022 18:47:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6LaXHhwu1Hy78B8cXxxqtiDL6PUT7j+spW4a+0zOiWnpeozqKdBMwdGL+CKVOeEFlXfd6k X-Received: by 2002:a63:5a62:0:b0:476:ed2a:6215 with SMTP id k34-20020a635a62000000b00476ed2a6215mr3038159pgm.559.1668998819776; Sun, 20 Nov 2022 18:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668998819; cv=none; d=google.com; s=arc-20160816; b=dQDiVCJAkT2iw9EPjWalrItxeYKzENxwIklYfjved14Gq2BIYSA1BuCrEDXJbi5t9d AWgxZks7iPQ14XLYeW2POGYECYwhGXFO06Sso7D7/edvpFKvjlkqAdpguCNC7y+0Sz8j osn1pNge1gkIFyjiBTKAJRQ9Zx39++W2lVkfdjktBZVMWriFsPbjuEWJ8uba3g30MoYs 3IrkNK4iwCLmhP6us8skYMjmk04nD7z10Cb8mJ4aRZxHsHcqRpJNGuS/yj2GCao0YeB+ ZYJ3MLsJvq/pcI5SudAposDpWyIbP8ppoFsSy3VrqZnMN+0PJu7FZfr3e6dyhim98BZK 3POg== 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=oj9ttI1v26gvQTtB83HB0LPC/QVwxBH60QKogLdLf+U=; b=jNM9QMX8FLIbtZe+LwB4Xy0BqHRU9oOaCtULmjQujoDzkm6nWM9B1bREgHfZYdjTXL 3y0VnvZES9ZRPdvippPas2uaggyiGbKUHSM+Mzhecsm+dagU912VqEWqgYY/fucRoPcp ZfdDV/XIO7fB6K/5uCEqKD3eRXfhx6Wev6IOjVo/mxu+Zxsk68zpdjgZacojv6Iq5sKA OaD+OIcV9RUI6XcTtCl1mDxr9kKQcb1tHKKfhGC700YWkfVFMpvlDyWQ70rwES+fT9Im 2JhsoRkMaTVBf7IlCW3akjIpYyT5nZUvT85hqwpmdUBKIMEHm8CDAFqKh1uHfJoINWd0 pL2Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a63fb14000000b0046f6afe556bsi10404005pgh.651.2022.11.20.18.46.46; Sun, 20 Nov 2022 18:46:59 -0800 (PST) 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 S229845AbiKUCRk (ORCPT + 99 others); Sun, 20 Nov 2022 21:17:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbiKUCRd (ORCPT ); Sun, 20 Nov 2022 21:17:33 -0500 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8779627DE9; Sun, 20 Nov 2022 18:16:38 -0800 (PST) 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.13; Mon, 21 Nov 2022 10:16:35 +0800 From: Jiucheng Xu To: Jiucheng Xu , Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski CC: Jianxin Pan , Kelvin Zhang , Chris Healy , Chris Healy , Krzysztof Kozlowski , , , , Subject: [PATCH v12 3/3] dt-binding: perf: Add Amlogic DDR PMU Date: Mon, 21 Nov 2022 10:16:00 +0800 Message-ID: <20221121021602.3306998-3-jiucheng.xu@amlogic.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221121021602.3306998-1-jiucheng.xu@amlogic.com> References: <20221121021602.3306998-1-jiucheng.xu@amlogic.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750072106494237612?= X-GMAIL-MSGID: =?utf-8?q?1750072106494237612?= Add binding documentation for the Amlogic G12 series DDR performance monitor unit. Signed-off-by: Jiucheng Xu Reviewed-by: Krzysztof Kozlowski --- Changes v11 -> v12: - No change Changes v10 -> v11: - No change Changes v9 -> v10: - No change Changes v8 -> v9: - No change Changes v7 -> v8: - No change Changes v6 -> v7: - No change Changes v5 -> v6: - 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 | 54 +++++++++++++++++++ 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 b76c4deddf22..8b102a928081 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1099,6 +1099,7 @@ L: linux-amlogic@lists.infradead.org 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/