Skip to content

Commit e77c635

Browse files
Rafał Miłeckibebarino
authored andcommitted
dt-bindings: clock: mediatek: convert PCIESYS to the json-schema clock
This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Dropped "syscon" as it was incorrectly used 3. Adjusted nodename, "compatible" and "reg" in example Signed-off-by: Rafał Miłecki <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 1e36599 commit e77c635

File tree

2 files changed

+45
-25
lines changed

2 files changed

+45
-25
lines changed

Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt7622-pciesys.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek PCIESYS clock and reset controller
8+
9+
description:
10+
The MediaTek PCIESYS controller provides various clocks to the system.
11+
12+
maintainers:
13+
- Matthias Brugger <[email protected]>
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- mediatek,mt7622-pciesys
19+
- mediatek,mt7629-pciesys
20+
21+
reg:
22+
maxItems: 1
23+
24+
"#clock-cells":
25+
const: 1
26+
description: The available clocks are defined in dt-bindings/clock/mt*-clk.h
27+
28+
"#reset-cells":
29+
const: 1
30+
31+
required:
32+
- reg
33+
- "#clock-cells"
34+
- "#reset-cells"
35+
36+
additionalProperties: false
37+
38+
examples:
39+
- |
40+
clock-controller@1a100800 {
41+
compatible = "mediatek,mt7622-pciesys";
42+
reg = <0x1a100800 0x1000>;
43+
#clock-cells = <1>;
44+
#reset-cells = <1>;
45+
};

0 commit comments

Comments
 (0)