Skip to content

Commit 1086a53

Browse files
garminchangbebarino
authored andcommitted
dt-bindings: clock: mediatek: Add new MT8188 clock
Add the new binding documentation for system clock and functional clock on MediaTek MT8188. Signed-off-by: Garmin.Chang <Garmin.Chang@mediatek.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230331123621.16167-2-Garmin.Chang@mediatek.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 9271700 commit 1086a53

3 files changed

Lines changed: 852 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt8188-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek Functional Clock Controller for MT8188
8+
9+
maintainers:
10+
- Garmin Chang <garmin.chang@mediatek.com>
11+
12+
description: |
13+
The clock architecture in MediaTek like below
14+
PLLs -->
15+
dividers -->
16+
muxes
17+
-->
18+
clock gate
19+
20+
The devices provide clock gate control in different IP blocks.
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- mediatek,mt8188-adsp-audio26m
26+
- mediatek,mt8188-camsys
27+
- mediatek,mt8188-camsys-rawa
28+
- mediatek,mt8188-camsys-rawb
29+
- mediatek,mt8188-camsys-yuva
30+
- mediatek,mt8188-camsys-yuvb
31+
- mediatek,mt8188-ccusys
32+
- mediatek,mt8188-imgsys
33+
- mediatek,mt8188-imgsys-wpe1
34+
- mediatek,mt8188-imgsys-wpe2
35+
- mediatek,mt8188-imgsys-wpe3
36+
- mediatek,mt8188-imgsys1-dip-nr
37+
- mediatek,mt8188-imgsys1-dip-top
38+
- mediatek,mt8188-imp-iic-wrap-c
39+
- mediatek,mt8188-imp-iic-wrap-en
40+
- mediatek,mt8188-imp-iic-wrap-w
41+
- mediatek,mt8188-ipesys
42+
- mediatek,mt8188-mfgcfg
43+
- mediatek,mt8188-vdecsys
44+
- mediatek,mt8188-vdecsys-soc
45+
- mediatek,mt8188-vencsys
46+
- mediatek,mt8188-vppsys0
47+
- mediatek,mt8188-vppsys1
48+
- mediatek,mt8188-wpesys
49+
- mediatek,mt8188-wpesys-vpp0
50+
51+
reg:
52+
maxItems: 1
53+
54+
'#clock-cells':
55+
const: 1
56+
57+
required:
58+
- compatible
59+
- reg
60+
- '#clock-cells'
61+
62+
additionalProperties: false
63+
64+
examples:
65+
- |
66+
clock-controller@11283000 {
67+
compatible = "mediatek,mt8188-imp-iic-wrap-c";
68+
reg = <0x11283000 0x1000>;
69+
#clock-cells = <1>;
70+
};
71+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/mediatek,mt8188-sys-clock.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek System Clock Controller for MT8188
8+
9+
maintainers:
10+
- Garmin Chang <garmin.chang@mediatek.com>
11+
12+
description: |
13+
The clock architecture in MediaTek like below
14+
PLLs -->
15+
dividers -->
16+
muxes
17+
-->
18+
clock gate
19+
20+
The apmixedsys provides most of PLLs which generated from SoC 26m.
21+
The topckgen provides dividers and muxes which provide the clock source to other IP blocks.
22+
The infracfg_ao provides clock gate in peripheral and infrastructure IP blocks.
23+
The mcusys provides mux control to select the clock source in AP MCU.
24+
The device nodes also provide the system control capacity for configuration.
25+
26+
properties:
27+
compatible:
28+
items:
29+
- enum:
30+
- mediatek,mt8188-apmixedsys
31+
- mediatek,mt8188-infracfg-ao
32+
- mediatek,mt8188-pericfg-ao
33+
- mediatek,mt8188-topckgen
34+
- const: syscon
35+
36+
reg:
37+
maxItems: 1
38+
39+
'#clock-cells':
40+
const: 1
41+
42+
required:
43+
- compatible
44+
- reg
45+
- '#clock-cells'
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
clock-controller@10000000 {
52+
compatible = "mediatek,mt8188-topckgen", "syscon";
53+
reg = <0x10000000 0x1000>;
54+
#clock-cells = <1>;
55+
};

0 commit comments

Comments
 (0)