Skip to content

Commit ea1cca0

Browse files
Tooniisbebarino
authored andcommitted
dt-bindings: clock: Add MediaTek MT6735 clock and reset bindings
Add clock definitions for the main clock and reset controllers of MT6735 (apmixedsys, topckgen, infracfg and pericfg). Signed-off-by: Yassine Oudjana <[email protected]> Reviewed-by: Conor Dooley <[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 98619dc commit ea1cca0

11 files changed

+239
-5
lines changed

Documentation/devicetree/bindings/clock/mediatek,apmixedsys.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ maintainers:
1212

1313
description:
1414
The Mediatek apmixedsys controller provides PLLs to the system.
15-
The clock values can be found in <dt-bindings/clock/mt*-clk.h>.
15+
The clock values can be found in <dt-bindings/clock/mt*-clk.h>
16+
and <dt-bindings/clock/mediatek,mt*-apmixedsys.h>.
1617

1718
properties:
1819
compatible:
@@ -34,6 +35,7 @@ properties:
3435
- enum:
3536
- mediatek,mt2701-apmixedsys
3637
- mediatek,mt2712-apmixedsys
38+
- mediatek,mt6735-apmixedsys
3739
- mediatek,mt6765-apmixedsys
3840
- mediatek,mt6779-apmixed
3941
- mediatek,mt6795-apmixedsys

Documentation/devicetree/bindings/clock/mediatek,infracfg.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ maintainers:
1111

1212
description:
1313
The Mediatek infracfg controller provides various clocks and reset outputs
14-
to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h>,
15-
and reset values in <dt-bindings/reset/mt*-reset.h> and
16-
<dt-bindings/reset/mt*-resets.h>.
14+
to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h>
15+
and <dt-bindings/clock/mediatek,mt*-infracfg.h>, and reset values in
16+
<dt-bindings/reset/mt*-reset.h>, <dt-bindings/reset/mt*-resets.h> and
17+
<dt-bindings/reset/mediatek,mt*-infracfg.h>.
1718

1819
properties:
1920
compatible:
@@ -22,6 +23,7 @@ properties:
2223
- enum:
2324
- mediatek,mt2701-infracfg
2425
- mediatek,mt2712-infracfg
26+
- mediatek,mt6735-infracfg
2527
- mediatek,mt6765-infracfg
2628
- mediatek,mt6795-infracfg
2729
- mediatek,mt6779-infracfg_ao

Documentation/devicetree/bindings/clock/mediatek,pericfg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
- enum:
2121
- mediatek,mt2701-pericfg
2222
- mediatek,mt2712-pericfg
23+
- mediatek,mt6735-pericfg
2324
- mediatek,mt6765-pericfg
2425
- mediatek,mt6795-pericfg
2526
- mediatek,mt7622-pericfg

Documentation/devicetree/bindings/clock/mediatek,topckgen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ maintainers:
1212

1313
description:
1414
The Mediatek topckgen controller provides various clocks to the system.
15-
The clock values can be found in <dt-bindings/clock/mt*-clk.h>.
15+
The clock values can be found in <dt-bindings/clock/mt*-clk.h> and
16+
<dt-bindings/clock/mediatek,mt*-topckgen.h>.
1617

1718
properties:
1819
compatible:
@@ -31,6 +32,7 @@ properties:
3132
- enum:
3233
- mediatek,mt2701-topckgen
3334
- mediatek,mt2712-topckgen
35+
- mediatek,mt6735-topckgen
3436
- mediatek,mt6765-topckgen
3537
- mediatek,mt6779-topckgen
3638
- mediatek,mt6795-topckgen

MAINTAINERS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14528,6 +14528,18 @@ S: Maintained
1452814528
F: Documentation/devicetree/bindings/mmc/mtk-sd.yaml
1452914529
F: drivers/mmc/host/mtk-sd.c
1453014530

14531+
MEDIATEK MT6735 CLOCK & RESET DRIVERS
14532+
M: Yassine Oudjana <[email protected]>
14533+
14534+
L: [email protected] (moderated for non-subscribers)
14535+
S: Maintained
14536+
F: include/dt-bindings/clock/mediatek,mt6735-apmixedsys.h
14537+
F: include/dt-bindings/clock/mediatek,mt6735-infracfg.h
14538+
F: include/dt-bindings/clock/mediatek,mt6735-pericfg.h
14539+
F: include/dt-bindings/clock/mediatek,mt6735-topckgen.h
14540+
F: include/dt-bindings/reset/mediatek,mt6735-infracfg.h
14541+
F: include/dt-bindings/reset/mediatek,mt6735-pericfg.h
14542+
1453114543
MEDIATEK MT76 WIRELESS LAN DRIVER
1453214544
M: Felix Fietkau <[email protected]>
1453314545
M: Lorenzo Bianconi <[email protected]>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_CLK_MT6735_APMIXEDSYS_H
4+
#define _DT_BINDINGS_CLK_MT6735_APMIXEDSYS_H
5+
6+
#define CLK_APMIXED_ARMPLL 0
7+
#define CLK_APMIXED_MAINPLL 1
8+
#define CLK_APMIXED_UNIVPLL 2
9+
#define CLK_APMIXED_MMPLL 3
10+
#define CLK_APMIXED_MSDCPLL 4
11+
#define CLK_APMIXED_VENCPLL 5
12+
#define CLK_APMIXED_TVDPLL 6
13+
#define CLK_APMIXED_APLL1 7
14+
#define CLK_APMIXED_APLL2 8
15+
16+
#endif
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_CLK_MT6735_INFRACFG_H
4+
#define _DT_BINDINGS_CLK_MT6735_INFRACFG_H
5+
6+
#define CLK_INFRA_DBG 0
7+
#define CLK_INFRA_GCE 1
8+
#define CLK_INFRA_TRBG 2
9+
#define CLK_INFRA_CPUM 3
10+
#define CLK_INFRA_DEVAPC 4
11+
#define CLK_INFRA_AUDIO 5
12+
#define CLK_INFRA_GCPU 6
13+
#define CLK_INFRA_L2C_SRAM 7
14+
#define CLK_INFRA_M4U 8
15+
#define CLK_INFRA_CLDMA 9
16+
#define CLK_INFRA_CONNMCU_BUS 10
17+
#define CLK_INFRA_KP 11
18+
#define CLK_INFRA_APXGPT 12
19+
#define CLK_INFRA_SEJ 13
20+
#define CLK_INFRA_CCIF0_AP 14
21+
#define CLK_INFRA_CCIF1_AP 15
22+
#define CLK_INFRA_PMIC_SPI 16
23+
#define CLK_INFRA_PMIC_WRAP 17
24+
25+
#endif
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_CLK_MT6735_PERICFG_H
4+
#define _DT_BINDINGS_CLK_MT6735_PERICFG_H
5+
6+
#define CLK_PERI_DISP_PWM 0
7+
#define CLK_PERI_THERM 1
8+
#define CLK_PERI_PWM1 2
9+
#define CLK_PERI_PWM2 3
10+
#define CLK_PERI_PWM3 4
11+
#define CLK_PERI_PWM4 5
12+
#define CLK_PERI_PWM5 6
13+
#define CLK_PERI_PWM6 7
14+
#define CLK_PERI_PWM7 8
15+
#define CLK_PERI_PWM 9
16+
#define CLK_PERI_USB0 10
17+
#define CLK_PERI_IRDA 11
18+
#define CLK_PERI_APDMA 12
19+
#define CLK_PERI_MSDC30_0 13
20+
#define CLK_PERI_MSDC30_1 14
21+
#define CLK_PERI_MSDC30_2 15
22+
#define CLK_PERI_MSDC30_3 16
23+
#define CLK_PERI_UART0 17
24+
#define CLK_PERI_UART1 18
25+
#define CLK_PERI_UART2 19
26+
#define CLK_PERI_UART3 20
27+
#define CLK_PERI_UART4 21
28+
#define CLK_PERI_BTIF 22
29+
#define CLK_PERI_I2C0 23
30+
#define CLK_PERI_I2C1 24
31+
#define CLK_PERI_I2C2 25
32+
#define CLK_PERI_I2C3 26
33+
#define CLK_PERI_AUXADC 27
34+
#define CLK_PERI_SPI0 28
35+
#define CLK_PERI_IRTX 29
36+
37+
#endif
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_CLK_MT6735_TOPCKGEN_H
4+
#define _DT_BINDINGS_CLK_MT6735_TOPCKGEN_H
5+
6+
#define CLK_TOP_AD_SYS_26M_CK 0
7+
#define CLK_TOP_CLKPH_MCK_O 1
8+
#define CLK_TOP_DMPLL 2
9+
#define CLK_TOP_DPI_CK 3
10+
#define CLK_TOP_WHPLL_AUDIO_CK 4
11+
12+
#define CLK_TOP_SYSPLL_D2 5
13+
#define CLK_TOP_SYSPLL_D3 6
14+
#define CLK_TOP_SYSPLL_D5 7
15+
#define CLK_TOP_SYSPLL1_D2 8
16+
#define CLK_TOP_SYSPLL1_D4 9
17+
#define CLK_TOP_SYSPLL1_D8 10
18+
#define CLK_TOP_SYSPLL1_D16 11
19+
#define CLK_TOP_SYSPLL2_D2 12
20+
#define CLK_TOP_SYSPLL2_D4 13
21+
#define CLK_TOP_SYSPLL3_D2 14
22+
#define CLK_TOP_SYSPLL3_D4 15
23+
#define CLK_TOP_SYSPLL4_D2 16
24+
#define CLK_TOP_SYSPLL4_D4 17
25+
#define CLK_TOP_UNIVPLL_D2 18
26+
#define CLK_TOP_UNIVPLL_D3 19
27+
#define CLK_TOP_UNIVPLL_D5 20
28+
#define CLK_TOP_UNIVPLL_D26 21
29+
#define CLK_TOP_UNIVPLL1_D2 22
30+
#define CLK_TOP_UNIVPLL1_D4 23
31+
#define CLK_TOP_UNIVPLL1_D8 24
32+
#define CLK_TOP_UNIVPLL2_D2 25
33+
#define CLK_TOP_UNIVPLL2_D4 26
34+
#define CLK_TOP_UNIVPLL2_D8 27
35+
#define CLK_TOP_UNIVPLL3_D2 28
36+
#define CLK_TOP_UNIVPLL3_D4 29
37+
#define CLK_TOP_MSDCPLL_D2 30
38+
#define CLK_TOP_MSDCPLL_D4 31
39+
#define CLK_TOP_MSDCPLL_D8 32
40+
#define CLK_TOP_MSDCPLL_D16 33
41+
#define CLK_TOP_VENCPLL_D3 34
42+
#define CLK_TOP_TVDPLL_D2 35
43+
#define CLK_TOP_TVDPLL_D4 36
44+
#define CLK_TOP_DMPLL_D2 37
45+
#define CLK_TOP_DMPLL_D4 38
46+
#define CLK_TOP_DMPLL_D8 39
47+
#define CLK_TOP_AD_SYS_26M_D2 40
48+
49+
#define CLK_TOP_AXI_SEL 41
50+
#define CLK_TOP_MEM_SEL 42
51+
#define CLK_TOP_DDRPHY_SEL 43
52+
#define CLK_TOP_MM_SEL 44
53+
#define CLK_TOP_PWM_SEL 45
54+
#define CLK_TOP_VDEC_SEL 46
55+
#define CLK_TOP_MFG_SEL 47
56+
#define CLK_TOP_CAMTG_SEL 48
57+
#define CLK_TOP_UART_SEL 49
58+
#define CLK_TOP_SPI_SEL 50
59+
#define CLK_TOP_USB20_SEL 51
60+
#define CLK_TOP_MSDC50_0_SEL 52
61+
#define CLK_TOP_MSDC30_0_SEL 53
62+
#define CLK_TOP_MSDC30_1_SEL 54
63+
#define CLK_TOP_MSDC30_2_SEL 55
64+
#define CLK_TOP_MSDC30_3_SEL 56
65+
#define CLK_TOP_AUDIO_SEL 57
66+
#define CLK_TOP_AUDINTBUS_SEL 58
67+
#define CLK_TOP_PMICSPI_SEL 59
68+
#define CLK_TOP_SCP_SEL 60
69+
#define CLK_TOP_ATB_SEL 61
70+
#define CLK_TOP_DPI0_SEL 62
71+
#define CLK_TOP_SCAM_SEL 63
72+
#define CLK_TOP_MFG13M_SEL 64
73+
#define CLK_TOP_AUD1_SEL 65
74+
#define CLK_TOP_AUD2_SEL 66
75+
#define CLK_TOP_IRDA_SEL 67
76+
#define CLK_TOP_IRTX_SEL 68
77+
#define CLK_TOP_DISPPWM_SEL 69
78+
79+
#endif
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_RESET_MT6735_INFRACFG_H
4+
#define _DT_BINDINGS_RESET_MT6735_INFRACFG_H
5+
6+
#define MT6735_INFRA_RST0_EMI_REG 0
7+
#define MT6735_INFRA_RST0_DRAMC0_AO 1
8+
#define MT6735_INFRA_RST0_AP_CIRQ_EINT 2
9+
#define MT6735_INFRA_RST0_APXGPT 3
10+
#define MT6735_INFRA_RST0_SCPSYS 4
11+
#define MT6735_INFRA_RST0_KP 5
12+
#define MT6735_INFRA_RST0_PMIC_WRAP 6
13+
#define MT6735_INFRA_RST0_CLDMA_AO_TOP 7
14+
#define MT6735_INFRA_RST0_USBSIF_TOP 8
15+
#define MT6735_INFRA_RST0_EMI 9
16+
#define MT6735_INFRA_RST0_CCIF 10
17+
#define MT6735_INFRA_RST0_DRAMC0 11
18+
#define MT6735_INFRA_RST0_EMI_AO_REG 12
19+
#define MT6735_INFRA_RST0_CCIF_AO 13
20+
#define MT6735_INFRA_RST0_TRNG 14
21+
#define MT6735_INFRA_RST0_SYS_CIRQ 15
22+
#define MT6735_INFRA_RST0_GCE 16
23+
#define MT6735_INFRA_RST0_M4U 17
24+
#define MT6735_INFRA_RST0_CCIF1 18
25+
#define MT6735_INFRA_RST0_CLDMA_TOP_PD 19
26+
27+
#endif

0 commit comments

Comments
 (0)