Home | History | Annotate | Line # | Download | only in clock
      1  1.1  jmcneill /*	$NetBSD: qcom,gcc-msm8953.h,v 1.1.1.1 2021/11/07 16:50:00 jmcneill Exp $	*/
      2  1.1  jmcneill 
      3  1.1  jmcneill /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
      4  1.1  jmcneill 
      5  1.1  jmcneill #ifndef _DT_BINDINGS_CLK_MSM_GCC_8953_H
      6  1.1  jmcneill #define _DT_BINDINGS_CLK_MSM_GCC_8953_H
      7  1.1  jmcneill 
      8  1.1  jmcneill /* Clocks */
      9  1.1  jmcneill #define APC0_DROOP_DETECTOR_CLK_SRC		0
     10  1.1  jmcneill #define APC1_DROOP_DETECTOR_CLK_SRC		1
     11  1.1  jmcneill #define APSS_AHB_CLK_SRC			2
     12  1.1  jmcneill #define BLSP1_QUP1_I2C_APPS_CLK_SRC		3
     13  1.1  jmcneill #define BLSP1_QUP1_SPI_APPS_CLK_SRC		4
     14  1.1  jmcneill #define BLSP1_QUP2_I2C_APPS_CLK_SRC		5
     15  1.1  jmcneill #define BLSP1_QUP2_SPI_APPS_CLK_SRC		6
     16  1.1  jmcneill #define BLSP1_QUP3_I2C_APPS_CLK_SRC		7
     17  1.1  jmcneill #define BLSP1_QUP3_SPI_APPS_CLK_SRC		8
     18  1.1  jmcneill #define BLSP1_QUP4_I2C_APPS_CLK_SRC		9
     19  1.1  jmcneill #define BLSP1_QUP4_SPI_APPS_CLK_SRC		10
     20  1.1  jmcneill #define BLSP1_UART1_APPS_CLK_SRC		11
     21  1.1  jmcneill #define BLSP1_UART2_APPS_CLK_SRC		12
     22  1.1  jmcneill #define BLSP2_QUP1_I2C_APPS_CLK_SRC		13
     23  1.1  jmcneill #define BLSP2_QUP1_SPI_APPS_CLK_SRC		14
     24  1.1  jmcneill #define BLSP2_QUP2_I2C_APPS_CLK_SRC		15
     25  1.1  jmcneill #define BLSP2_QUP2_SPI_APPS_CLK_SRC		16
     26  1.1  jmcneill #define BLSP2_QUP3_I2C_APPS_CLK_SRC		17
     27  1.1  jmcneill #define BLSP2_QUP3_SPI_APPS_CLK_SRC		18
     28  1.1  jmcneill #define BLSP2_QUP4_I2C_APPS_CLK_SRC		19
     29  1.1  jmcneill #define BLSP2_QUP4_SPI_APPS_CLK_SRC		20
     30  1.1  jmcneill #define BLSP2_UART1_APPS_CLK_SRC		21
     31  1.1  jmcneill #define BLSP2_UART2_APPS_CLK_SRC		22
     32  1.1  jmcneill #define BYTE0_CLK_SRC				23
     33  1.1  jmcneill #define BYTE1_CLK_SRC				24
     34  1.1  jmcneill #define CAMSS_GP0_CLK_SRC			25
     35  1.1  jmcneill #define CAMSS_GP1_CLK_SRC			26
     36  1.1  jmcneill #define CAMSS_TOP_AHB_CLK_SRC			27
     37  1.1  jmcneill #define CCI_CLK_SRC				28
     38  1.1  jmcneill #define CPP_CLK_SRC				29
     39  1.1  jmcneill #define CRYPTO_CLK_SRC				30
     40  1.1  jmcneill #define CSI0PHYTIMER_CLK_SRC			31
     41  1.1  jmcneill #define CSI0P_CLK_SRC				32
     42  1.1  jmcneill #define CSI0_CLK_SRC				33
     43  1.1  jmcneill #define CSI1PHYTIMER_CLK_SRC			34
     44  1.1  jmcneill #define CSI1P_CLK_SRC				35
     45  1.1  jmcneill #define CSI1_CLK_SRC				36
     46  1.1  jmcneill #define CSI2PHYTIMER_CLK_SRC			37
     47  1.1  jmcneill #define CSI2P_CLK_SRC				38
     48  1.1  jmcneill #define CSI2_CLK_SRC				39
     49  1.1  jmcneill #define ESC0_CLK_SRC				40
     50  1.1  jmcneill #define ESC1_CLK_SRC				41
     51  1.1  jmcneill #define GCC_APC0_DROOP_DETECTOR_GPLL0_CLK	42
     52  1.1  jmcneill #define GCC_APC1_DROOP_DETECTOR_GPLL0_CLK	43
     53  1.1  jmcneill #define GCC_APSS_AHB_CLK			44
     54  1.1  jmcneill #define GCC_APSS_AXI_CLK			45
     55  1.1  jmcneill #define GCC_APSS_TCU_ASYNC_CLK			46
     56  1.1  jmcneill #define GCC_BIMC_GFX_CLK			47
     57  1.1  jmcneill #define GCC_BIMC_GPU_CLK			48
     58  1.1  jmcneill #define GCC_BLSP1_AHB_CLK			49
     59  1.1  jmcneill #define GCC_BLSP1_QUP1_I2C_APPS_CLK		50
     60  1.1  jmcneill #define GCC_BLSP1_QUP1_SPI_APPS_CLK		51
     61  1.1  jmcneill #define GCC_BLSP1_QUP2_I2C_APPS_CLK		52
     62  1.1  jmcneill #define GCC_BLSP1_QUP2_SPI_APPS_CLK		53
     63  1.1  jmcneill #define GCC_BLSP1_QUP3_I2C_APPS_CLK		54
     64  1.1  jmcneill #define GCC_BLSP1_QUP3_SPI_APPS_CLK		55
     65  1.1  jmcneill #define GCC_BLSP1_QUP4_I2C_APPS_CLK		56
     66  1.1  jmcneill #define GCC_BLSP1_QUP4_SPI_APPS_CLK		57
     67  1.1  jmcneill #define GCC_BLSP1_UART1_APPS_CLK		58
     68  1.1  jmcneill #define GCC_BLSP1_UART2_APPS_CLK		59
     69  1.1  jmcneill #define GCC_BLSP2_AHB_CLK			60
     70  1.1  jmcneill #define GCC_BLSP2_QUP1_I2C_APPS_CLK		61
     71  1.1  jmcneill #define GCC_BLSP2_QUP1_SPI_APPS_CLK		62
     72  1.1  jmcneill #define GCC_BLSP2_QUP2_I2C_APPS_CLK		63
     73  1.1  jmcneill #define GCC_BLSP2_QUP2_SPI_APPS_CLK		64
     74  1.1  jmcneill #define GCC_BLSP2_QUP3_I2C_APPS_CLK		65
     75  1.1  jmcneill #define GCC_BLSP2_QUP3_SPI_APPS_CLK		66
     76  1.1  jmcneill #define GCC_BLSP2_QUP4_I2C_APPS_CLK		67
     77  1.1  jmcneill #define GCC_BLSP2_QUP4_SPI_APPS_CLK		68
     78  1.1  jmcneill #define GCC_BLSP2_UART1_APPS_CLK		69
     79  1.1  jmcneill #define GCC_BLSP2_UART2_APPS_CLK		70
     80  1.1  jmcneill #define GCC_BOOT_ROM_AHB_CLK			71
     81  1.1  jmcneill #define GCC_CAMSS_AHB_CLK			72
     82  1.1  jmcneill #define GCC_CAMSS_CCI_AHB_CLK			73
     83  1.1  jmcneill #define GCC_CAMSS_CCI_CLK			74
     84  1.1  jmcneill #define GCC_CAMSS_CPP_AHB_CLK			75
     85  1.1  jmcneill #define GCC_CAMSS_CPP_AXI_CLK			76
     86  1.1  jmcneill #define GCC_CAMSS_CPP_CLK			77
     87  1.1  jmcneill #define GCC_CAMSS_CSI0PHYTIMER_CLK		78
     88  1.1  jmcneill #define GCC_CAMSS_CSI0PHY_CLK			79
     89  1.1  jmcneill #define GCC_CAMSS_CSI0PIX_CLK			80
     90  1.1  jmcneill #define GCC_CAMSS_CSI0RDI_CLK			81
     91  1.1  jmcneill #define GCC_CAMSS_CSI0_AHB_CLK			82
     92  1.1  jmcneill #define GCC_CAMSS_CSI0_CLK			83
     93  1.1  jmcneill #define GCC_CAMSS_CSI0_CSIPHY_3P_CLK		84
     94  1.1  jmcneill #define GCC_CAMSS_CSI1PHYTIMER_CLK		85
     95  1.1  jmcneill #define GCC_CAMSS_CSI1PHY_CLK			86
     96  1.1  jmcneill #define GCC_CAMSS_CSI1PIX_CLK			87
     97  1.1  jmcneill #define GCC_CAMSS_CSI1RDI_CLK			88
     98  1.1  jmcneill #define GCC_CAMSS_CSI1_AHB_CLK			89
     99  1.1  jmcneill #define GCC_CAMSS_CSI1_CLK			90
    100  1.1  jmcneill #define GCC_CAMSS_CSI1_CSIPHY_3P_CLK		91
    101  1.1  jmcneill #define GCC_CAMSS_CSI2PHYTIMER_CLK		92
    102  1.1  jmcneill #define GCC_CAMSS_CSI2PHY_CLK			93
    103  1.1  jmcneill #define GCC_CAMSS_CSI2PIX_CLK			94
    104  1.1  jmcneill #define GCC_CAMSS_CSI2RDI_CLK			95
    105  1.1  jmcneill #define GCC_CAMSS_CSI2_AHB_CLK			96
    106  1.1  jmcneill #define GCC_CAMSS_CSI2_CLK			97
    107  1.1  jmcneill #define GCC_CAMSS_CSI2_CSIPHY_3P_CLK		98
    108  1.1  jmcneill #define GCC_CAMSS_CSI_VFE0_CLK			99
    109  1.1  jmcneill #define GCC_CAMSS_CSI_VFE1_CLK			100
    110  1.1  jmcneill #define GCC_CAMSS_GP0_CLK			101
    111  1.1  jmcneill #define GCC_CAMSS_GP1_CLK			102
    112  1.1  jmcneill #define GCC_CAMSS_ISPIF_AHB_CLK			103
    113  1.1  jmcneill #define GCC_CAMSS_JPEG0_CLK			104
    114  1.1  jmcneill #define GCC_CAMSS_JPEG_AHB_CLK			105
    115  1.1  jmcneill #define GCC_CAMSS_JPEG_AXI_CLK			106
    116  1.1  jmcneill #define GCC_CAMSS_MCLK0_CLK			107
    117  1.1  jmcneill #define GCC_CAMSS_MCLK1_CLK			108
    118  1.1  jmcneill #define GCC_CAMSS_MCLK2_CLK			109
    119  1.1  jmcneill #define GCC_CAMSS_MCLK3_CLK			110
    120  1.1  jmcneill #define GCC_CAMSS_MICRO_AHB_CLK			111
    121  1.1  jmcneill #define GCC_CAMSS_TOP_AHB_CLK			112
    122  1.1  jmcneill #define GCC_CAMSS_VFE0_AHB_CLK			113
    123  1.1  jmcneill #define GCC_CAMSS_VFE0_AXI_CLK			114
    124  1.1  jmcneill #define GCC_CAMSS_VFE0_CLK			115
    125  1.1  jmcneill #define GCC_CAMSS_VFE1_AHB_CLK			116
    126  1.1  jmcneill #define GCC_CAMSS_VFE1_AXI_CLK			117
    127  1.1  jmcneill #define GCC_CAMSS_VFE1_CLK			118
    128  1.1  jmcneill #define GCC_CPP_TBU_CLK				119
    129  1.1  jmcneill #define GCC_CRYPTO_AHB_CLK			120
    130  1.1  jmcneill #define GCC_CRYPTO_AXI_CLK			121
    131  1.1  jmcneill #define GCC_CRYPTO_CLK				122
    132  1.1  jmcneill #define GCC_DCC_CLK				123
    133  1.1  jmcneill #define GCC_GP1_CLK				124
    134  1.1  jmcneill #define GCC_GP2_CLK				125
    135  1.1  jmcneill #define GCC_GP3_CLK				126
    136  1.1  jmcneill #define GCC_JPEG_TBU_CLK			127
    137  1.1  jmcneill #define GCC_MDP_TBU_CLK				128
    138  1.1  jmcneill #define GCC_MDSS_AHB_CLK			129
    139  1.1  jmcneill #define GCC_MDSS_AXI_CLK			130
    140  1.1  jmcneill #define GCC_MDSS_BYTE0_CLK			131
    141  1.1  jmcneill #define GCC_MDSS_BYTE1_CLK			132
    142  1.1  jmcneill #define GCC_MDSS_ESC0_CLK			133
    143  1.1  jmcneill #define GCC_MDSS_ESC1_CLK			134
    144  1.1  jmcneill #define GCC_MDSS_MDP_CLK			135
    145  1.1  jmcneill #define GCC_MDSS_PCLK0_CLK			136
    146  1.1  jmcneill #define GCC_MDSS_PCLK1_CLK			137
    147  1.1  jmcneill #define GCC_MDSS_VSYNC_CLK			138
    148  1.1  jmcneill #define GCC_MSS_CFG_AHB_CLK			139
    149  1.1  jmcneill #define GCC_MSS_Q6_BIMC_AXI_CLK			140
    150  1.1  jmcneill #define GCC_OXILI_AHB_CLK			141
    151  1.1  jmcneill #define GCC_OXILI_AON_CLK			142
    152  1.1  jmcneill #define GCC_OXILI_GFX3D_CLK			143
    153  1.1  jmcneill #define GCC_OXILI_TIMER_CLK			144
    154  1.1  jmcneill #define GCC_PCNOC_USB3_AXI_CLK			145
    155  1.1  jmcneill #define GCC_PDM2_CLK				146
    156  1.1  jmcneill #define GCC_PDM_AHB_CLK				147
    157  1.1  jmcneill #define GCC_PRNG_AHB_CLK			148
    158  1.1  jmcneill #define GCC_QDSS_DAP_CLK			149
    159  1.1  jmcneill #define GCC_QUSB_REF_CLK			150
    160  1.1  jmcneill #define GCC_RBCPR_GFX_CLK			151
    161  1.1  jmcneill #define GCC_SDCC1_AHB_CLK			152
    162  1.1  jmcneill #define GCC_SDCC1_APPS_CLK			153
    163  1.1  jmcneill #define GCC_SDCC1_ICE_CORE_CLK			154
    164  1.1  jmcneill #define GCC_SDCC2_AHB_CLK			155
    165  1.1  jmcneill #define GCC_SDCC2_APPS_CLK			156
    166  1.1  jmcneill #define GCC_SMMU_CFG_CLK			157
    167  1.1  jmcneill #define GCC_USB30_MASTER_CLK			158
    168  1.1  jmcneill #define GCC_USB30_MOCK_UTMI_CLK			159
    169  1.1  jmcneill #define GCC_USB30_SLEEP_CLK			160
    170  1.1  jmcneill #define GCC_USB3_AUX_CLK			161
    171  1.1  jmcneill #define GCC_USB3_PIPE_CLK			162
    172  1.1  jmcneill #define GCC_USB_PHY_CFG_AHB_CLK			163
    173  1.1  jmcneill #define GCC_USB_SS_REF_CLK			164
    174  1.1  jmcneill #define GCC_VENUS0_AHB_CLK			165
    175  1.1  jmcneill #define GCC_VENUS0_AXI_CLK			166
    176  1.1  jmcneill #define GCC_VENUS0_CORE0_VCODEC0_CLK		167
    177  1.1  jmcneill #define GCC_VENUS0_VCODEC0_CLK			168
    178  1.1  jmcneill #define GCC_VENUS_TBU_CLK			169
    179  1.1  jmcneill #define GCC_VFE1_TBU_CLK			170
    180  1.1  jmcneill #define GCC_VFE_TBU_CLK				171
    181  1.1  jmcneill #define GFX3D_CLK_SRC				172
    182  1.1  jmcneill #define GP1_CLK_SRC				173
    183  1.1  jmcneill #define GP2_CLK_SRC				174
    184  1.1  jmcneill #define GP3_CLK_SRC				175
    185  1.1  jmcneill #define GPLL0					176
    186  1.1  jmcneill #define GPLL0_EARLY				177
    187  1.1  jmcneill #define GPLL2					178
    188  1.1  jmcneill #define GPLL2_EARLY				179
    189  1.1  jmcneill #define GPLL3					180
    190  1.1  jmcneill #define GPLL3_EARLY				181
    191  1.1  jmcneill #define GPLL4					182
    192  1.1  jmcneill #define GPLL4_EARLY				183
    193  1.1  jmcneill #define GPLL6					184
    194  1.1  jmcneill #define GPLL6_EARLY				185
    195  1.1  jmcneill #define JPEG0_CLK_SRC				186
    196  1.1  jmcneill #define MCLK0_CLK_SRC				187
    197  1.1  jmcneill #define MCLK1_CLK_SRC				188
    198  1.1  jmcneill #define MCLK2_CLK_SRC				189
    199  1.1  jmcneill #define MCLK3_CLK_SRC				190
    200  1.1  jmcneill #define MDP_CLK_SRC				191
    201  1.1  jmcneill #define PCLK0_CLK_SRC				192
    202  1.1  jmcneill #define PCLK1_CLK_SRC				193
    203  1.1  jmcneill #define PDM2_CLK_SRC				194
    204  1.1  jmcneill #define RBCPR_GFX_CLK_SRC			195
    205  1.1  jmcneill #define SDCC1_APPS_CLK_SRC			196
    206  1.1  jmcneill #define SDCC1_ICE_CORE_CLK_SRC			197
    207  1.1  jmcneill #define SDCC2_APPS_CLK_SRC			198
    208  1.1  jmcneill #define USB30_MASTER_CLK_SRC			199
    209  1.1  jmcneill #define USB30_MOCK_UTMI_CLK_SRC			200
    210  1.1  jmcneill #define USB3_AUX_CLK_SRC			201
    211  1.1  jmcneill #define VCODEC0_CLK_SRC				202
    212  1.1  jmcneill #define VFE0_CLK_SRC				203
    213  1.1  jmcneill #define VFE1_CLK_SRC				204
    214  1.1  jmcneill #define VSYNC_CLK_SRC				205
    215  1.1  jmcneill 
    216  1.1  jmcneill /* GCC block resets */
    217  1.1  jmcneill #define GCC_CAMSS_MICRO_BCR			0
    218  1.1  jmcneill #define GCC_MSS_BCR				1
    219  1.1  jmcneill #define GCC_QUSB2_PHY_BCR			2
    220  1.1  jmcneill #define GCC_USB3PHY_PHY_BCR			3
    221  1.1  jmcneill #define GCC_USB3_PHY_BCR			4
    222  1.1  jmcneill #define GCC_USB_30_BCR				5
    223  1.1  jmcneill 
    224  1.1  jmcneill /* GDSCs */
    225  1.1  jmcneill #define CPP_GDSC				0
    226  1.1  jmcneill #define JPEG_GDSC				1
    227  1.1  jmcneill #define MDSS_GDSC				2
    228  1.1  jmcneill #define OXILI_CX_GDSC				3
    229  1.1  jmcneill #define OXILI_GX_GDSC				4
    230  1.1  jmcneill #define USB30_GDSC				5
    231  1.1  jmcneill #define VENUS_CORE0_GDSC			6
    232  1.1  jmcneill #define VENUS_GDSC				7
    233  1.1  jmcneill #define VFE0_GDSC				8
    234  1.1  jmcneill #define VFE1_GDSC				9
    235  1.1  jmcneill 
    236  1.1  jmcneill #endif
    237