162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2022 Collabora Ltd.
462306a36Sopenharmony_ci * Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_MT6795_H
862306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_MT6795_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* TOPCKGEN */
1162306a36Sopenharmony_ci#define CLK_TOP_ADSYS_26M		0
1262306a36Sopenharmony_ci#define CLK_TOP_CLKPH_MCK_O		1
1362306a36Sopenharmony_ci#define CLK_TOP_USB_SYSPLL_125M		2
1462306a36Sopenharmony_ci#define CLK_TOP_DSI0_DIG		3
1562306a36Sopenharmony_ci#define CLK_TOP_DSI1_DIG		4
1662306a36Sopenharmony_ci#define CLK_TOP_ARMCA53PLL_754M		5
1762306a36Sopenharmony_ci#define CLK_TOP_ARMCA53PLL_502M		6
1862306a36Sopenharmony_ci#define CLK_TOP_MAIN_H546M		7
1962306a36Sopenharmony_ci#define CLK_TOP_MAIN_H364M		8
2062306a36Sopenharmony_ci#define CLK_TOP_MAIN_H218P4M		9
2162306a36Sopenharmony_ci#define CLK_TOP_MAIN_H156M		10
2262306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_445P5M		11
2362306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_594M		12
2462306a36Sopenharmony_ci#define CLK_TOP_UNIV_624M		13
2562306a36Sopenharmony_ci#define CLK_TOP_UNIV_416M		14
2662306a36Sopenharmony_ci#define CLK_TOP_UNIV_249P6M		15
2762306a36Sopenharmony_ci#define CLK_TOP_UNIV_178P3M		16
2862306a36Sopenharmony_ci#define CLK_TOP_UNIV_48M		17
2962306a36Sopenharmony_ci#define CLK_TOP_CLKRTC_EXT		18
3062306a36Sopenharmony_ci#define CLK_TOP_CLKRTC_INT		19
3162306a36Sopenharmony_ci#define CLK_TOP_FPC			20
3262306a36Sopenharmony_ci#define CLK_TOP_HDMITXPLL_D2		21
3362306a36Sopenharmony_ci#define CLK_TOP_HDMITXPLL_D3		22
3462306a36Sopenharmony_ci#define CLK_TOP_ARMCA53PLL_D2		23
3562306a36Sopenharmony_ci#define CLK_TOP_ARMCA53PLL_D3		24
3662306a36Sopenharmony_ci#define CLK_TOP_APLL1			25
3762306a36Sopenharmony_ci#define CLK_TOP_APLL2			26
3862306a36Sopenharmony_ci#define CLK_TOP_DMPLL			27
3962306a36Sopenharmony_ci#define CLK_TOP_DMPLL_D2		28
4062306a36Sopenharmony_ci#define CLK_TOP_DMPLL_D4		29
4162306a36Sopenharmony_ci#define CLK_TOP_DMPLL_D8		30
4262306a36Sopenharmony_ci#define CLK_TOP_DMPLL_D16		31
4362306a36Sopenharmony_ci#define CLK_TOP_MMPLL			32
4462306a36Sopenharmony_ci#define CLK_TOP_MMPLL_D2		33
4562306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL			34
4662306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL_D2		35
4762306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL_D4		36
4862306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL2		37
4962306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL2_D2		38
5062306a36Sopenharmony_ci#define CLK_TOP_MSDCPLL2_D4		39
5162306a36Sopenharmony_ci#define CLK_TOP_SYSPLL_D2		40
5262306a36Sopenharmony_ci#define CLK_TOP_SYSPLL1_D2		41
5362306a36Sopenharmony_ci#define CLK_TOP_SYSPLL1_D4		42
5462306a36Sopenharmony_ci#define CLK_TOP_SYSPLL1_D8		43
5562306a36Sopenharmony_ci#define CLK_TOP_SYSPLL1_D16		44
5662306a36Sopenharmony_ci#define CLK_TOP_SYSPLL_D3		45
5762306a36Sopenharmony_ci#define CLK_TOP_SYSPLL2_D2		46
5862306a36Sopenharmony_ci#define CLK_TOP_SYSPLL2_D4		47
5962306a36Sopenharmony_ci#define CLK_TOP_SYSPLL_D5		48
6062306a36Sopenharmony_ci#define CLK_TOP_SYSPLL3_D2		49
6162306a36Sopenharmony_ci#define CLK_TOP_SYSPLL3_D4		50
6262306a36Sopenharmony_ci#define CLK_TOP_SYSPLL_D7		51
6362306a36Sopenharmony_ci#define CLK_TOP_SYSPLL4_D2		52
6462306a36Sopenharmony_ci#define CLK_TOP_SYSPLL4_D4		53
6562306a36Sopenharmony_ci#define CLK_TOP_TVDPLL			54
6662306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_D2		55
6762306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_D4		56
6862306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_D8		57
6962306a36Sopenharmony_ci#define CLK_TOP_TVDPLL_D16		58
7062306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D2		59
7162306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL1_D2		60
7262306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL1_D4		61
7362306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL1_D8		62
7462306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D3		63
7562306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL2_D2		64
7662306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL2_D4		65
7762306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL2_D8		66
7862306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D5		67
7962306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL3_D2		68
8062306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL3_D4		69
8162306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL3_D8		70
8262306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D7		71
8362306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D26		72
8462306a36Sopenharmony_ci#define CLK_TOP_UNIVPLL_D52		73
8562306a36Sopenharmony_ci#define CLK_TOP_VCODECPLL		74
8662306a36Sopenharmony_ci#define CLK_TOP_VCODECPLL_370P5		75
8762306a36Sopenharmony_ci#define CLK_TOP_VENCPLL			76
8862306a36Sopenharmony_ci#define CLK_TOP_VENCPLL_D2		77
8962306a36Sopenharmony_ci#define CLK_TOP_VENCPLL_D4		78
9062306a36Sopenharmony_ci#define CLK_TOP_AXI_SEL			79
9162306a36Sopenharmony_ci#define CLK_TOP_MEM_SEL			80
9262306a36Sopenharmony_ci#define CLK_TOP_DDRPHYCFG_SEL		81
9362306a36Sopenharmony_ci#define CLK_TOP_MM_SEL			82
9462306a36Sopenharmony_ci#define CLK_TOP_PWM_SEL			83
9562306a36Sopenharmony_ci#define CLK_TOP_VDEC_SEL		84
9662306a36Sopenharmony_ci#define CLK_TOP_VENC_SEL		85
9762306a36Sopenharmony_ci#define CLK_TOP_MFG_SEL			86
9862306a36Sopenharmony_ci#define CLK_TOP_CAMTG_SEL		87
9962306a36Sopenharmony_ci#define CLK_TOP_UART_SEL		88
10062306a36Sopenharmony_ci#define CLK_TOP_SPI_SEL			89
10162306a36Sopenharmony_ci#define CLK_TOP_USB20_SEL		90
10262306a36Sopenharmony_ci#define CLK_TOP_USB30_SEL		91
10362306a36Sopenharmony_ci#define CLK_TOP_MSDC50_0_H_SEL		92
10462306a36Sopenharmony_ci#define CLK_TOP_MSDC50_0_SEL		93
10562306a36Sopenharmony_ci#define CLK_TOP_MSDC30_1_SEL		94
10662306a36Sopenharmony_ci#define CLK_TOP_MSDC30_2_SEL		95
10762306a36Sopenharmony_ci#define CLK_TOP_MSDC30_3_SEL		96
10862306a36Sopenharmony_ci#define CLK_TOP_AUDIO_SEL		97
10962306a36Sopenharmony_ci#define CLK_TOP_AUD_INTBUS_SEL		98
11062306a36Sopenharmony_ci#define CLK_TOP_PMICSPI_SEL		99
11162306a36Sopenharmony_ci#define CLK_TOP_SCP_SEL			100
11262306a36Sopenharmony_ci#define CLK_TOP_MJC_SEL			101
11362306a36Sopenharmony_ci#define CLK_TOP_DPI0_SEL		102
11462306a36Sopenharmony_ci#define CLK_TOP_IRDA_SEL		103
11562306a36Sopenharmony_ci#define CLK_TOP_CCI400_SEL		104
11662306a36Sopenharmony_ci#define CLK_TOP_AUD_1_SEL		105
11762306a36Sopenharmony_ci#define CLK_TOP_AUD_2_SEL		106
11862306a36Sopenharmony_ci#define CLK_TOP_MEM_MFG_IN_SEL		107
11962306a36Sopenharmony_ci#define CLK_TOP_AXI_MFG_IN_SEL		108
12062306a36Sopenharmony_ci#define CLK_TOP_SCAM_SEL		109
12162306a36Sopenharmony_ci#define CLK_TOP_I2S0_M_SEL		110
12262306a36Sopenharmony_ci#define CLK_TOP_I2S1_M_SEL		111
12362306a36Sopenharmony_ci#define CLK_TOP_I2S2_M_SEL		112
12462306a36Sopenharmony_ci#define CLK_TOP_I2S3_M_SEL		113
12562306a36Sopenharmony_ci#define CLK_TOP_I2S3_B_SEL		114
12662306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV0		115
12762306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV1		116
12862306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV2		117
12962306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV3		118
13062306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV4		119
13162306a36Sopenharmony_ci#define CLK_TOP_APLL1_DIV5		120
13262306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV0		121
13362306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV1		122
13462306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV2		123
13562306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV3		124
13662306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV4		125
13762306a36Sopenharmony_ci#define CLK_TOP_APLL2_DIV5		126
13862306a36Sopenharmony_ci#define CLK_TOP_NR_CLK			127
13962306a36Sopenharmony_ci
14062306a36Sopenharmony_ci/* APMIXED_SYS */
14162306a36Sopenharmony_ci#define CLK_APMIXED_ARMCA53PLL		0
14262306a36Sopenharmony_ci#define CLK_APMIXED_MAINPLL		1
14362306a36Sopenharmony_ci#define CLK_APMIXED_UNIVPLL		2
14462306a36Sopenharmony_ci#define CLK_APMIXED_MMPLL		3
14562306a36Sopenharmony_ci#define CLK_APMIXED_MSDCPLL		4
14662306a36Sopenharmony_ci#define CLK_APMIXED_VENCPLL		5
14762306a36Sopenharmony_ci#define CLK_APMIXED_TVDPLL		6
14862306a36Sopenharmony_ci#define CLK_APMIXED_MPLL		7
14962306a36Sopenharmony_ci#define CLK_APMIXED_VCODECPLL		8
15062306a36Sopenharmony_ci#define CLK_APMIXED_APLL1		9
15162306a36Sopenharmony_ci#define CLK_APMIXED_APLL2		10
15262306a36Sopenharmony_ci#define CLK_APMIXED_REF2USB_TX		11
15362306a36Sopenharmony_ci#define CLK_APMIXED_NR_CLK		12
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ci/* INFRA_SYS */
15662306a36Sopenharmony_ci#define CLK_INFRA_DBGCLK		0
15762306a36Sopenharmony_ci#define CLK_INFRA_SMI			1
15862306a36Sopenharmony_ci#define CLK_INFRA_AUDIO			2
15962306a36Sopenharmony_ci#define CLK_INFRA_GCE			3
16062306a36Sopenharmony_ci#define CLK_INFRA_L2C_SRAM		4
16162306a36Sopenharmony_ci#define CLK_INFRA_M4U			5
16262306a36Sopenharmony_ci#define CLK_INFRA_MD1MCU		6
16362306a36Sopenharmony_ci#define CLK_INFRA_MD1BUS		7
16462306a36Sopenharmony_ci#define CLK_INFRA_MD1DBB		8
16562306a36Sopenharmony_ci#define CLK_INFRA_DEVICE_APC		9
16662306a36Sopenharmony_ci#define CLK_INFRA_TRNG			10
16762306a36Sopenharmony_ci#define CLK_INFRA_MD1LTE		11
16862306a36Sopenharmony_ci#define CLK_INFRA_CPUM			12
16962306a36Sopenharmony_ci#define CLK_INFRA_KP			13
17062306a36Sopenharmony_ci#define CLK_INFRA_CA53_C0_SEL		14
17162306a36Sopenharmony_ci#define CLK_INFRA_CA53_C1_SEL		15
17262306a36Sopenharmony_ci#define CLK_INFRA_NR_CLK		16
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci/* PERI_SYS */
17562306a36Sopenharmony_ci#define CLK_PERI_NFI			0
17662306a36Sopenharmony_ci#define CLK_PERI_THERM			1
17762306a36Sopenharmony_ci#define CLK_PERI_PWM1			2
17862306a36Sopenharmony_ci#define CLK_PERI_PWM2			3
17962306a36Sopenharmony_ci#define CLK_PERI_PWM3			4
18062306a36Sopenharmony_ci#define CLK_PERI_PWM4			5
18162306a36Sopenharmony_ci#define CLK_PERI_PWM5			6
18262306a36Sopenharmony_ci#define CLK_PERI_PWM6			7
18362306a36Sopenharmony_ci#define CLK_PERI_PWM7			8
18462306a36Sopenharmony_ci#define CLK_PERI_PWM			9
18562306a36Sopenharmony_ci#define CLK_PERI_USB0			10
18662306a36Sopenharmony_ci#define CLK_PERI_USB1			11
18762306a36Sopenharmony_ci#define CLK_PERI_AP_DMA			12
18862306a36Sopenharmony_ci#define CLK_PERI_MSDC30_0		13
18962306a36Sopenharmony_ci#define CLK_PERI_MSDC30_1		14
19062306a36Sopenharmony_ci#define CLK_PERI_MSDC30_2		15
19162306a36Sopenharmony_ci#define CLK_PERI_MSDC30_3		16
19262306a36Sopenharmony_ci#define CLK_PERI_NLI_ARB		17
19362306a36Sopenharmony_ci#define CLK_PERI_IRDA			18
19462306a36Sopenharmony_ci#define CLK_PERI_UART0			19
19562306a36Sopenharmony_ci#define CLK_PERI_UART1			20
19662306a36Sopenharmony_ci#define CLK_PERI_UART2			21
19762306a36Sopenharmony_ci#define CLK_PERI_UART3			22
19862306a36Sopenharmony_ci#define CLK_PERI_I2C0			23
19962306a36Sopenharmony_ci#define CLK_PERI_I2C1			24
20062306a36Sopenharmony_ci#define CLK_PERI_I2C2			25
20162306a36Sopenharmony_ci#define CLK_PERI_I2C3			26
20262306a36Sopenharmony_ci#define CLK_PERI_I2C4			27
20362306a36Sopenharmony_ci#define CLK_PERI_AUXADC			28
20462306a36Sopenharmony_ci#define CLK_PERI_SPI0			29
20562306a36Sopenharmony_ci#define CLK_PERI_UART0_SEL		30
20662306a36Sopenharmony_ci#define CLK_PERI_UART1_SEL		31
20762306a36Sopenharmony_ci#define CLK_PERI_UART2_SEL		32
20862306a36Sopenharmony_ci#define CLK_PERI_UART3_SEL		33
20962306a36Sopenharmony_ci#define CLK_PERI_NR_CLK			34
21062306a36Sopenharmony_ci
21162306a36Sopenharmony_ci/* MFG */
21262306a36Sopenharmony_ci#define CLK_MFG_BAXI			0
21362306a36Sopenharmony_ci#define CLK_MFG_BMEM			1
21462306a36Sopenharmony_ci#define CLK_MFG_BG3D			2
21562306a36Sopenharmony_ci#define CLK_MFG_B26M			3
21662306a36Sopenharmony_ci#define CLK_MFG_NR_CLK			4
21762306a36Sopenharmony_ci
21862306a36Sopenharmony_ci/* MM_SYS */
21962306a36Sopenharmony_ci#define CLK_MM_SMI_COMMON		0
22062306a36Sopenharmony_ci#define CLK_MM_SMI_LARB0		1
22162306a36Sopenharmony_ci#define CLK_MM_CAM_MDP			2
22262306a36Sopenharmony_ci#define CLK_MM_MDP_RDMA0		3
22362306a36Sopenharmony_ci#define CLK_MM_MDP_RDMA1		4
22462306a36Sopenharmony_ci#define CLK_MM_MDP_RSZ0			5
22562306a36Sopenharmony_ci#define CLK_MM_MDP_RSZ1			6
22662306a36Sopenharmony_ci#define CLK_MM_MDP_RSZ2			7
22762306a36Sopenharmony_ci#define CLK_MM_MDP_TDSHP0		8
22862306a36Sopenharmony_ci#define CLK_MM_MDP_TDSHP1		9
22962306a36Sopenharmony_ci#define CLK_MM_MDP_CROP			10
23062306a36Sopenharmony_ci#define CLK_MM_MDP_WDMA			11
23162306a36Sopenharmony_ci#define CLK_MM_MDP_WROT0		12
23262306a36Sopenharmony_ci#define CLK_MM_MDP_WROT1		13
23362306a36Sopenharmony_ci#define CLK_MM_FAKE_ENG			14
23462306a36Sopenharmony_ci#define CLK_MM_MUTEX_32K		15
23562306a36Sopenharmony_ci#define CLK_MM_DISP_OVL0		16
23662306a36Sopenharmony_ci#define CLK_MM_DISP_OVL1		17
23762306a36Sopenharmony_ci#define CLK_MM_DISP_RDMA0		18
23862306a36Sopenharmony_ci#define CLK_MM_DISP_RDMA1		19
23962306a36Sopenharmony_ci#define CLK_MM_DISP_RDMA2		20
24062306a36Sopenharmony_ci#define CLK_MM_DISP_WDMA0		21
24162306a36Sopenharmony_ci#define CLK_MM_DISP_WDMA1		22
24262306a36Sopenharmony_ci#define CLK_MM_DISP_COLOR0		23
24362306a36Sopenharmony_ci#define CLK_MM_DISP_COLOR1		24
24462306a36Sopenharmony_ci#define CLK_MM_DISP_AAL			25
24562306a36Sopenharmony_ci#define CLK_MM_DISP_GAMMA		26
24662306a36Sopenharmony_ci#define CLK_MM_DISP_UFOE		27
24762306a36Sopenharmony_ci#define CLK_MM_DISP_SPLIT0		28
24862306a36Sopenharmony_ci#define CLK_MM_DISP_SPLIT1		29
24962306a36Sopenharmony_ci#define CLK_MM_DISP_MERGE		30
25062306a36Sopenharmony_ci#define CLK_MM_DISP_OD			31
25162306a36Sopenharmony_ci#define CLK_MM_DISP_PWM0MM		32
25262306a36Sopenharmony_ci#define CLK_MM_DISP_PWM026M		33
25362306a36Sopenharmony_ci#define CLK_MM_DISP_PWM1MM		34
25462306a36Sopenharmony_ci#define CLK_MM_DISP_PWM126M		35
25562306a36Sopenharmony_ci#define CLK_MM_DSI0_ENGINE		36
25662306a36Sopenharmony_ci#define CLK_MM_DSI0_DIGITAL		37
25762306a36Sopenharmony_ci#define CLK_MM_DSI1_ENGINE		38
25862306a36Sopenharmony_ci#define CLK_MM_DSI1_DIGITAL		39
25962306a36Sopenharmony_ci#define CLK_MM_DPI_PIXEL		40
26062306a36Sopenharmony_ci#define CLK_MM_DPI_ENGINE		41
26162306a36Sopenharmony_ci#define CLK_MM_NR_CLK			42
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci/* VDEC_SYS */
26462306a36Sopenharmony_ci#define CLK_VDEC_CKEN			0
26562306a36Sopenharmony_ci#define CLK_VDEC_LARB_CKEN		1
26662306a36Sopenharmony_ci#define CLK_VDEC_NR_CLK			2
26762306a36Sopenharmony_ci
26862306a36Sopenharmony_ci/* VENC_SYS */
26962306a36Sopenharmony_ci#define CLK_VENC_LARB			0
27062306a36Sopenharmony_ci#define CLK_VENC_VENC			1
27162306a36Sopenharmony_ci#define CLK_VENC_JPGENC			2
27262306a36Sopenharmony_ci#define CLK_VENC_JPGDEC			3
27362306a36Sopenharmony_ci#define CLK_VENC_NR_CLK			4
27462306a36Sopenharmony_ci
27562306a36Sopenharmony_ci#endif /* _DT_BINDINGS_CLK_MT6795_H */
276