162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2019 Rockchip Electronics Co. Ltd.
462306a36Sopenharmony_ci * Author: Finley Xiao <finley.xiao@rock-chips.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_ROCKCHIP_RV1126_H
862306a36Sopenharmony_ci#define _DT_BINDINGS_CLK_ROCKCHIP_RV1126_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* pmucru-clocks indices */
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/* pll clocks */
1362306a36Sopenharmony_ci#define PLL_GPLL		1
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/* sclk (special clocks) */
1662306a36Sopenharmony_ci#define CLK_OSC0_DIV32K		2
1762306a36Sopenharmony_ci#define CLK_RTC32K		3
1862306a36Sopenharmony_ci#define CLK_WIFI_DIV		4
1962306a36Sopenharmony_ci#define CLK_WIFI_OSC0		5
2062306a36Sopenharmony_ci#define CLK_WIFI		6
2162306a36Sopenharmony_ci#define CLK_PMU			7
2262306a36Sopenharmony_ci#define SCLK_UART1_DIV		8
2362306a36Sopenharmony_ci#define SCLK_UART1_FRACDIV	9
2462306a36Sopenharmony_ci#define SCLK_UART1_MUX		10
2562306a36Sopenharmony_ci#define SCLK_UART1		11
2662306a36Sopenharmony_ci#define CLK_I2C0		12
2762306a36Sopenharmony_ci#define CLK_I2C2		13
2862306a36Sopenharmony_ci#define CLK_CAPTURE_PWM0	14
2962306a36Sopenharmony_ci#define CLK_PWM0		15
3062306a36Sopenharmony_ci#define CLK_CAPTURE_PWM1	16
3162306a36Sopenharmony_ci#define CLK_PWM1		17
3262306a36Sopenharmony_ci#define CLK_SPI0		18
3362306a36Sopenharmony_ci#define DBCLK_GPIO0		19
3462306a36Sopenharmony_ci#define CLK_PMUPVTM		20
3562306a36Sopenharmony_ci#define CLK_CORE_PMUPVTM	21
3662306a36Sopenharmony_ci#define CLK_REF12M		22
3762306a36Sopenharmony_ci#define CLK_USBPHY_OTG_REF	23
3862306a36Sopenharmony_ci#define CLK_USBPHY_HOST_REF	24
3962306a36Sopenharmony_ci#define CLK_REF24M		25
4062306a36Sopenharmony_ci#define CLK_MIPIDSIPHY_REF	26
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci/* pclk */
4362306a36Sopenharmony_ci#define PCLK_PDPMU		30
4462306a36Sopenharmony_ci#define PCLK_PMU		31
4562306a36Sopenharmony_ci#define PCLK_UART1		32
4662306a36Sopenharmony_ci#define PCLK_I2C0		33
4762306a36Sopenharmony_ci#define PCLK_I2C2		34
4862306a36Sopenharmony_ci#define PCLK_PWM0		35
4962306a36Sopenharmony_ci#define PCLK_PWM1		36
5062306a36Sopenharmony_ci#define PCLK_SPI0		37
5162306a36Sopenharmony_ci#define PCLK_GPIO0		38
5262306a36Sopenharmony_ci#define PCLK_PMUSGRF		39
5362306a36Sopenharmony_ci#define PCLK_PMUGRF		40
5462306a36Sopenharmony_ci#define PCLK_PMUCRU		41
5562306a36Sopenharmony_ci#define PCLK_CHIPVEROTP		42
5662306a36Sopenharmony_ci#define PCLK_PDPMU_NIU		43
5762306a36Sopenharmony_ci#define PCLK_PMUPVTM		44
5862306a36Sopenharmony_ci#define PCLK_SCRKEYGEN		45
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci#define CLKPMU_NR_CLKS		(PCLK_SCRKEYGEN + 1)
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci/* cru-clocks indices */
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci/* pll clocks */
6562306a36Sopenharmony_ci#define PLL_APLL		1
6662306a36Sopenharmony_ci#define PLL_DPLL		2
6762306a36Sopenharmony_ci#define PLL_CPLL		3
6862306a36Sopenharmony_ci#define PLL_HPLL		4
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci/* sclk (special clocks) */
7162306a36Sopenharmony_ci#define ARMCLK			5
7262306a36Sopenharmony_ci#define USB480M			6
7362306a36Sopenharmony_ci#define CLK_CORE_CPUPVTM	7
7462306a36Sopenharmony_ci#define CLK_CPUPVTM		8
7562306a36Sopenharmony_ci#define CLK_SCR1		9
7662306a36Sopenharmony_ci#define CLK_SCR1_CORE		10
7762306a36Sopenharmony_ci#define CLK_SCR1_RTC		11
7862306a36Sopenharmony_ci#define CLK_SCR1_JTAG		12
7962306a36Sopenharmony_ci#define SCLK_UART0_DIV		13
8062306a36Sopenharmony_ci#define SCLK_UART0_FRAC		14
8162306a36Sopenharmony_ci#define SCLK_UART0_MUX		15
8262306a36Sopenharmony_ci#define SCLK_UART0		16
8362306a36Sopenharmony_ci#define SCLK_UART2_DIV		17
8462306a36Sopenharmony_ci#define SCLK_UART2_FRAC		18
8562306a36Sopenharmony_ci#define SCLK_UART2_MUX		19
8662306a36Sopenharmony_ci#define SCLK_UART2		20
8762306a36Sopenharmony_ci#define SCLK_UART3_DIV		21
8862306a36Sopenharmony_ci#define SCLK_UART3_FRAC		22
8962306a36Sopenharmony_ci#define SCLK_UART3_MUX		23
9062306a36Sopenharmony_ci#define SCLK_UART3		24
9162306a36Sopenharmony_ci#define SCLK_UART4_DIV		25
9262306a36Sopenharmony_ci#define SCLK_UART4_FRAC		26
9362306a36Sopenharmony_ci#define SCLK_UART4_MUX		27
9462306a36Sopenharmony_ci#define SCLK_UART4		28
9562306a36Sopenharmony_ci#define SCLK_UART5_DIV		29
9662306a36Sopenharmony_ci#define SCLK_UART5_FRAC		30
9762306a36Sopenharmony_ci#define SCLK_UART5_MUX		31
9862306a36Sopenharmony_ci#define SCLK_UART5		32
9962306a36Sopenharmony_ci#define CLK_I2C1		33
10062306a36Sopenharmony_ci#define CLK_I2C3		34
10162306a36Sopenharmony_ci#define CLK_I2C4		35
10262306a36Sopenharmony_ci#define CLK_I2C5		36
10362306a36Sopenharmony_ci#define CLK_SPI1		37
10462306a36Sopenharmony_ci#define CLK_CAPTURE_PWM2	38
10562306a36Sopenharmony_ci#define CLK_PWM2		39
10662306a36Sopenharmony_ci#define DBCLK_GPIO1		40
10762306a36Sopenharmony_ci#define DBCLK_GPIO2		41
10862306a36Sopenharmony_ci#define DBCLK_GPIO3		42
10962306a36Sopenharmony_ci#define DBCLK_GPIO4		43
11062306a36Sopenharmony_ci#define CLK_SARADC		44
11162306a36Sopenharmony_ci#define CLK_TIMER0		45
11262306a36Sopenharmony_ci#define CLK_TIMER1		46
11362306a36Sopenharmony_ci#define CLK_TIMER2		47
11462306a36Sopenharmony_ci#define CLK_TIMER3		48
11562306a36Sopenharmony_ci#define CLK_TIMER4		49
11662306a36Sopenharmony_ci#define CLK_TIMER5		50
11762306a36Sopenharmony_ci#define CLK_CAN			51
11862306a36Sopenharmony_ci#define CLK_NPU_TSADC		52
11962306a36Sopenharmony_ci#define CLK_NPU_TSADCPHY	53
12062306a36Sopenharmony_ci#define CLK_CPU_TSADC		54
12162306a36Sopenharmony_ci#define CLK_CPU_TSADCPHY	55
12262306a36Sopenharmony_ci#define CLK_CRYPTO_CORE		56
12362306a36Sopenharmony_ci#define CLK_CRYPTO_PKA		57
12462306a36Sopenharmony_ci#define MCLK_I2S0_TX_DIV	58
12562306a36Sopenharmony_ci#define MCLK_I2S0_TX_FRACDIV	59
12662306a36Sopenharmony_ci#define MCLK_I2S0_TX_MUX	60
12762306a36Sopenharmony_ci#define MCLK_I2S0_TX		61
12862306a36Sopenharmony_ci#define MCLK_I2S0_RX_DIV	62
12962306a36Sopenharmony_ci#define MCLK_I2S0_RX_FRACDIV	63
13062306a36Sopenharmony_ci#define MCLK_I2S0_RX_MUX	64
13162306a36Sopenharmony_ci#define MCLK_I2S0_RX		65
13262306a36Sopenharmony_ci#define MCLK_I2S0_TX_OUT2IO	66
13362306a36Sopenharmony_ci#define MCLK_I2S0_RX_OUT2IO	67
13462306a36Sopenharmony_ci#define MCLK_I2S1_DIV		68
13562306a36Sopenharmony_ci#define MCLK_I2S1_FRACDIV	69
13662306a36Sopenharmony_ci#define MCLK_I2S1_MUX		70
13762306a36Sopenharmony_ci#define MCLK_I2S1		71
13862306a36Sopenharmony_ci#define MCLK_I2S1_OUT2IO	72
13962306a36Sopenharmony_ci#define MCLK_I2S2_DIV		73
14062306a36Sopenharmony_ci#define MCLK_I2S2_FRACDIV	74
14162306a36Sopenharmony_ci#define MCLK_I2S2_MUX		75
14262306a36Sopenharmony_ci#define MCLK_I2S2		76
14362306a36Sopenharmony_ci#define MCLK_I2S2_OUT2IO	77
14462306a36Sopenharmony_ci#define MCLK_PDM		78
14562306a36Sopenharmony_ci#define SCLK_ADUPWM_DIV		79
14662306a36Sopenharmony_ci#define SCLK_AUDPWM_FRACDIV	80
14762306a36Sopenharmony_ci#define SCLK_AUDPWM_MUX		81
14862306a36Sopenharmony_ci#define	SCLK_AUDPWM		82
14962306a36Sopenharmony_ci#define CLK_ACDCDIG_ADC		83
15062306a36Sopenharmony_ci#define CLK_ACDCDIG_DAC		84
15162306a36Sopenharmony_ci#define CLK_ACDCDIG_I2C		85
15262306a36Sopenharmony_ci#define CLK_VENC_CORE		86
15362306a36Sopenharmony_ci#define CLK_VDEC_CORE		87
15462306a36Sopenharmony_ci#define CLK_VDEC_CA		88
15562306a36Sopenharmony_ci#define CLK_VDEC_HEVC_CA	89
15662306a36Sopenharmony_ci#define CLK_RGA_CORE		90
15762306a36Sopenharmony_ci#define CLK_IEP_CORE		91
15862306a36Sopenharmony_ci#define CLK_ISP_DIV		92
15962306a36Sopenharmony_ci#define CLK_ISP_NP5		93
16062306a36Sopenharmony_ci#define CLK_ISP_NUX		94
16162306a36Sopenharmony_ci#define CLK_ISP			95
16262306a36Sopenharmony_ci#define CLK_CIF_OUT_DIV		96
16362306a36Sopenharmony_ci#define CLK_CIF_OUT_FRACDIV	97
16462306a36Sopenharmony_ci#define CLK_CIF_OUT_MUX		98
16562306a36Sopenharmony_ci#define CLK_CIF_OUT		99
16662306a36Sopenharmony_ci#define CLK_MIPICSI_OUT_DIV	100
16762306a36Sopenharmony_ci#define CLK_MIPICSI_OUT_FRACDIV	101
16862306a36Sopenharmony_ci#define CLK_MIPICSI_OUT_MUX	102
16962306a36Sopenharmony_ci#define CLK_MIPICSI_OUT		103
17062306a36Sopenharmony_ci#define CLK_ISPP_DIV		104
17162306a36Sopenharmony_ci#define CLK_ISPP_NP5		105
17262306a36Sopenharmony_ci#define CLK_ISPP_NUX		106
17362306a36Sopenharmony_ci#define CLK_ISPP		107
17462306a36Sopenharmony_ci#define CLK_SDMMC		108
17562306a36Sopenharmony_ci#define SCLK_SDMMC_DRV		109
17662306a36Sopenharmony_ci#define SCLK_SDMMC_SAMPLE	110
17762306a36Sopenharmony_ci#define CLK_SDIO		111
17862306a36Sopenharmony_ci#define SCLK_SDIO_DRV		112
17962306a36Sopenharmony_ci#define SCLK_SDIO_SAMPLE	113
18062306a36Sopenharmony_ci#define CLK_EMMC		114
18162306a36Sopenharmony_ci#define SCLK_EMMC_DRV		115
18262306a36Sopenharmony_ci#define SCLK_EMMC_SAMPLE	116
18362306a36Sopenharmony_ci#define CLK_NANDC		117
18462306a36Sopenharmony_ci#define SCLK_SFC		118
18562306a36Sopenharmony_ci#define CLK_USBHOST_UTMI_OHCI	119
18662306a36Sopenharmony_ci#define CLK_USBOTG_REF		120
18762306a36Sopenharmony_ci#define CLK_GMAC_DIV		121
18862306a36Sopenharmony_ci#define CLK_GMAC_RGMII_M0	122
18962306a36Sopenharmony_ci#define CLK_GMAC_SRC_M0		123
19062306a36Sopenharmony_ci#define CLK_GMAC_RGMII_M1	124
19162306a36Sopenharmony_ci#define CLK_GMAC_SRC_M1		125
19262306a36Sopenharmony_ci#define CLK_GMAC_SRC		126
19362306a36Sopenharmony_ci#define CLK_GMAC_REF		127
19462306a36Sopenharmony_ci#define CLK_GMAC_TX_SRC		128
19562306a36Sopenharmony_ci#define CLK_GMAC_TX_DIV5	129
19662306a36Sopenharmony_ci#define CLK_GMAC_TX_DIV50	130
19762306a36Sopenharmony_ci#define RGMII_MODE_CLK		131
19862306a36Sopenharmony_ci#define CLK_GMAC_RX_SRC		132
19962306a36Sopenharmony_ci#define CLK_GMAC_RX_DIV2	133
20062306a36Sopenharmony_ci#define CLK_GMAC_RX_DIV20	134
20162306a36Sopenharmony_ci#define RMII_MODE_CLK		135
20262306a36Sopenharmony_ci#define CLK_GMAC_TX_RX		136
20362306a36Sopenharmony_ci#define CLK_GMAC_PTPREF		137
20462306a36Sopenharmony_ci#define CLK_GMAC_ETHERNET_OUT	138
20562306a36Sopenharmony_ci#define CLK_DDRPHY		139
20662306a36Sopenharmony_ci#define CLK_DDR_MON		140
20762306a36Sopenharmony_ci#define TMCLK_DDR_MON		141
20862306a36Sopenharmony_ci#define CLK_NPU_DIV		142
20962306a36Sopenharmony_ci#define CLK_NPU_NP5		143
21062306a36Sopenharmony_ci#define CLK_CORE_NPU		144
21162306a36Sopenharmony_ci#define CLK_CORE_NPUPVTM	145
21262306a36Sopenharmony_ci#define CLK_NPUPVTM		146
21362306a36Sopenharmony_ci#define SCLK_DDRCLK		147
21462306a36Sopenharmony_ci#define CLK_OTP			148
21562306a36Sopenharmony_ci
21662306a36Sopenharmony_ci/* dclk */
21762306a36Sopenharmony_ci#define DCLK_DECOM		150
21862306a36Sopenharmony_ci#define DCLK_VOP_DIV		151
21962306a36Sopenharmony_ci#define DCLK_VOP_FRACDIV	152
22062306a36Sopenharmony_ci#define DCLK_VOP_MUX		153
22162306a36Sopenharmony_ci#define DCLK_VOP		154
22262306a36Sopenharmony_ci#define DCLK_CIF		155
22362306a36Sopenharmony_ci#define DCLK_CIFLITE		156
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ci/* aclk */
22662306a36Sopenharmony_ci#define ACLK_PDBUS		160
22762306a36Sopenharmony_ci#define ACLK_DMAC		161
22862306a36Sopenharmony_ci#define ACLK_DCF		162
22962306a36Sopenharmony_ci#define ACLK_SPINLOCK		163
23062306a36Sopenharmony_ci#define ACLK_DECOM		164
23162306a36Sopenharmony_ci#define ACLK_PDCRYPTO		165
23262306a36Sopenharmony_ci#define ACLK_CRYPTO		166
23362306a36Sopenharmony_ci#define ACLK_PDVEPU		167
23462306a36Sopenharmony_ci#define ACLK_VENC		168
23562306a36Sopenharmony_ci#define ACLK_PDVDEC		169
23662306a36Sopenharmony_ci#define ACLK_PDJPEG		170
23762306a36Sopenharmony_ci#define ACLK_VDEC		171
23862306a36Sopenharmony_ci#define ACLK_JPEG		172
23962306a36Sopenharmony_ci#define ACLK_PDVO		173
24062306a36Sopenharmony_ci#define ACLK_RGA		174
24162306a36Sopenharmony_ci#define ACLK_VOP		175
24262306a36Sopenharmony_ci#define ACLK_IEP		176
24362306a36Sopenharmony_ci#define ACLK_PDVI_DIV		177
24462306a36Sopenharmony_ci#define ACLK_PDVI_NP5		178
24562306a36Sopenharmony_ci#define ACLK_PDVI		179
24662306a36Sopenharmony_ci#define ACLK_ISP		180
24762306a36Sopenharmony_ci#define ACLK_CIF		181
24862306a36Sopenharmony_ci#define ACLK_CIFLITE		182
24962306a36Sopenharmony_ci#define ACLK_PDISPP_DIV		183
25062306a36Sopenharmony_ci#define ACLK_PDISPP_NP5		184
25162306a36Sopenharmony_ci#define ACLK_PDISPP		185
25262306a36Sopenharmony_ci#define ACLK_ISPP		186
25362306a36Sopenharmony_ci#define ACLK_PDPHP		187
25462306a36Sopenharmony_ci#define ACLK_PDUSB		188
25562306a36Sopenharmony_ci#define ACLK_USBOTG		189
25662306a36Sopenharmony_ci#define ACLK_PDGMAC		190
25762306a36Sopenharmony_ci#define ACLK_GMAC		191
25862306a36Sopenharmony_ci#define ACLK_PDNPU_DIV		192
25962306a36Sopenharmony_ci#define ACLK_PDNPU_NP5		193
26062306a36Sopenharmony_ci#define ACLK_PDNPU		194
26162306a36Sopenharmony_ci#define ACLK_NPU		195
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci/* hclk */
26462306a36Sopenharmony_ci#define HCLK_PDCORE_NIU		200
26562306a36Sopenharmony_ci#define HCLK_PDUSB		201
26662306a36Sopenharmony_ci#define HCLK_PDCRYPTO		202
26762306a36Sopenharmony_ci#define HCLK_CRYPTO		203
26862306a36Sopenharmony_ci#define HCLK_PDAUDIO		204
26962306a36Sopenharmony_ci#define HCLK_I2S0		205
27062306a36Sopenharmony_ci#define HCLK_I2S1		206
27162306a36Sopenharmony_ci#define HCLK_I2S2		207
27262306a36Sopenharmony_ci#define HCLK_PDM		208
27362306a36Sopenharmony_ci#define HCLK_AUDPWM		209
27462306a36Sopenharmony_ci#define HCLK_PDVEPU		210
27562306a36Sopenharmony_ci#define HCLK_VENC		211
27662306a36Sopenharmony_ci#define HCLK_PDVDEC		212
27762306a36Sopenharmony_ci#define HCLK_PDJPEG		213
27862306a36Sopenharmony_ci#define HCLK_VDEC		214
27962306a36Sopenharmony_ci#define HCLK_JPEG		215
28062306a36Sopenharmony_ci#define HCLK_PDVO		216
28162306a36Sopenharmony_ci#define HCLK_RGA		217
28262306a36Sopenharmony_ci#define HCLK_VOP		218
28362306a36Sopenharmony_ci#define HCLK_IEP		219
28462306a36Sopenharmony_ci#define HCLK_PDVI		220
28562306a36Sopenharmony_ci#define HCLK_ISP		221
28662306a36Sopenharmony_ci#define HCLK_CIF		222
28762306a36Sopenharmony_ci#define HCLK_CIFLITE		223
28862306a36Sopenharmony_ci#define HCLK_PDISPP		224
28962306a36Sopenharmony_ci#define HCLK_ISPP		225
29062306a36Sopenharmony_ci#define HCLK_PDPHP		226
29162306a36Sopenharmony_ci#define HCLK_PDSDMMC		227
29262306a36Sopenharmony_ci#define HCLK_SDMMC		228
29362306a36Sopenharmony_ci#define HCLK_PDSDIO		229
29462306a36Sopenharmony_ci#define HCLK_SDIO		230
29562306a36Sopenharmony_ci#define HCLK_PDNVM		231
29662306a36Sopenharmony_ci#define HCLK_EMMC		232
29762306a36Sopenharmony_ci#define HCLK_NANDC		233
29862306a36Sopenharmony_ci#define HCLK_SFC		234
29962306a36Sopenharmony_ci#define HCLK_SFCXIP		235
30062306a36Sopenharmony_ci#define HCLK_PDBUS		236
30162306a36Sopenharmony_ci#define HCLK_USBHOST		237
30262306a36Sopenharmony_ci#define HCLK_USBHOST_ARB	238
30362306a36Sopenharmony_ci#define HCLK_PDNPU		239
30462306a36Sopenharmony_ci#define HCLK_NPU		240
30562306a36Sopenharmony_ci
30662306a36Sopenharmony_ci/* pclk */
30762306a36Sopenharmony_ci#define PCLK_CPUPVTM		245
30862306a36Sopenharmony_ci#define PCLK_PDBUS		246
30962306a36Sopenharmony_ci#define PCLK_DCF		247
31062306a36Sopenharmony_ci#define PCLK_WDT		248
31162306a36Sopenharmony_ci#define PCLK_MAILBOX		249
31262306a36Sopenharmony_ci#define PCLK_UART0		250
31362306a36Sopenharmony_ci#define PCLK_UART2		251
31462306a36Sopenharmony_ci#define PCLK_UART3		252
31562306a36Sopenharmony_ci#define PCLK_UART4		253
31662306a36Sopenharmony_ci#define PCLK_UART5		254
31762306a36Sopenharmony_ci#define PCLK_I2C1		255
31862306a36Sopenharmony_ci#define PCLK_I2C3		256
31962306a36Sopenharmony_ci#define PCLK_I2C4		257
32062306a36Sopenharmony_ci#define PCLK_I2C5		258
32162306a36Sopenharmony_ci#define PCLK_SPI1		259
32262306a36Sopenharmony_ci#define PCLK_PWM2		261
32362306a36Sopenharmony_ci#define PCLK_GPIO1		262
32462306a36Sopenharmony_ci#define PCLK_GPIO2		263
32562306a36Sopenharmony_ci#define PCLK_GPIO3		264
32662306a36Sopenharmony_ci#define PCLK_GPIO4		265
32762306a36Sopenharmony_ci#define PCLK_SARADC		266
32862306a36Sopenharmony_ci#define PCLK_TIMER		267
32962306a36Sopenharmony_ci#define PCLK_DECOM		268
33062306a36Sopenharmony_ci#define PCLK_CAN		269
33162306a36Sopenharmony_ci#define PCLK_NPU_TSADC		270
33262306a36Sopenharmony_ci#define PCLK_CPU_TSADC		271
33362306a36Sopenharmony_ci#define PCLK_ACDCDIG		272
33462306a36Sopenharmony_ci#define PCLK_PDVO		273
33562306a36Sopenharmony_ci#define PCLK_DSIHOST		274
33662306a36Sopenharmony_ci#define PCLK_PDVI		275
33762306a36Sopenharmony_ci#define PCLK_CSIHOST		276
33862306a36Sopenharmony_ci#define PCLK_PDGMAC		277
33962306a36Sopenharmony_ci#define PCLK_GMAC		278
34062306a36Sopenharmony_ci#define PCLK_PDDDR		279
34162306a36Sopenharmony_ci#define PCLK_DDR_MON		280
34262306a36Sopenharmony_ci#define PCLK_PDNPU		281
34362306a36Sopenharmony_ci#define PCLK_NPUPVTM		282
34462306a36Sopenharmony_ci#define PCLK_PDTOP		283
34562306a36Sopenharmony_ci#define PCLK_TOPCRU		284
34662306a36Sopenharmony_ci#define PCLK_TOPGRF		285
34762306a36Sopenharmony_ci#define PCLK_CPUEMADET		286
34862306a36Sopenharmony_ci#define PCLK_DDRPHY		287
34962306a36Sopenharmony_ci#define PCLK_DSIPHY		289
35062306a36Sopenharmony_ci#define PCLK_CSIPHY0		290
35162306a36Sopenharmony_ci#define PCLK_CSIPHY1		291
35262306a36Sopenharmony_ci#define PCLK_USBPHY_HOST	292
35362306a36Sopenharmony_ci#define PCLK_USBPHY_OTG		293
35462306a36Sopenharmony_ci#define PCLK_OTP		294
35562306a36Sopenharmony_ci
35662306a36Sopenharmony_ci#define CLK_NR_CLKS		(PCLK_OTP + 1)
35762306a36Sopenharmony_ci
35862306a36Sopenharmony_ci/* pmu soft-reset indices */
35962306a36Sopenharmony_ci
36062306a36Sopenharmony_ci/* pmu_cru_softrst_con0 */
36162306a36Sopenharmony_ci#define SRST_PDPMU_NIU_P	0
36262306a36Sopenharmony_ci#define SRST_PMU_SGRF_P		1
36362306a36Sopenharmony_ci#define SRST_PMU_SGRF_REMAP_P	2
36462306a36Sopenharmony_ci#define SRST_I2C0_P		3
36562306a36Sopenharmony_ci#define SRST_I2C0		4
36662306a36Sopenharmony_ci#define SRST_I2C2_P		7
36762306a36Sopenharmony_ci#define SRST_I2C2		8
36862306a36Sopenharmony_ci#define SRST_UART1_P		9
36962306a36Sopenharmony_ci#define SRST_UART1		10
37062306a36Sopenharmony_ci#define SRST_PWM0_P		11
37162306a36Sopenharmony_ci#define SRST_PWM0		12
37262306a36Sopenharmony_ci#define SRST_PWM1_P		13
37362306a36Sopenharmony_ci#define SRST_PWM1		14
37462306a36Sopenharmony_ci#define SRST_DDR_FAIL_SAFE	15
37562306a36Sopenharmony_ci
37662306a36Sopenharmony_ci/* pmu_cru_softrst_con1 */
37762306a36Sopenharmony_ci#define SRST_GPIO0_P		17
37862306a36Sopenharmony_ci#define SRST_GPIO0_DB		18
37962306a36Sopenharmony_ci#define SRST_SPI0_P		19
38062306a36Sopenharmony_ci#define SRST_SPI0		20
38162306a36Sopenharmony_ci#define SRST_PMUGRF_P		21
38262306a36Sopenharmony_ci#define SRST_CHIPVEROTP_P	22
38362306a36Sopenharmony_ci#define SRST_PMUPVTM		24
38462306a36Sopenharmony_ci#define SRST_PMUPVTM_P		25
38562306a36Sopenharmony_ci#define SRST_PMUCRU_P		30
38662306a36Sopenharmony_ci
38762306a36Sopenharmony_ci/* soft-reset indices */
38862306a36Sopenharmony_ci
38962306a36Sopenharmony_ci/* cru_softrst_con0 */
39062306a36Sopenharmony_ci#define SRST_CORE0_PO		0
39162306a36Sopenharmony_ci#define SRST_CORE1_PO		1
39262306a36Sopenharmony_ci#define SRST_CORE2_PO		2
39362306a36Sopenharmony_ci#define SRST_CORE3_PO		3
39462306a36Sopenharmony_ci#define SRST_CORE0		4
39562306a36Sopenharmony_ci#define SRST_CORE1		5
39662306a36Sopenharmony_ci#define SRST_CORE2		6
39762306a36Sopenharmony_ci#define SRST_CORE3		7
39862306a36Sopenharmony_ci#define SRST_CORE0_DBG		8
39962306a36Sopenharmony_ci#define SRST_CORE1_DBG		9
40062306a36Sopenharmony_ci#define SRST_CORE2_DBG		10
40162306a36Sopenharmony_ci#define SRST_CORE3_DBG		11
40262306a36Sopenharmony_ci#define SRST_NL2		12
40362306a36Sopenharmony_ci#define SRST_CORE_NIU_A		13
40462306a36Sopenharmony_ci#define SRST_DBG_DAPLITE_P	14
40562306a36Sopenharmony_ci#define SRST_DAPLITE_P		15
40662306a36Sopenharmony_ci
40762306a36Sopenharmony_ci/* cru_softrst_con1 */
40862306a36Sopenharmony_ci#define SRST_PDBUS_NIU1_A	16
40962306a36Sopenharmony_ci#define SRST_PDBUS_NIU1_H	17
41062306a36Sopenharmony_ci#define SRST_PDBUS_NIU1_P	18
41162306a36Sopenharmony_ci#define SRST_PDBUS_NIU2_A	19
41262306a36Sopenharmony_ci#define SRST_PDBUS_NIU2_H	20
41362306a36Sopenharmony_ci#define SRST_PDBUS_NIU3_A	21
41462306a36Sopenharmony_ci#define SRST_PDBUS_NIU3_H	22
41562306a36Sopenharmony_ci#define SRST_PDBUS_HOLD_NIU1_A	23
41662306a36Sopenharmony_ci#define SRST_DBG_NIU_P		24
41762306a36Sopenharmony_ci#define SRST_PDCORE_NIIU_H	25
41862306a36Sopenharmony_ci#define SRST_MUC_NIU		26
41962306a36Sopenharmony_ci#define SRST_DCF_A		29
42062306a36Sopenharmony_ci#define SRST_DCF_P		30
42162306a36Sopenharmony_ci#define SRST_SYSTEM_SRAM_A	31
42262306a36Sopenharmony_ci
42362306a36Sopenharmony_ci/* cru_softrst_con2 */
42462306a36Sopenharmony_ci#define SRST_I2C1_P		32
42562306a36Sopenharmony_ci#define SRST_I2C1		33
42662306a36Sopenharmony_ci#define SRST_I2C3_P		34
42762306a36Sopenharmony_ci#define SRST_I2C3		35
42862306a36Sopenharmony_ci#define SRST_I2C4_P		36
42962306a36Sopenharmony_ci#define SRST_I2C4		37
43062306a36Sopenharmony_ci#define SRST_I2C5_P		38
43162306a36Sopenharmony_ci#define SRST_I2C5		39
43262306a36Sopenharmony_ci#define SRST_SPI1_P		40
43362306a36Sopenharmony_ci#define SRST_SPI1		41
43462306a36Sopenharmony_ci#define SRST_MCU_CORE		42
43562306a36Sopenharmony_ci#define SRST_PWM2_P		44
43662306a36Sopenharmony_ci#define SRST_PWM2		45
43762306a36Sopenharmony_ci#define SRST_SPINLOCK_A		46
43862306a36Sopenharmony_ci
43962306a36Sopenharmony_ci/* cru_softrst_con3 */
44062306a36Sopenharmony_ci#define SRST_UART0_P		48
44162306a36Sopenharmony_ci#define SRST_UART0		49
44262306a36Sopenharmony_ci#define SRST_UART2_P		50
44362306a36Sopenharmony_ci#define SRST_UART2		51
44462306a36Sopenharmony_ci#define SRST_UART3_P		52
44562306a36Sopenharmony_ci#define SRST_UART3		53
44662306a36Sopenharmony_ci#define SRST_UART4_P		54
44762306a36Sopenharmony_ci#define SRST_UART4		55
44862306a36Sopenharmony_ci#define SRST_UART5_P		56
44962306a36Sopenharmony_ci#define SRST_UART5		57
45062306a36Sopenharmony_ci#define SRST_WDT_P		58
45162306a36Sopenharmony_ci#define SRST_SARADC_P		59
45262306a36Sopenharmony_ci#define SRST_GRF_P		61
45362306a36Sopenharmony_ci#define SRST_TIMER_P		62
45462306a36Sopenharmony_ci#define SRST_MAILBOX_P		63
45562306a36Sopenharmony_ci
45662306a36Sopenharmony_ci/* cru_softrst_con4 */
45762306a36Sopenharmony_ci#define SRST_TIMER0		64
45862306a36Sopenharmony_ci#define SRST_TIMER1		65
45962306a36Sopenharmony_ci#define SRST_TIMER2		66
46062306a36Sopenharmony_ci#define SRST_TIMER3		67
46162306a36Sopenharmony_ci#define SRST_TIMER4		68
46262306a36Sopenharmony_ci#define SRST_TIMER5		69
46362306a36Sopenharmony_ci#define SRST_INTMUX_P		70
46462306a36Sopenharmony_ci#define SRST_GPIO1_P		72
46562306a36Sopenharmony_ci#define SRST_GPIO1_DB		73
46662306a36Sopenharmony_ci#define SRST_GPIO2_P		74
46762306a36Sopenharmony_ci#define SRST_GPIO2_DB		75
46862306a36Sopenharmony_ci#define SRST_GPIO3_P		76
46962306a36Sopenharmony_ci#define SRST_GPIO3_DB		77
47062306a36Sopenharmony_ci#define SRST_GPIO4_P		78
47162306a36Sopenharmony_ci#define SRST_GPIO4_DB		79
47262306a36Sopenharmony_ci
47362306a36Sopenharmony_ci/* cru_softrst_con5 */
47462306a36Sopenharmony_ci#define SRST_CAN_P		80
47562306a36Sopenharmony_ci#define SRST_CAN		81
47662306a36Sopenharmony_ci#define SRST_DECOM_A		85
47762306a36Sopenharmony_ci#define SRST_DECOM_P		86
47862306a36Sopenharmony_ci#define SRST_DECOM_D		87
47962306a36Sopenharmony_ci#define SRST_PDCRYPTO_NIU_A	88
48062306a36Sopenharmony_ci#define SRST_PDCRYPTO_NIU_H	89
48162306a36Sopenharmony_ci#define SRST_CRYPTO_A		90
48262306a36Sopenharmony_ci#define SRST_CRYPTO_H		91
48362306a36Sopenharmony_ci#define SRST_CRYPTO_CORE	92
48462306a36Sopenharmony_ci#define SRST_CRYPTO_PKA		93
48562306a36Sopenharmony_ci#define SRST_SGRF_P		95
48662306a36Sopenharmony_ci
48762306a36Sopenharmony_ci/* cru_softrst_con6 */
48862306a36Sopenharmony_ci#define SRST_PDAUDIO_NIU_H	96
48962306a36Sopenharmony_ci#define SRST_PDAUDIO_NIU_P	97
49062306a36Sopenharmony_ci#define SRST_I2S0_H		98
49162306a36Sopenharmony_ci#define SRST_I2S0_TX_M		99
49262306a36Sopenharmony_ci#define SRST_I2S0_RX_M		100
49362306a36Sopenharmony_ci#define SRST_I2S1_H		101
49462306a36Sopenharmony_ci#define SRST_I2S1_M		102
49562306a36Sopenharmony_ci#define SRST_I2S2_H		103
49662306a36Sopenharmony_ci#define SRST_I2S2_M		104
49762306a36Sopenharmony_ci#define SRST_PDM_H		105
49862306a36Sopenharmony_ci#define SRST_PDM_M		106
49962306a36Sopenharmony_ci#define SRST_AUDPWM_H		107
50062306a36Sopenharmony_ci#define SRST_AUDPWM		108
50162306a36Sopenharmony_ci#define SRST_ACDCDIG_P		109
50262306a36Sopenharmony_ci#define SRST_ACDCDIG		110
50362306a36Sopenharmony_ci
50462306a36Sopenharmony_ci/* cru_softrst_con7 */
50562306a36Sopenharmony_ci#define SRST_PDVEPU_NIU_A	112
50662306a36Sopenharmony_ci#define SRST_PDVEPU_NIU_H	113
50762306a36Sopenharmony_ci#define SRST_VENC_A		114
50862306a36Sopenharmony_ci#define SRST_VENC_H		115
50962306a36Sopenharmony_ci#define SRST_VENC_CORE		116
51062306a36Sopenharmony_ci#define SRST_PDVDEC_NIU_A	117
51162306a36Sopenharmony_ci#define SRST_PDVDEC_NIU_H	118
51262306a36Sopenharmony_ci#define SRST_VDEC_A		119
51362306a36Sopenharmony_ci#define SRST_VDEC_H		120
51462306a36Sopenharmony_ci#define SRST_VDEC_CORE		121
51562306a36Sopenharmony_ci#define SRST_VDEC_CA		122
51662306a36Sopenharmony_ci#define SRST_VDEC_HEVC_CA	123
51762306a36Sopenharmony_ci#define SRST_PDJPEG_NIU_A	124
51862306a36Sopenharmony_ci#define SRST_PDJPEG_NIU_H	125
51962306a36Sopenharmony_ci#define SRST_JPEG_A		126
52062306a36Sopenharmony_ci#define SRST_JPEG_H		127
52162306a36Sopenharmony_ci
52262306a36Sopenharmony_ci/* cru_softrst_con8 */
52362306a36Sopenharmony_ci#define SRST_PDVO_NIU_A		128
52462306a36Sopenharmony_ci#define SRST_PDVO_NIU_H		129
52562306a36Sopenharmony_ci#define SRST_PDVO_NIU_P		130
52662306a36Sopenharmony_ci#define SRST_RGA_A		131
52762306a36Sopenharmony_ci#define SRST_RGA_H		132
52862306a36Sopenharmony_ci#define SRST_RGA_CORE		133
52962306a36Sopenharmony_ci#define SRST_VOP_A		134
53062306a36Sopenharmony_ci#define SRST_VOP_H		135
53162306a36Sopenharmony_ci#define SRST_VOP_D		136
53262306a36Sopenharmony_ci#define SRST_TXBYTEHS_DSIHOST	137
53362306a36Sopenharmony_ci#define SRST_DSIHOST_P		138
53462306a36Sopenharmony_ci#define SRST_IEP_A		139
53562306a36Sopenharmony_ci#define SRST_IEP_H		140
53662306a36Sopenharmony_ci#define SRST_IEP_CORE		141
53762306a36Sopenharmony_ci#define SRST_ISP_RX_P		142
53862306a36Sopenharmony_ci
53962306a36Sopenharmony_ci/* cru_softrst_con9 */
54062306a36Sopenharmony_ci#define SRST_PDVI_NIU_A		144
54162306a36Sopenharmony_ci#define SRST_PDVI_NIU_H		145
54262306a36Sopenharmony_ci#define SRST_PDVI_NIU_P		146
54362306a36Sopenharmony_ci#define SRST_ISP		147
54462306a36Sopenharmony_ci#define SRST_CIF_A		148
54562306a36Sopenharmony_ci#define SRST_CIF_H		149
54662306a36Sopenharmony_ci#define SRST_CIF_D		150
54762306a36Sopenharmony_ci#define SRST_CIF_P		151
54862306a36Sopenharmony_ci#define SRST_CIF_I		152
54962306a36Sopenharmony_ci#define SRST_CIF_RX_P		153
55062306a36Sopenharmony_ci#define SRST_PDISPP_NIU_A	154
55162306a36Sopenharmony_ci#define SRST_PDISPP_NIU_H	155
55262306a36Sopenharmony_ci#define SRST_ISPP_A		156
55362306a36Sopenharmony_ci#define SRST_ISPP_H		157
55462306a36Sopenharmony_ci#define SRST_ISPP		158
55562306a36Sopenharmony_ci#define SRST_CSIHOST_P		159
55662306a36Sopenharmony_ci
55762306a36Sopenharmony_ci/* cru_softrst_con10 */
55862306a36Sopenharmony_ci#define SRST_PDPHPMID_NIU_A	160
55962306a36Sopenharmony_ci#define SRST_PDPHPMID_NIU_H	161
56062306a36Sopenharmony_ci#define SRST_PDNVM_NIU_H	163
56162306a36Sopenharmony_ci#define SRST_SDMMC_H		164
56262306a36Sopenharmony_ci#define SRST_SDIO_H		165
56362306a36Sopenharmony_ci#define SRST_EMMC_H		166
56462306a36Sopenharmony_ci#define SRST_SFC_H		167
56562306a36Sopenharmony_ci#define SRST_SFCXIP_H		168
56662306a36Sopenharmony_ci#define SRST_SFC		169
56762306a36Sopenharmony_ci#define SRST_NANDC_H		170
56862306a36Sopenharmony_ci#define SRST_NANDC		171
56962306a36Sopenharmony_ci#define SRST_PDSDMMC_H		173
57062306a36Sopenharmony_ci#define SRST_PDSDIO_H		174
57162306a36Sopenharmony_ci
57262306a36Sopenharmony_ci/* cru_softrst_con11 */
57362306a36Sopenharmony_ci#define SRST_PDUSB_NIU_A	176
57462306a36Sopenharmony_ci#define SRST_PDUSB_NIU_H	177
57562306a36Sopenharmony_ci#define SRST_USBHOST_H		178
57662306a36Sopenharmony_ci#define SRST_USBHOST_ARB_H	179
57762306a36Sopenharmony_ci#define SRST_USBHOST_UTMI	180
57862306a36Sopenharmony_ci#define SRST_USBOTG_A		181
57962306a36Sopenharmony_ci#define SRST_USBPHY_OTG_P	182
58062306a36Sopenharmony_ci#define SRST_USBPHY_HOST_P	183
58162306a36Sopenharmony_ci#define SRST_USBPHYPOR_OTG	184
58262306a36Sopenharmony_ci#define SRST_USBPHYPOR_HOST	185
58362306a36Sopenharmony_ci#define SRST_PDGMAC_NIU_A	188
58462306a36Sopenharmony_ci#define SRST_PDGMAC_NIU_P	189
58562306a36Sopenharmony_ci#define SRST_GMAC_A		190
58662306a36Sopenharmony_ci
58762306a36Sopenharmony_ci/* cru_softrst_con12 */
58862306a36Sopenharmony_ci#define SRST_DDR_DFICTL_P	193
58962306a36Sopenharmony_ci#define SRST_DDR_MON_P		194
59062306a36Sopenharmony_ci#define SRST_DDR_STANDBY_P	195
59162306a36Sopenharmony_ci#define SRST_DDR_GRF_P		196
59262306a36Sopenharmony_ci#define SRST_DDR_MSCH_P		197
59362306a36Sopenharmony_ci#define SRST_DDR_SPLIT_A	198
59462306a36Sopenharmony_ci#define SRST_DDR_MSCH		199
59562306a36Sopenharmony_ci#define SRST_DDR_DFICTL		202
59662306a36Sopenharmony_ci#define SRST_DDR_STANDBY	203
59762306a36Sopenharmony_ci#define SRST_NPUMCU_NIU		205
59862306a36Sopenharmony_ci#define SRST_DDRPHY_P		206
59962306a36Sopenharmony_ci#define SRST_DDRPHY		207
60062306a36Sopenharmony_ci
60162306a36Sopenharmony_ci/* cru_softrst_con13 */
60262306a36Sopenharmony_ci#define SRST_PDNPU_NIU_A	208
60362306a36Sopenharmony_ci#define SRST_PDNPU_NIU_H	209
60462306a36Sopenharmony_ci#define SRST_PDNPU_NIU_P	210
60562306a36Sopenharmony_ci#define SRST_NPU_A		211
60662306a36Sopenharmony_ci#define SRST_NPU_H		212
60762306a36Sopenharmony_ci#define SRST_NPU		213
60862306a36Sopenharmony_ci#define SRST_NPUPVTM_P		214
60962306a36Sopenharmony_ci#define SRST_NPUPVTM		215
61062306a36Sopenharmony_ci#define SRST_NPU_TSADC_P	216
61162306a36Sopenharmony_ci#define SRST_NPU_TSADC		217
61262306a36Sopenharmony_ci#define SRST_NPU_TSADCPHY	218
61362306a36Sopenharmony_ci#define SRST_CIFLITE_A		220
61462306a36Sopenharmony_ci#define SRST_CIFLITE_H		221
61562306a36Sopenharmony_ci#define SRST_CIFLITE_D		222
61662306a36Sopenharmony_ci#define SRST_CIFLITE_RX_P	223
61762306a36Sopenharmony_ci
61862306a36Sopenharmony_ci/* cru_softrst_con14 */
61962306a36Sopenharmony_ci#define SRST_TOPNIU_P		224
62062306a36Sopenharmony_ci#define SRST_TOPCRU_P		225
62162306a36Sopenharmony_ci#define SRST_TOPGRF_P		226
62262306a36Sopenharmony_ci#define SRST_CPUEMADET_P	227
62362306a36Sopenharmony_ci#define SRST_CSIPHY0_P		228
62462306a36Sopenharmony_ci#define SRST_CSIPHY1_P		229
62562306a36Sopenharmony_ci#define SRST_DSIPHY_P		230
62662306a36Sopenharmony_ci#define SRST_CPU_TSADC_P	232
62762306a36Sopenharmony_ci#define SRST_CPU_TSADC		233
62862306a36Sopenharmony_ci#define SRST_CPU_TSADCPHY	234
62962306a36Sopenharmony_ci#define SRST_CPUPVTM_P		235
63062306a36Sopenharmony_ci#define SRST_CPUPVTM		236
63162306a36Sopenharmony_ci
63262306a36Sopenharmony_ci#endif
633