Skip to content

Commit 7fd6960

Browse files
saschahauerchanwoochoi
authored andcommitted
dt-bindings: devfreq: event: convert Rockchip DFI binding to yaml
Convert the Rockchip DFI binding to yaml. Link: https://lore.kernel.org/all/[email protected]/ Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 481d97b commit 7fd6960

File tree

3 files changed

+62
-19
lines changed

3 files changed

+62
-19
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/devfreq/event/rockchip,dfi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Rockchip DFI
8+
9+
maintainers:
10+
- Sascha Hauer <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- rockchip,rk3399-dfi
16+
17+
clocks:
18+
maxItems: 1
19+
20+
clock-names:
21+
items:
22+
- const: pclk_ddr_mon
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
reg:
28+
maxItems: 1
29+
30+
rockchip,pmu:
31+
$ref: /schemas/types.yaml#/definitions/phandle
32+
description:
33+
Phandle to the syscon managing the "PMU general register files".
34+
35+
required:
36+
- compatible
37+
- clocks
38+
- clock-names
39+
- interrupts
40+
- reg
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/interrupt-controller/arm-gic.h>
47+
#include <dt-bindings/clock/rk3308-cru.h>
48+
49+
bus {
50+
#address-cells = <2>;
51+
#size-cells = <2>;
52+
53+
dfi: dfi@ff630000 {
54+
compatible = "rockchip,rk3399-dfi";
55+
reg = <0x00 0xff630000 0x00 0x4000>;
56+
interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>;
57+
rockchip,pmu = <&pmugrf>;
58+
clocks = <&cru PCLK_DDR_MON>;
59+
clock-names = "pclk_ddr_mon";
60+
};
61+
};

Documentation/devicetree/bindings/devfreq/event/rockchip-dfi.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

Documentation/devicetree/bindings/memory-controllers/rockchip,rk3399-dmc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ properties:
1818
$ref: /schemas/types.yaml#/definitions/phandle
1919
description:
2020
Node to get DDR loading. Refer to
21-
Documentation/devicetree/bindings/devfreq/event/rockchip-dfi.txt.
21+
Documentation/devicetree/bindings/devfreq/event/rockchip,dfi.yaml.
2222

2323
clocks:
2424
maxItems: 1

0 commit comments

Comments
 (0)