Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: qcom,mmcc-msm8996.h,v 1.1.1.2 2020/01/03 14:33:04 skrll Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.2     skrll /* SPDX-License-Identifier: GPL-2.0-only */
      4      1.1  jmcneill /*
      5      1.1  jmcneill  * Copyright (c) 2015, The Linux Foundation. All rights reserved.
      6      1.1  jmcneill  */
      7      1.1  jmcneill 
      8      1.1  jmcneill #ifndef _DT_BINDINGS_CLK_MSM_MMCC_8996_H
      9      1.1  jmcneill #define _DT_BINDINGS_CLK_MSM_MMCC_8996_H
     10      1.1  jmcneill 
     11      1.1  jmcneill #define MMPLL0_EARLY					0
     12      1.1  jmcneill #define MMPLL0_PLL					1
     13      1.1  jmcneill #define MMPLL1_EARLY					2
     14      1.1  jmcneill #define MMPLL1_PLL					3
     15      1.1  jmcneill #define MMPLL2_EARLY					4
     16      1.1  jmcneill #define MMPLL2_PLL					5
     17      1.1  jmcneill #define MMPLL3_EARLY					6
     18      1.1  jmcneill #define MMPLL3_PLL					7
     19      1.1  jmcneill #define MMPLL4_EARLY					8
     20      1.1  jmcneill #define MMPLL4_PLL					9
     21      1.1  jmcneill #define MMPLL5_EARLY					10
     22      1.1  jmcneill #define MMPLL5_PLL					11
     23      1.1  jmcneill #define MMPLL8_EARLY					12
     24      1.1  jmcneill #define MMPLL8_PLL					13
     25      1.1  jmcneill #define MMPLL9_EARLY					14
     26      1.1  jmcneill #define MMPLL9_PLL					15
     27      1.1  jmcneill #define AHB_CLK_SRC					16
     28      1.1  jmcneill #define AXI_CLK_SRC					17
     29      1.1  jmcneill #define MAXI_CLK_SRC					18
     30      1.1  jmcneill #define DSA_CORE_CLK_SRC				19
     31      1.1  jmcneill #define GFX3D_CLK_SRC					20
     32      1.1  jmcneill #define RBBMTIMER_CLK_SRC				21
     33      1.1  jmcneill #define ISENSE_CLK_SRC					22
     34      1.1  jmcneill #define RBCPR_CLK_SRC					23
     35      1.1  jmcneill #define VIDEO_CORE_CLK_SRC				24
     36      1.1  jmcneill #define VIDEO_SUBCORE0_CLK_SRC				25
     37      1.1  jmcneill #define VIDEO_SUBCORE1_CLK_SRC				26
     38      1.1  jmcneill #define PCLK0_CLK_SRC					27
     39      1.1  jmcneill #define PCLK1_CLK_SRC					28
     40      1.1  jmcneill #define MDP_CLK_SRC					29
     41      1.1  jmcneill #define EXTPCLK_CLK_SRC					30
     42      1.1  jmcneill #define VSYNC_CLK_SRC					31
     43      1.1  jmcneill #define HDMI_CLK_SRC					32
     44      1.1  jmcneill #define BYTE0_CLK_SRC					33
     45      1.1  jmcneill #define BYTE1_CLK_SRC					34
     46      1.1  jmcneill #define ESC0_CLK_SRC					35
     47      1.1  jmcneill #define ESC1_CLK_SRC					36
     48      1.1  jmcneill #define CAMSS_GP0_CLK_SRC				37
     49      1.1  jmcneill #define CAMSS_GP1_CLK_SRC				38
     50      1.1  jmcneill #define MCLK0_CLK_SRC					39
     51      1.1  jmcneill #define MCLK1_CLK_SRC					40
     52      1.1  jmcneill #define MCLK2_CLK_SRC					41
     53      1.1  jmcneill #define MCLK3_CLK_SRC					42
     54      1.1  jmcneill #define CCI_CLK_SRC					43
     55      1.1  jmcneill #define CSI0PHYTIMER_CLK_SRC				44
     56      1.1  jmcneill #define CSI1PHYTIMER_CLK_SRC				45
     57      1.1  jmcneill #define CSI2PHYTIMER_CLK_SRC				46
     58      1.1  jmcneill #define CSIPHY0_3P_CLK_SRC				47
     59      1.1  jmcneill #define CSIPHY1_3P_CLK_SRC				48
     60      1.1  jmcneill #define CSIPHY2_3P_CLK_SRC				49
     61      1.1  jmcneill #define JPEG0_CLK_SRC					50
     62      1.1  jmcneill #define JPEG2_CLK_SRC					51
     63      1.1  jmcneill #define JPEG_DMA_CLK_SRC				52
     64      1.1  jmcneill #define VFE0_CLK_SRC					53
     65      1.1  jmcneill #define VFE1_CLK_SRC					54
     66      1.1  jmcneill #define CPP_CLK_SRC					55
     67      1.1  jmcneill #define CSI0_CLK_SRC					56
     68      1.1  jmcneill #define CSI1_CLK_SRC					57
     69      1.1  jmcneill #define CSI2_CLK_SRC					58
     70      1.1  jmcneill #define CSI3_CLK_SRC					59
     71      1.1  jmcneill #define FD_CORE_CLK_SRC					60
     72      1.1  jmcneill #define MMSS_CXO_CLK					61
     73      1.1  jmcneill #define MMSS_SLEEPCLK_CLK				62
     74      1.1  jmcneill #define MMSS_MMAGIC_AHB_CLK				63
     75      1.1  jmcneill #define MMSS_MMAGIC_CFG_AHB_CLK				64
     76      1.1  jmcneill #define MMSS_MISC_AHB_CLK				65
     77      1.1  jmcneill #define MMSS_MISC_CXO_CLK				66
     78      1.1  jmcneill #define MMSS_BTO_AHB_CLK				67
     79      1.1  jmcneill #define MMSS_MMAGIC_AXI_CLK				68
     80      1.1  jmcneill #define MMSS_S0_AXI_CLK					69
     81      1.1  jmcneill #define MMSS_MMAGIC_MAXI_CLK				70
     82      1.1  jmcneill #define DSA_CORE_CLK					71
     83      1.1  jmcneill #define DSA_NOC_CFG_AHB_CLK				72
     84      1.1  jmcneill #define MMAGIC_CAMSS_AXI_CLK				73
     85      1.1  jmcneill #define MMAGIC_CAMSS_NOC_CFG_AHB_CLK			74
     86      1.1  jmcneill #define THROTTLE_CAMSS_CXO_CLK				75
     87      1.1  jmcneill #define THROTTLE_CAMSS_AHB_CLK				76
     88      1.1  jmcneill #define THROTTLE_CAMSS_AXI_CLK				77
     89      1.1  jmcneill #define SMMU_VFE_AHB_CLK				78
     90      1.1  jmcneill #define SMMU_VFE_AXI_CLK				79
     91      1.1  jmcneill #define SMMU_CPP_AHB_CLK				80
     92      1.1  jmcneill #define SMMU_CPP_AXI_CLK				81
     93      1.1  jmcneill #define SMMU_JPEG_AHB_CLK				82
     94      1.1  jmcneill #define SMMU_JPEG_AXI_CLK				83
     95      1.1  jmcneill #define MMAGIC_MDSS_AXI_CLK				84
     96      1.1  jmcneill #define MMAGIC_MDSS_NOC_CFG_AHB_CLK			85
     97      1.1  jmcneill #define THROTTLE_MDSS_CXO_CLK				86
     98      1.1  jmcneill #define THROTTLE_MDSS_AHB_CLK				87
     99      1.1  jmcneill #define THROTTLE_MDSS_AXI_CLK				88
    100      1.1  jmcneill #define SMMU_ROT_AHB_CLK				89
    101      1.1  jmcneill #define SMMU_ROT_AXI_CLK				90
    102      1.1  jmcneill #define SMMU_MDP_AHB_CLK				91
    103      1.1  jmcneill #define SMMU_MDP_AXI_CLK				92
    104      1.1  jmcneill #define MMAGIC_VIDEO_AXI_CLK				93
    105      1.1  jmcneill #define MMAGIC_VIDEO_NOC_CFG_AHB_CLK			94
    106      1.1  jmcneill #define THROTTLE_VIDEO_CXO_CLK				95
    107      1.1  jmcneill #define THROTTLE_VIDEO_AHB_CLK				96
    108      1.1  jmcneill #define THROTTLE_VIDEO_AXI_CLK				97
    109      1.1  jmcneill #define SMMU_VIDEO_AHB_CLK				98
    110      1.1  jmcneill #define SMMU_VIDEO_AXI_CLK				99
    111      1.1  jmcneill #define MMAGIC_BIMC_AXI_CLK				100
    112      1.1  jmcneill #define MMAGIC_BIMC_NOC_CFG_AHB_CLK			101
    113      1.1  jmcneill #define GPU_GX_GFX3D_CLK				102
    114      1.1  jmcneill #define GPU_GX_RBBMTIMER_CLK				103
    115      1.1  jmcneill #define GPU_AHB_CLK					104
    116      1.1  jmcneill #define GPU_AON_ISENSE_CLK				105
    117      1.1  jmcneill #define VMEM_MAXI_CLK					106
    118      1.1  jmcneill #define VMEM_AHB_CLK					107
    119      1.1  jmcneill #define MMSS_RBCPR_CLK					108
    120      1.1  jmcneill #define MMSS_RBCPR_AHB_CLK				109
    121      1.1  jmcneill #define VIDEO_CORE_CLK					110
    122      1.1  jmcneill #define VIDEO_AXI_CLK					111
    123      1.1  jmcneill #define VIDEO_MAXI_CLK					112
    124      1.1  jmcneill #define VIDEO_AHB_CLK					113
    125      1.1  jmcneill #define VIDEO_SUBCORE0_CLK				114
    126      1.1  jmcneill #define VIDEO_SUBCORE1_CLK				115
    127      1.1  jmcneill #define MDSS_AHB_CLK					116
    128      1.1  jmcneill #define MDSS_HDMI_AHB_CLK				117
    129      1.1  jmcneill #define MDSS_AXI_CLK					118
    130      1.1  jmcneill #define MDSS_PCLK0_CLK					119
    131      1.1  jmcneill #define MDSS_PCLK1_CLK					120
    132      1.1  jmcneill #define MDSS_MDP_CLK					121
    133      1.1  jmcneill #define MDSS_EXTPCLK_CLK				122
    134      1.1  jmcneill #define MDSS_VSYNC_CLK					123
    135      1.1  jmcneill #define MDSS_HDMI_CLK					124
    136      1.1  jmcneill #define MDSS_BYTE0_CLK					125
    137      1.1  jmcneill #define MDSS_BYTE1_CLK					126
    138      1.1  jmcneill #define MDSS_ESC0_CLK					127
    139      1.1  jmcneill #define MDSS_ESC1_CLK					128
    140      1.1  jmcneill #define CAMSS_TOP_AHB_CLK				129
    141      1.1  jmcneill #define CAMSS_AHB_CLK					130
    142      1.1  jmcneill #define CAMSS_MICRO_AHB_CLK				131
    143      1.1  jmcneill #define CAMSS_GP0_CLK					132
    144      1.1  jmcneill #define CAMSS_GP1_CLK					133
    145      1.1  jmcneill #define CAMSS_MCLK0_CLK					134
    146      1.1  jmcneill #define CAMSS_MCLK1_CLK					135
    147      1.1  jmcneill #define CAMSS_MCLK2_CLK					136
    148      1.1  jmcneill #define CAMSS_MCLK3_CLK					137
    149      1.1  jmcneill #define CAMSS_CCI_CLK					138
    150      1.1  jmcneill #define CAMSS_CCI_AHB_CLK				139
    151      1.1  jmcneill #define CAMSS_CSI0PHYTIMER_CLK				140
    152      1.1  jmcneill #define CAMSS_CSI1PHYTIMER_CLK				141
    153      1.1  jmcneill #define CAMSS_CSI2PHYTIMER_CLK				142
    154      1.1  jmcneill #define CAMSS_CSIPHY0_3P_CLK				143
    155      1.1  jmcneill #define CAMSS_CSIPHY1_3P_CLK				144
    156      1.1  jmcneill #define CAMSS_CSIPHY2_3P_CLK				145
    157      1.1  jmcneill #define CAMSS_JPEG0_CLK					146
    158      1.1  jmcneill #define CAMSS_JPEG2_CLK					147
    159      1.1  jmcneill #define CAMSS_JPEG_DMA_CLK				148
    160      1.1  jmcneill #define CAMSS_JPEG_AHB_CLK				149
    161      1.1  jmcneill #define CAMSS_JPEG_AXI_CLK				150
    162      1.1  jmcneill #define CAMSS_VFE_AHB_CLK				151
    163      1.1  jmcneill #define CAMSS_VFE_AXI_CLK				152
    164      1.1  jmcneill #define CAMSS_VFE0_CLK					153
    165      1.1  jmcneill #define CAMSS_VFE0_STREAM_CLK				154
    166      1.1  jmcneill #define CAMSS_VFE0_AHB_CLK				155
    167      1.1  jmcneill #define CAMSS_VFE1_CLK					156
    168      1.1  jmcneill #define CAMSS_VFE1_STREAM_CLK				157
    169      1.1  jmcneill #define CAMSS_VFE1_AHB_CLK				158
    170      1.1  jmcneill #define CAMSS_CSI_VFE0_CLK				159
    171      1.1  jmcneill #define CAMSS_CSI_VFE1_CLK				160
    172      1.1  jmcneill #define CAMSS_CPP_VBIF_AHB_CLK				161
    173      1.1  jmcneill #define CAMSS_CPP_AXI_CLK				162
    174      1.1  jmcneill #define CAMSS_CPP_CLK					163
    175      1.1  jmcneill #define CAMSS_CPP_AHB_CLK				164
    176      1.1  jmcneill #define CAMSS_CSI0_CLK					165
    177      1.1  jmcneill #define CAMSS_CSI0_AHB_CLK				166
    178      1.1  jmcneill #define CAMSS_CSI0PHY_CLK				167
    179      1.1  jmcneill #define CAMSS_CSI0RDI_CLK				168
    180      1.1  jmcneill #define CAMSS_CSI0PIX_CLK				169
    181      1.1  jmcneill #define CAMSS_CSI1_CLK					170
    182      1.1  jmcneill #define CAMSS_CSI1_AHB_CLK				171
    183      1.1  jmcneill #define CAMSS_CSI1PHY_CLK				172
    184      1.1  jmcneill #define CAMSS_CSI1RDI_CLK				173
    185      1.1  jmcneill #define CAMSS_CSI1PIX_CLK				174
    186      1.1  jmcneill #define CAMSS_CSI2_CLK					175
    187      1.1  jmcneill #define CAMSS_CSI2_AHB_CLK				176
    188      1.1  jmcneill #define CAMSS_CSI2PHY_CLK				177
    189      1.1  jmcneill #define CAMSS_CSI2RDI_CLK				178
    190      1.1  jmcneill #define CAMSS_CSI2PIX_CLK				179
    191      1.1  jmcneill #define CAMSS_CSI3_CLK					180
    192      1.1  jmcneill #define CAMSS_CSI3_AHB_CLK				181
    193      1.1  jmcneill #define CAMSS_CSI3PHY_CLK				182
    194      1.1  jmcneill #define CAMSS_CSI3RDI_CLK				183
    195      1.1  jmcneill #define CAMSS_CSI3PIX_CLK				184
    196      1.1  jmcneill #define CAMSS_ISPIF_AHB_CLK				185
    197      1.1  jmcneill #define FD_CORE_CLK					186
    198      1.1  jmcneill #define FD_CORE_UAR_CLK					187
    199      1.1  jmcneill #define FD_AHB_CLK					188
    200      1.1  jmcneill #define MMSS_SPDM_CSI0_CLK				189
    201      1.1  jmcneill #define MMSS_SPDM_JPEG_DMA_CLK				190
    202      1.1  jmcneill #define MMSS_SPDM_CPP_CLK				191
    203      1.1  jmcneill #define MMSS_SPDM_PCLK0_CLK				192
    204      1.1  jmcneill #define MMSS_SPDM_AHB_CLK				193
    205      1.1  jmcneill #define MMSS_SPDM_GFX3D_CLK				194
    206      1.1  jmcneill #define MMSS_SPDM_PCLK1_CLK				195
    207      1.1  jmcneill #define MMSS_SPDM_JPEG2_CLK				196
    208      1.1  jmcneill #define MMSS_SPDM_DEBUG_CLK				197
    209      1.1  jmcneill #define MMSS_SPDM_VFE1_CLK				198
    210      1.1  jmcneill #define MMSS_SPDM_VFE0_CLK				199
    211      1.1  jmcneill #define MMSS_SPDM_VIDEO_CORE_CLK			200
    212      1.1  jmcneill #define MMSS_SPDM_AXI_CLK				201
    213      1.1  jmcneill #define MMSS_SPDM_MDP_CLK				202
    214      1.1  jmcneill #define MMSS_SPDM_JPEG0_CLK				203
    215      1.1  jmcneill #define MMSS_SPDM_RM_AXI_CLK				204
    216      1.1  jmcneill #define MMSS_SPDM_RM_MAXI_CLK				205
    217      1.1  jmcneill 
    218      1.1  jmcneill #define MMAGICAHB_BCR					0
    219      1.1  jmcneill #define MMAGIC_CFG_BCR					1
    220      1.1  jmcneill #define MISC_BCR					2
    221      1.1  jmcneill #define BTO_BCR						3
    222      1.1  jmcneill #define MMAGICAXI_BCR					4
    223      1.1  jmcneill #define MMAGICMAXI_BCR					5
    224      1.1  jmcneill #define DSA_BCR						6
    225      1.1  jmcneill #define MMAGIC_CAMSS_BCR				7
    226      1.1  jmcneill #define THROTTLE_CAMSS_BCR				8
    227      1.1  jmcneill #define SMMU_VFE_BCR					9
    228      1.1  jmcneill #define SMMU_CPP_BCR					10
    229      1.1  jmcneill #define SMMU_JPEG_BCR					11
    230      1.1  jmcneill #define MMAGIC_MDSS_BCR					12
    231      1.1  jmcneill #define THROTTLE_MDSS_BCR				13
    232      1.1  jmcneill #define SMMU_ROT_BCR					14
    233      1.1  jmcneill #define SMMU_MDP_BCR					15
    234      1.1  jmcneill #define MMAGIC_VIDEO_BCR				16
    235      1.1  jmcneill #define THROTTLE_VIDEO_BCR				17
    236      1.1  jmcneill #define SMMU_VIDEO_BCR					18
    237      1.1  jmcneill #define MMAGIC_BIMC_BCR					19
    238      1.1  jmcneill #define GPU_GX_BCR					20
    239      1.1  jmcneill #define GPU_BCR						21
    240      1.1  jmcneill #define GPU_AON_BCR					22
    241      1.1  jmcneill #define VMEM_BCR					23
    242      1.1  jmcneill #define MMSS_RBCPR_BCR					24
    243      1.1  jmcneill #define VIDEO_BCR					25
    244      1.1  jmcneill #define MDSS_BCR					26
    245      1.1  jmcneill #define CAMSS_TOP_BCR					27
    246      1.1  jmcneill #define CAMSS_AHB_BCR					28
    247      1.1  jmcneill #define CAMSS_MICRO_BCR					29
    248      1.1  jmcneill #define CAMSS_CCI_BCR					30
    249      1.1  jmcneill #define CAMSS_PHY0_BCR					31
    250      1.1  jmcneill #define CAMSS_PHY1_BCR					32
    251      1.1  jmcneill #define CAMSS_PHY2_BCR					33
    252      1.1  jmcneill #define CAMSS_CSIPHY0_3P_BCR				34
    253      1.1  jmcneill #define CAMSS_CSIPHY1_3P_BCR				35
    254      1.1  jmcneill #define CAMSS_CSIPHY2_3P_BCR				36
    255      1.1  jmcneill #define CAMSS_JPEG_BCR					37
    256      1.1  jmcneill #define CAMSS_VFE_BCR					38
    257      1.1  jmcneill #define CAMSS_VFE0_BCR					39
    258      1.1  jmcneill #define CAMSS_VFE1_BCR					40
    259      1.1  jmcneill #define CAMSS_CSI_VFE0_BCR				41
    260      1.1  jmcneill #define CAMSS_CSI_VFE1_BCR				42
    261      1.1  jmcneill #define CAMSS_CPP_TOP_BCR				43
    262      1.1  jmcneill #define CAMSS_CPP_BCR					44
    263      1.1  jmcneill #define CAMSS_CSI0_BCR					45
    264      1.1  jmcneill #define CAMSS_CSI0RDI_BCR				46
    265      1.1  jmcneill #define CAMSS_CSI0PIX_BCR				47
    266      1.1  jmcneill #define CAMSS_CSI1_BCR					48
    267      1.1  jmcneill #define CAMSS_CSI1RDI_BCR				49
    268      1.1  jmcneill #define CAMSS_CSI1PIX_BCR				50
    269      1.1  jmcneill #define CAMSS_CSI2_BCR					51
    270      1.1  jmcneill #define CAMSS_CSI2RDI_BCR				52
    271      1.1  jmcneill #define CAMSS_CSI2PIX_BCR				53
    272      1.1  jmcneill #define CAMSS_CSI3_BCR					54
    273      1.1  jmcneill #define CAMSS_CSI3RDI_BCR				55
    274      1.1  jmcneill #define CAMSS_CSI3PIX_BCR				56
    275      1.1  jmcneill #define CAMSS_ISPIF_BCR					57
    276      1.1  jmcneill #define FD_BCR						58
    277      1.1  jmcneill #define MMSS_SPDM_RM_BCR				59
    278      1.1  jmcneill 
    279      1.1  jmcneill /* Indexes for GDSCs */
    280      1.1  jmcneill #define MMAGIC_VIDEO_GDSC	0
    281      1.1  jmcneill #define MMAGIC_MDSS_GDSC	1
    282      1.1  jmcneill #define MMAGIC_CAMSS_GDSC	2
    283      1.1  jmcneill #define GPU_GDSC		3
    284      1.1  jmcneill #define VENUS_GDSC		4
    285      1.1  jmcneill #define VENUS_CORE0_GDSC	5
    286      1.1  jmcneill #define VENUS_CORE1_GDSC	6
    287      1.1  jmcneill #define CAMSS_GDSC		7
    288      1.1  jmcneill #define VFE0_GDSC		8
    289      1.1  jmcneill #define VFE1_GDSC		9
    290      1.1  jmcneill #define JPEG_GDSC		10
    291      1.1  jmcneill #define CPP_GDSC		11
    292      1.1  jmcneill #define FD_GDSC			12
    293      1.1  jmcneill #define MDSS_GDSC		13
    294      1.1  jmcneill #define GPU_GX_GDSC		14
    295      1.1  jmcneill #define MMAGIC_BIMC_GDSC	15
    296      1.1  jmcneill 
    297      1.1  jmcneill #endif
    298