Skip to content

Commit e629bf4

Browse files
AngeloGioacchino Del Regnowens
authored andcommitted
dt-bindings: clock: mediatek: Add clock driver bindings for MT6795
Add the bindings for the clock drivers of the MediaTek Helio X10 MT6795 SoC. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent f098c08 commit e629bf4

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt6795-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek Functional Clock Controller for MT6795
8+
9+
maintainers:
10+
- AngeloGioacchino Del Regno <[email protected]>
11+
- Chun-Jie Chen <[email protected]>
12+
13+
description: |
14+
The clock architecture in MediaTek like below
15+
PLLs -->
16+
dividers -->
17+
muxes
18+
-->
19+
clock gate
20+
21+
The devices provide clock gate control in different IP blocks.
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- mediatek,mt6795-mfgcfg
27+
- mediatek,mt6795-vdecsys
28+
- mediatek,mt6795-vencsys
29+
30+
reg:
31+
maxItems: 1
32+
33+
'#clock-cells':
34+
const: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- '#clock-cells'
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
soc {
46+
#address-cells = <2>;
47+
#size-cells = <2>;
48+
49+
mfgcfg: clock-controller@13000000 {
50+
compatible = "mediatek,mt6795-mfgcfg";
51+
reg = <0 0x13000000 0 0x1000>;
52+
#clock-cells = <1>;
53+
};
54+
55+
vdecsys: clock-controller@16000000 {
56+
compatible = "mediatek,mt6795-vdecsys";
57+
reg = <0 0x16000000 0 0x1000>;
58+
#clock-cells = <1>;
59+
};
60+
61+
vencsys: clock-controller@18000000 {
62+
compatible = "mediatek,mt6795-vencsys";
63+
reg = <0 0x18000000 0 0x1000>;
64+
#clock-cells = <1>;
65+
};
66+
};
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 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt6795-sys-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek System Clock Controller for MT6795
8+
9+
maintainers:
10+
- AngeloGioacchino Del Regno <[email protected]>
11+
- Chun-Jie Chen <[email protected]>
12+
13+
description:
14+
The Mediatek system clock controller provides various clocks and system
15+
configuration like reset and bus protection on MT6795.
16+
17+
properties:
18+
compatible:
19+
items:
20+
- enum:
21+
- mediatek,mt6795-apmixedsys
22+
- mediatek,mt6795-infracfg
23+
- mediatek,mt6795-pericfg
24+
- mediatek,mt6795-topckgen
25+
- const: syscon
26+
27+
reg:
28+
maxItems: 1
29+
30+
'#clock-cells':
31+
const: 1
32+
33+
'#reset-cells':
34+
const: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- '#clock-cells'
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
soc {
46+
#address-cells = <2>;
47+
#size-cells = <2>;
48+
49+
topckgen: clock-controller@10000000 {
50+
compatible = "mediatek,mt6795-topckgen", "syscon";
51+
reg = <0 0x10000000 0 0x1000>;
52+
#clock-cells = <1>;
53+
};
54+
};

0 commit comments

Comments
 (0)