Skip to content

Commit fd9678d

Browse files
Jiucheng Xuwilldeacon
authored andcommitted
dt-binding: perf: Add Amlogic DDR PMU
Add binding documentation for the Amlogic G12 series DDR performance monitor unit. Signed-off-by: Jiucheng Xu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 537216e commit fd9678d

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/perf/amlogic,g12-ddr-pmu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amlogic G12 DDR performance monitor
8+
9+
maintainers:
10+
- Jiucheng Xu <[email protected]>
11+
12+
description: |
13+
Amlogic G12 series SoC integrate DDR bandwidth monitor.
14+
A timer is inside and can generate interrupt when timeout.
15+
The bandwidth is counted in the timer ISR. Different platform
16+
has different subset of event format attribute.
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- amlogic,g12a-ddr-pmu
22+
- amlogic,g12b-ddr-pmu
23+
- amlogic,sm1-ddr-pmu
24+
25+
reg:
26+
items:
27+
- description: DMC bandwidth register space.
28+
- description: DMC PLL register space.
29+
30+
interrupts:
31+
items:
32+
- description: The IRQ of the inside timer timeout.
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
39+
additionalProperties: false
40+
41+
examples:
42+
- |
43+
#include <dt-bindings/interrupt-controller/arm-gic.h>
44+
pmu {
45+
#address-cells=<2>;
46+
#size-cells=<2>;
47+
48+
pmu@ff638000 {
49+
compatible = "amlogic,g12a-ddr-pmu";
50+
reg = <0x0 0xff638000 0x0 0x100>,
51+
<0x0 0xff638c00 0x0 0x100>;
52+
interrupts = <GIC_SPI 52 IRQ_TYPE_EDGE_RISING>;
53+
};
54+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ L: [email protected]
10991099
S: Supported
11001100
W: http://www.amlogic.com
11011101
F: Documentation/admin-guide/perf/meson-ddr-pmu.rst
1102+
F: Documentation/devicetree/bindings/perf/amlogic,g12-ddr-pmu.yaml
11021103
F: drivers/perf/amlogic/
11031104
F: include/soc/amlogic/
11041105

0 commit comments

Comments
 (0)