18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Device Tree binding constants for HiSilicon Hi3670 SoC
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2001-2021, Huawei Tech. Co., Ltd.
68c2ecf20Sopenharmony_ci * Copyright (c) 2018 Linaro Ltd.
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_CLOCK_HI3670_H
108c2ecf20Sopenharmony_ci#define __DT_BINDINGS_CLOCK_HI3670_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/* clk in stub clock */
138c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_CLUSTER0		0
148c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_CLUSTER1		1
158c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_GPU			2
168c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_DDR			3
178c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_DDR_VOTE		4
188c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_DDR_LIMIT		5
198c2ecf20Sopenharmony_ci#define HI3670_CLK_STUB_NUM			6
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci/* clk in crg clock */
228c2ecf20Sopenharmony_ci#define HI3670_CLKIN_SYS			0
238c2ecf20Sopenharmony_ci#define HI3670_CLKIN_REF			1
248c2ecf20Sopenharmony_ci#define HI3670_CLK_FLL_SRC			2
258c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL0			3
268c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL1			4
278c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL2			5
288c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL3			6
298c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL4			7
308c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL6			8
318c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL7			9
328c2ecf20Sopenharmony_ci#define HI3670_CLK_PPLL_PCIE			10
338c2ecf20Sopenharmony_ci#define HI3670_CLK_PCIEPLL_REV			11
348c2ecf20Sopenharmony_ci#define HI3670_CLK_SCPLL			12
358c2ecf20Sopenharmony_ci#define HI3670_PCLK				13
368c2ecf20Sopenharmony_ci#define HI3670_CLK_UART0_DBG			14
378c2ecf20Sopenharmony_ci#define HI3670_CLK_UART6			15
388c2ecf20Sopenharmony_ci#define HI3670_OSC32K				16
398c2ecf20Sopenharmony_ci#define HI3670_OSC19M				17
408c2ecf20Sopenharmony_ci#define HI3670_CLK_480M				18
418c2ecf20Sopenharmony_ci#define HI3670_CLK_INVALID			19
428c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_SYSBUS			20
438c2ecf20Sopenharmony_ci#define HI3670_CLK_FACTOR_MMC			21
448c2ecf20Sopenharmony_ci#define HI3670_CLK_SD_SYS			22
458c2ecf20Sopenharmony_ci#define HI3670_CLK_SDIO_SYS			23
468c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_A53HPM			24
478c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_320M			25
488c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_UART0			26
498c2ecf20Sopenharmony_ci#define HI3670_CLK_FACTOR_UART0			27
508c2ecf20Sopenharmony_ci#define HI3670_CLK_FACTOR_USB3PHY_PLL		28
518c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ABB_USB			29
528c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UFSPHY_REF		30
538c2ecf20Sopenharmony_ci#define HI3670_ICS_VOLT_HIGH			31
548c2ecf20Sopenharmony_ci#define HI3670_ICS_VOLT_MIDDLE			32
558c2ecf20Sopenharmony_ci#define HI3670_VENC_VOLT_HOLD			33
568c2ecf20Sopenharmony_ci#define HI3670_VDEC_VOLT_HOLD			34
578c2ecf20Sopenharmony_ci#define HI3670_EDC_VOLT_HOLD			35
588c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_FAC		36
598c2ecf20Sopenharmony_ci#define HI3670_CLK_FACTOR_RXDPHY		37
608c2ecf20Sopenharmony_ci#define HI3670_AUTODIV_SYSBUS			38
618c2ecf20Sopenharmony_ci#define HI3670_AUTODIV_EMMC0BUS			39
628c2ecf20Sopenharmony_ci#define HI3670_PCLK_ANDGT_MMC1_PCIE		40
638c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VCODECBUS_GT		41
648c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_SD			42
658c2ecf20Sopenharmony_ci#define HI3670_CLK_SD_SYS_GT			43
668c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_SDIO			44
678c2ecf20Sopenharmony_ci#define HI3670_CLK_SDIO_SYS_GT			45
688c2ecf20Sopenharmony_ci#define HI3670_CLK_A53HPM_ANDGT			46
698c2ecf20Sopenharmony_ci#define HI3670_CLK_320M_PLL_GT			47
708c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_UARTH			48
718c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_UARTL			49
728c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_UART0			50
738c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_SPI			51
748c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_PCIEAXI		52
758c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_AO_ASP_GT		53
768c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_CSI_TRANS		54
778c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_DSI_TRANS		55
788c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_PTP			56
798c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_OUT0			57
808c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_OUT1			58
818c2ecf20Sopenharmony_ci#define HI3670_CLKGT_DP_AUDIO_PLL_AO		59
828c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_VDEC			60
838c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_VENC			61
848c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_ANGT		62
858c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_RXDPHY			63
868c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_ICS			64
878c2ecf20Sopenharmony_ci#define HI3670_AUTODIV_DMABUS			65
888c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SYSBUS			66
898c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_VCODECBUS		67
908c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SD_SYS			68
918c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SD_PLL			69
928c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SDIO_SYS			70
938c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SDIO_PLL			71
948c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_A53HPM			72
958c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_320M			73
968c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_UARTH			74
978c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_UARTL			75
988c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_UART0			76
998c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_I2C			77
1008c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_SPI			78
1018c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_PCIEAXI			79
1028c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_AO_ASP			80
1038c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_VDEC			81
1048c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_VENC			82
1058c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_MUX0		83
1068c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_MUX1		84
1078c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_MUX2		85
1088c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_RXDPHY_CFG		86
1098c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_ICS			87
1108c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CFGBUS			88
1118c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_MMC0BUS			89
1128c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_MMC1BUS			90
1138c2ecf20Sopenharmony_ci#define HI3670_PCLK_DIV_MMC1_PCIE		91
1148c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_VCODECBUS		92
1158c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_SD			93
1168c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_SDIO			94
1178c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_UARTH			95
1188c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_UARTL			96
1198c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_UART0			97
1208c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_I2C			98
1218c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_SPI			99
1228c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_PCIEAXI			100
1238c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_AO_ASP			101
1248c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CSI_TRANS		102
1258c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_DSI_TRANS		103
1268c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_PTP			104
1278c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CLKOUT0_PLL		105
1288c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CLKOUT1_PLL		106
1298c2ecf20Sopenharmony_ci#define HI3670_CLKDIV_DP_AUDIO_PLL_AO		107
1308c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_VDEC			108
1318c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_VENC			109
1328c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_DIV0		110
1338c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_DIV1		111
1348c2ecf20Sopenharmony_ci#define HI3670_CLK_ISP_SNCLK_DIV2		112
1358c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_ICS			113
1368c2ecf20Sopenharmony_ci#define HI3670_PPLL1_EN_ACPU			114
1378c2ecf20Sopenharmony_ci#define HI3670_PPLL2_EN_ACPU			115
1388c2ecf20Sopenharmony_ci#define HI3670_PPLL3_EN_ACPU			116
1398c2ecf20Sopenharmony_ci#define HI3670_PPLL1_GT_CPU			117
1408c2ecf20Sopenharmony_ci#define HI3670_PPLL2_GT_CPU			118
1418c2ecf20Sopenharmony_ci#define HI3670_PPLL3_GT_CPU			119
1428c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL2_MEDIA		120
1438c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL3_MEDIA		121
1448c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL4_MEDIA		122
1458c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL6_MEDIA		123
1468c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL7_MEDIA		124
1478c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO0			125
1488c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO1			126
1498c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO2			127
1508c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO3			128
1518c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO4			129
1528c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO5			130
1538c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO6			131
1548c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO7			132
1558c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO8			133
1568c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO9			134
1578c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO10			135
1588c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO11			136
1598c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO12			137
1608c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO13			138
1618c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO14			139
1628c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO15			140
1638c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO16			141
1648c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO17			142
1658c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO20			143
1668c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO21			144
1678c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_DSI0			145
1688c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_DSI1			146
1698c2ecf20Sopenharmony_ci#define HI3670_HCLK_GATE_USB3OTG		147
1708c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_USB3DVFS		148
1718c2ecf20Sopenharmony_ci#define HI3670_HCLK_GATE_SDIO			149
1728c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_PCIE_SYS		150
1738c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_PCIE_PHY		151
1748c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_MMC1_PCIE		152
1758c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_MMC0_IOC		153
1768c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_MMC1_IOC		154
1778c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_DMAC			155
1788c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VCODECBUS2DDR		156
1798c2ecf20Sopenharmony_ci#define HI3670_CLK_CCI400_BYPASS		157
1808c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_CCI400			158
1818c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SD			159
1828c2ecf20Sopenharmony_ci#define HI3670_HCLK_GATE_SD			160
1838c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SDIO			161
1848c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_A57HPM			162
1858c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_A53HPM			163
1868c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PA_A53			164
1878c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PA_A57			165
1888c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PA_G3D			166
1898c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_GPUHPM			167
1908c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PERIHPM			168
1918c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_AOHPM			169
1928c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART1			170
1938c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART4			171
1948c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_UART1			172
1958c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_UART4			173
1968c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART2			174
1978c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART5			175
1988c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_UART2			176
1998c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_UART5			177
2008c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART0			178
2018c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C3			179
2028c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C4			180
2038c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C7			181
2048c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_I2C3			182
2058c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_I2C4			183
2068c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_I2C7			184
2078c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SPI1			185
2088c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SPI4			186
2098c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_SPI1			187
2108c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_SPI4			188
2118c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_USB3OTG_REF		189
2128c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_USB2PHY_REF		190
2138c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PCIEAUX			191
2148c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_PCIE			192
2158c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_MMC1_PCIEAXI		193
2168c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PCIEPHY_REF		194
2178c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PCIE_DEBOUNCE		195
2188c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PCIEIO			196
2198c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PCIE_HP			197
2208c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_AO_ASP			198
2218c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_PCTRL			199
2228c2ecf20Sopenharmony_ci#define HI3670_CLK_CSI_TRANS_GT			200
2238c2ecf20Sopenharmony_ci#define HI3670_CLK_DSI_TRANS_GT			201
2248c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PWM			202
2258c2ecf20Sopenharmony_ci#define HI3670_ABB_AUDIO_EN0			203
2268c2ecf20Sopenharmony_ci#define HI3670_ABB_AUDIO_EN1			204
2278c2ecf20Sopenharmony_ci#define HI3670_ABB_AUDIO_GT_EN0			205
2288c2ecf20Sopenharmony_ci#define HI3670_ABB_AUDIO_GT_EN1			206
2298c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_DP_AUDIO_PLL_AO		207
2308c2ecf20Sopenharmony_ci#define HI3670_PERI_VOLT_HOLD			208
2318c2ecf20Sopenharmony_ci#define HI3670_PERI_VOLT_MIDDLE			209
2328c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ISP_SNCLK0		210
2338c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ISP_SNCLK1		211
2348c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ISP_SNCLK2		212
2358c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_RXDPHY0_CFG		213
2368c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_RXDPHY1_CFG		214
2378c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_RXDPHY2_CFG		215
2388c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_TXDPHY0_CFG		216
2398c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_TXDPHY0_REF		217
2408c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_TXDPHY1_CFG		218
2418c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_TXDPHY1_REF		219
2428c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_MEDIA_TCXO		220
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ci/* clk in sctrl */
2458c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_IOPERI			0
2468c2ecf20Sopenharmony_ci#define HI3670_CLKANDGT_ASP_SUBSYS_PERI		1
2478c2ecf20Sopenharmony_ci#define HI3670_CLK_ANGT_ASP_SUBSYS		2
2488c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_UFS_SUBSYS		3
2498c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_CLKOUT0			4
2508c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_CLKOUT1			5
2518c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_ASP_SUBSYS_PERI		6
2528c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_ASP_PLL			7
2538c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_AOBUS			8
2548c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_UFS_SUBSYS		9
2558c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_IOPERI			10
2568c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CLKOUT0_TCXO		11
2578c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_CLKOUT1_TCXO		12
2588c2ecf20Sopenharmony_ci#define HI3670_CLK_ASP_SUBSYS_PERI_DIV		13
2598c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_ASP_SUBSYS		14
2608c2ecf20Sopenharmony_ci#define HI3670_PPLL0_EN_ACPU			15
2618c2ecf20Sopenharmony_ci#define HI3670_PPLL0_GT_CPU			16
2628c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PPLL0_MEDIA		17
2638c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO18			18
2648c2ecf20Sopenharmony_ci#define HI3670_PCLK_GPIO19			19
2658c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SPI			20
2668c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_SPI			21
2678c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UFS_SUBSYS		22
2688c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UFSIO_REF		23
2698c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO0			24
2708c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO1			25
2718c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO2			26
2728c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO3			27
2738c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO4			28
2748c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO5			29
2758c2ecf20Sopenharmony_ci#define HI3670_PCLK_AO_GPIO6			30
2768c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_OUT0			31
2778c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_OUT1			32
2788c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_SYSCNT			33
2798c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SYSCNT			34
2808c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ASP_SUBSYS_PERI		35
2818c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ASP_SUBSYS		36
2828c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ASP_TCXO		37
2838c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_DP_AUDIO_PLL		38
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_ci/* clk in pmuctrl */
2868c2ecf20Sopenharmony_ci#define HI3670_GATE_ABB_192			0
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci/* clk in pctrl */
2898c2ecf20Sopenharmony_ci#define HI3670_GATE_UFS_TCXO_EN			0
2908c2ecf20Sopenharmony_ci#define HI3670_GATE_USB_TCXO_EN			1
2918c2ecf20Sopenharmony_ci
2928c2ecf20Sopenharmony_ci/* clk in iomcu */
2938c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C0			0
2948c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C1			1
2958c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_I2C2			2
2968c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SPI0			3
2978c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_SPI2			4
2988c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_UART3			5
2998c2ecf20Sopenharmony_ci#define HI3670_CLK_I2C0_GATE_IOMCU		6
3008c2ecf20Sopenharmony_ci#define HI3670_CLK_I2C1_GATE_IOMCU		7
3018c2ecf20Sopenharmony_ci#define HI3670_CLK_I2C2_GATE_IOMCU		8
3028c2ecf20Sopenharmony_ci#define HI3670_CLK_SPI0_GATE_IOMCU		9
3038c2ecf20Sopenharmony_ci#define HI3670_CLK_SPI2_GATE_IOMCU		10
3048c2ecf20Sopenharmony_ci#define HI3670_CLK_UART3_GATE_IOMCU		11
3058c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_PERI0_IOMCU		12
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci/* clk in media1 */
3088c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VIVOBUS_ANDGT		0
3098c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_EDC0			1
3108c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_LDI0			2
3118c2ecf20Sopenharmony_ci#define HI3670_CLK_ANDGT_LDI1			3
3128c2ecf20Sopenharmony_ci#define HI3670_CLK_MMBUF_PLL_ANDGT		4
3138c2ecf20Sopenharmony_ci#define HI3670_PCLK_MMBUF_ANDGT			5
3148c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_VIVOBUS			6
3158c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_EDC0			7
3168c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_LDI0			8
3178c2ecf20Sopenharmony_ci#define HI3670_CLK_MUX_LDI1			9
3188c2ecf20Sopenharmony_ci#define HI3670_CLK_SW_MMBUF			10
3198c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_VIVOBUS			11
3208c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_EDC0			12
3218c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_LDI0			13
3228c2ecf20Sopenharmony_ci#define HI3670_CLK_DIV_LDI1			14
3238c2ecf20Sopenharmony_ci#define HI3670_ACLK_DIV_MMBUF			15
3248c2ecf20Sopenharmony_ci#define HI3670_PCLK_DIV_MMBUF			16
3258c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_NOC_DSS		17
3268c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_NOC_DSS_CFG		18
3278c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_MMBUF_CFG		19
3288c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_DISP_NOC_SUBSYS	20
3298c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_DISP_NOC_SUBSYS	21
3308c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_DSS			22
3318c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_DSS			23
3328c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VIVOBUSFREQ		24
3338c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_EDC0			25
3348c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_LDI0			26
3358c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_LDI1FREQ		27
3368c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_BRG			28
3378c2ecf20Sopenharmony_ci#define HI3670_ACLK_GATE_ASC			29
3388c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_DSS_AXI_MM		30
3398c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_MMBUF			31
3408c2ecf20Sopenharmony_ci#define HI3670_PCLK_GATE_MMBUF			32
3418c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ATDIV_VIVO		33
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci/* clk in media2 */
3448c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VDECFREQ		0
3458c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_VENCFREQ		1
3468c2ecf20Sopenharmony_ci#define HI3670_CLK_GATE_ICSFREQ			2
3478c2ecf20Sopenharmony_ci
3488c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_CLOCK_HI3670_H */
349