Home | History | Annotate | Line # | Download | only in clock
      1  1.1  jmcneill /*	$NetBSD: qcom,gcc-sm6115.h,v 1.1.1.1 2021/11/07 16:49:57 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  * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
      6  1.1  jmcneill  */
      7  1.1  jmcneill 
      8  1.1  jmcneill #ifndef _DT_BINDINGS_CLK_QCOM_GCC_SM6115_H
      9  1.1  jmcneill #define _DT_BINDINGS_CLK_QCOM_GCC_SM6115_H
     10  1.1  jmcneill 
     11  1.1  jmcneill /* GCC clocks */
     12  1.1  jmcneill #define GPLL0							0
     13  1.1  jmcneill #define GPLL0_OUT_AUX2						1
     14  1.1  jmcneill #define GPLL0_OUT_MAIN						2
     15  1.1  jmcneill #define GPLL10							3
     16  1.1  jmcneill #define GPLL10_OUT_MAIN						4
     17  1.1  jmcneill #define GPLL11							5
     18  1.1  jmcneill #define GPLL11_OUT_MAIN						6
     19  1.1  jmcneill #define GPLL3							7
     20  1.1  jmcneill #define GPLL4							8
     21  1.1  jmcneill #define GPLL4_OUT_MAIN						9
     22  1.1  jmcneill #define GPLL6							10
     23  1.1  jmcneill #define GPLL6_OUT_MAIN						11
     24  1.1  jmcneill #define GPLL7							12
     25  1.1  jmcneill #define GPLL7_OUT_MAIN						13
     26  1.1  jmcneill #define GPLL8							14
     27  1.1  jmcneill #define GPLL8_OUT_MAIN						15
     28  1.1  jmcneill #define GPLL9							16
     29  1.1  jmcneill #define GPLL9_OUT_MAIN						17
     30  1.1  jmcneill #define GCC_CAMSS_CSI0PHYTIMER_CLK				18
     31  1.1  jmcneill #define GCC_CAMSS_CSI0PHYTIMER_CLK_SRC				19
     32  1.1  jmcneill #define GCC_CAMSS_CSI1PHYTIMER_CLK				20
     33  1.1  jmcneill #define GCC_CAMSS_CSI1PHYTIMER_CLK_SRC				21
     34  1.1  jmcneill #define GCC_CAMSS_CSI2PHYTIMER_CLK				22
     35  1.1  jmcneill #define GCC_CAMSS_CSI2PHYTIMER_CLK_SRC				23
     36  1.1  jmcneill #define GCC_CAMSS_MCLK0_CLK					24
     37  1.1  jmcneill #define GCC_CAMSS_MCLK0_CLK_SRC					25
     38  1.1  jmcneill #define GCC_CAMSS_MCLK1_CLK					26
     39  1.1  jmcneill #define GCC_CAMSS_MCLK1_CLK_SRC					27
     40  1.1  jmcneill #define GCC_CAMSS_MCLK2_CLK					28
     41  1.1  jmcneill #define GCC_CAMSS_MCLK2_CLK_SRC					29
     42  1.1  jmcneill #define GCC_CAMSS_MCLK3_CLK					30
     43  1.1  jmcneill #define GCC_CAMSS_MCLK3_CLK_SRC					31
     44  1.1  jmcneill #define GCC_CAMSS_NRT_AXI_CLK					32
     45  1.1  jmcneill #define GCC_CAMSS_OPE_AHB_CLK					33
     46  1.1  jmcneill #define GCC_CAMSS_OPE_AHB_CLK_SRC				34
     47  1.1  jmcneill #define GCC_CAMSS_OPE_CLK					35
     48  1.1  jmcneill #define GCC_CAMSS_OPE_CLK_SRC					36
     49  1.1  jmcneill #define GCC_CAMSS_RT_AXI_CLK					37
     50  1.1  jmcneill #define GCC_CAMSS_TFE_0_CLK					38
     51  1.1  jmcneill #define GCC_CAMSS_TFE_0_CLK_SRC					39
     52  1.1  jmcneill #define GCC_CAMSS_TFE_0_CPHY_RX_CLK				40
     53  1.1  jmcneill #define GCC_CAMSS_TFE_0_CSID_CLK				41
     54  1.1  jmcneill #define GCC_CAMSS_TFE_0_CSID_CLK_SRC				42
     55  1.1  jmcneill #define GCC_CAMSS_TFE_1_CLK					43
     56  1.1  jmcneill #define GCC_CAMSS_TFE_1_CLK_SRC					44
     57  1.1  jmcneill #define GCC_CAMSS_TFE_1_CPHY_RX_CLK				45
     58  1.1  jmcneill #define GCC_CAMSS_TFE_1_CSID_CLK				46
     59  1.1  jmcneill #define GCC_CAMSS_TFE_1_CSID_CLK_SRC				47
     60  1.1  jmcneill #define GCC_CAMSS_TFE_2_CLK					48
     61  1.1  jmcneill #define GCC_CAMSS_TFE_2_CLK_SRC					49
     62  1.1  jmcneill #define GCC_CAMSS_TFE_2_CPHY_RX_CLK				50
     63  1.1  jmcneill #define GCC_CAMSS_TFE_2_CSID_CLK				51
     64  1.1  jmcneill #define GCC_CAMSS_TFE_2_CSID_CLK_SRC				52
     65  1.1  jmcneill #define GCC_CAMSS_TFE_CPHY_RX_CLK_SRC				53
     66  1.1  jmcneill #define GCC_CAMSS_TOP_AHB_CLK					54
     67  1.1  jmcneill #define GCC_CAMSS_TOP_AHB_CLK_SRC				55
     68  1.1  jmcneill #define GCC_CFG_NOC_USB3_PRIM_AXI_CLK				56
     69  1.1  jmcneill #define GCC_CPUSS_AHB_CLK					57
     70  1.1  jmcneill #define GCC_CPUSS_GNOC_CLK					60
     71  1.1  jmcneill #define GCC_DISP_AHB_CLK					61
     72  1.1  jmcneill #define GCC_DISP_GPLL0_DIV_CLK_SRC				62
     73  1.1  jmcneill #define GCC_DISP_HF_AXI_CLK					63
     74  1.1  jmcneill #define GCC_DISP_THROTTLE_CORE_CLK				64
     75  1.1  jmcneill #define GCC_DISP_XO_CLK						65
     76  1.1  jmcneill #define GCC_GP1_CLK						66
     77  1.1  jmcneill #define GCC_GP1_CLK_SRC						67
     78  1.1  jmcneill #define GCC_GP2_CLK						68
     79  1.1  jmcneill #define GCC_GP2_CLK_SRC						69
     80  1.1  jmcneill #define GCC_GP3_CLK						70
     81  1.1  jmcneill #define GCC_GP3_CLK_SRC						71
     82  1.1  jmcneill #define GCC_GPU_CFG_AHB_CLK					72
     83  1.1  jmcneill #define GCC_GPU_GPLL0_CLK_SRC					73
     84  1.1  jmcneill #define GCC_GPU_GPLL0_DIV_CLK_SRC				74
     85  1.1  jmcneill #define GCC_GPU_IREF_CLK					75
     86  1.1  jmcneill #define GCC_GPU_MEMNOC_GFX_CLK					76
     87  1.1  jmcneill #define GCC_GPU_SNOC_DVM_GFX_CLK				77
     88  1.1  jmcneill #define GCC_GPU_THROTTLE_CORE_CLK				78
     89  1.1  jmcneill #define GCC_GPU_THROTTLE_XO_CLK					79
     90  1.1  jmcneill #define GCC_PDM2_CLK						80
     91  1.1  jmcneill #define GCC_PDM2_CLK_SRC					81
     92  1.1  jmcneill #define GCC_PDM_AHB_CLK						82
     93  1.1  jmcneill #define GCC_PDM_XO4_CLK						83
     94  1.1  jmcneill #define GCC_PRNG_AHB_CLK					84
     95  1.1  jmcneill #define GCC_QMIP_CAMERA_NRT_AHB_CLK				85
     96  1.1  jmcneill #define GCC_QMIP_CAMERA_RT_AHB_CLK				86
     97  1.1  jmcneill #define GCC_QMIP_DISP_AHB_CLK					87
     98  1.1  jmcneill #define GCC_QMIP_GPU_CFG_AHB_CLK				88
     99  1.1  jmcneill #define GCC_QMIP_VIDEO_VCODEC_AHB_CLK				89
    100  1.1  jmcneill #define GCC_QUPV3_WRAP0_CORE_2X_CLK				90
    101  1.1  jmcneill #define GCC_QUPV3_WRAP0_CORE_CLK				91
    102  1.1  jmcneill #define GCC_QUPV3_WRAP0_S0_CLK					92
    103  1.1  jmcneill #define GCC_QUPV3_WRAP0_S0_CLK_SRC				93
    104  1.1  jmcneill #define GCC_QUPV3_WRAP0_S1_CLK					94
    105  1.1  jmcneill #define GCC_QUPV3_WRAP0_S1_CLK_SRC				95
    106  1.1  jmcneill #define GCC_QUPV3_WRAP0_S2_CLK					96
    107  1.1  jmcneill #define GCC_QUPV3_WRAP0_S2_CLK_SRC				97
    108  1.1  jmcneill #define GCC_QUPV3_WRAP0_S3_CLK					98
    109  1.1  jmcneill #define GCC_QUPV3_WRAP0_S3_CLK_SRC				99
    110  1.1  jmcneill #define GCC_QUPV3_WRAP0_S4_CLK					100
    111  1.1  jmcneill #define GCC_QUPV3_WRAP0_S4_CLK_SRC				101
    112  1.1  jmcneill #define GCC_QUPV3_WRAP0_S5_CLK					102
    113  1.1  jmcneill #define GCC_QUPV3_WRAP0_S5_CLK_SRC				103
    114  1.1  jmcneill #define GCC_QUPV3_WRAP_0_M_AHB_CLK				104
    115  1.1  jmcneill #define GCC_QUPV3_WRAP_0_S_AHB_CLK				105
    116  1.1  jmcneill #define GCC_SDCC1_AHB_CLK					106
    117  1.1  jmcneill #define GCC_SDCC1_APPS_CLK					107
    118  1.1  jmcneill #define GCC_SDCC1_APPS_CLK_SRC					108
    119  1.1  jmcneill #define GCC_SDCC1_ICE_CORE_CLK					109
    120  1.1  jmcneill #define GCC_SDCC1_ICE_CORE_CLK_SRC				110
    121  1.1  jmcneill #define GCC_SDCC2_AHB_CLK					111
    122  1.1  jmcneill #define GCC_SDCC2_APPS_CLK					112
    123  1.1  jmcneill #define GCC_SDCC2_APPS_CLK_SRC					113
    124  1.1  jmcneill #define GCC_SYS_NOC_CPUSS_AHB_CLK				114
    125  1.1  jmcneill #define GCC_SYS_NOC_UFS_PHY_AXI_CLK				115
    126  1.1  jmcneill #define GCC_SYS_NOC_USB3_PRIM_AXI_CLK				116
    127  1.1  jmcneill #define GCC_UFS_PHY_AHB_CLK					117
    128  1.1  jmcneill #define GCC_UFS_PHY_AXI_CLK					118
    129  1.1  jmcneill #define GCC_UFS_PHY_AXI_CLK_SRC					119
    130  1.1  jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK				120
    131  1.1  jmcneill #define GCC_UFS_PHY_ICE_CORE_CLK_SRC				121
    132  1.1  jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK					122
    133  1.1  jmcneill #define GCC_UFS_PHY_PHY_AUX_CLK_SRC				123
    134  1.1  jmcneill #define GCC_UFS_PHY_RX_SYMBOL_0_CLK				124
    135  1.1  jmcneill #define GCC_UFS_PHY_TX_SYMBOL_0_CLK				125
    136  1.1  jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK				126
    137  1.1  jmcneill #define GCC_UFS_PHY_UNIPRO_CORE_CLK_SRC				127
    138  1.1  jmcneill #define GCC_USB30_PRIM_MASTER_CLK				128
    139  1.1  jmcneill #define GCC_USB30_PRIM_MASTER_CLK_SRC				129
    140  1.1  jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK				130
    141  1.1  jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_CLK_SRC			131
    142  1.1  jmcneill #define GCC_USB30_PRIM_MOCK_UTMI_POSTDIV_CLK_SRC		132
    143  1.1  jmcneill #define GCC_USB30_PRIM_SLEEP_CLK				133
    144  1.1  jmcneill #define GCC_USB3_PRIM_CLKREF_CLK				134
    145  1.1  jmcneill #define GCC_USB3_PRIM_PHY_AUX_CLK_SRC				135
    146  1.1  jmcneill #define GCC_USB3_PRIM_PHY_COM_AUX_CLK				136
    147  1.1  jmcneill #define GCC_USB3_PRIM_PHY_PIPE_CLK				137
    148  1.1  jmcneill #define GCC_VCODEC0_AXI_CLK					138
    149  1.1  jmcneill #define GCC_VENUS_AHB_CLK					139
    150  1.1  jmcneill #define GCC_VENUS_CTL_AXI_CLK					140
    151  1.1  jmcneill #define GCC_VIDEO_AHB_CLK					141
    152  1.1  jmcneill #define GCC_VIDEO_AXI0_CLK					142
    153  1.1  jmcneill #define GCC_VIDEO_THROTTLE_CORE_CLK				143
    154  1.1  jmcneill #define GCC_VIDEO_VCODEC0_SYS_CLK				144
    155  1.1  jmcneill #define GCC_VIDEO_VENUS_CLK_SRC					145
    156  1.1  jmcneill #define GCC_VIDEO_VENUS_CTL_CLK					146
    157  1.1  jmcneill #define GCC_VIDEO_XO_CLK					147
    158  1.1  jmcneill #define GCC_AHB2PHY_CSI_CLK					148
    159  1.1  jmcneill #define GCC_AHB2PHY_USB_CLK					149
    160  1.1  jmcneill #define GCC_BIMC_GPU_AXI_CLK					150
    161  1.1  jmcneill #define GCC_BOOT_ROM_AHB_CLK					151
    162  1.1  jmcneill #define GCC_CAM_THROTTLE_NRT_CLK				152
    163  1.1  jmcneill #define GCC_CAM_THROTTLE_RT_CLK					153
    164  1.1  jmcneill #define GCC_CAMERA_AHB_CLK					154
    165  1.1  jmcneill #define GCC_CAMERA_XO_CLK					155
    166  1.1  jmcneill #define GCC_CAMSS_AXI_CLK					156
    167  1.1  jmcneill #define GCC_CAMSS_AXI_CLK_SRC					157
    168  1.1  jmcneill #define GCC_CAMSS_CAMNOC_ATB_CLK				158
    169  1.1  jmcneill #define GCC_CAMSS_CAMNOC_NTS_XO_CLK				159
    170  1.1  jmcneill #define GCC_CAMSS_CCI_0_CLK					160
    171  1.1  jmcneill #define GCC_CAMSS_CCI_CLK_SRC					161
    172  1.1  jmcneill #define GCC_CAMSS_CPHY_0_CLK					162
    173  1.1  jmcneill #define GCC_CAMSS_CPHY_1_CLK					163
    174  1.1  jmcneill #define GCC_CAMSS_CPHY_2_CLK					164
    175  1.1  jmcneill #define GCC_UFS_CLKREF_CLK					165
    176  1.1  jmcneill #define GCC_DISP_GPLL0_CLK_SRC					166
    177  1.1  jmcneill 
    178  1.1  jmcneill /* GCC resets */
    179  1.1  jmcneill #define GCC_QUSB2PHY_PRIM_BCR					0
    180  1.1  jmcneill #define GCC_QUSB2PHY_SEC_BCR					1
    181  1.1  jmcneill #define GCC_SDCC1_BCR						2
    182  1.1  jmcneill #define GCC_UFS_PHY_BCR						3
    183  1.1  jmcneill #define GCC_USB30_PRIM_BCR					4
    184  1.1  jmcneill #define GCC_USB_PHY_CFG_AHB2PHY_BCR				5
    185  1.1  jmcneill #define GCC_VCODEC0_BCR						6
    186  1.1  jmcneill #define GCC_VENUS_BCR						7
    187  1.1  jmcneill #define GCC_VIDEO_INTERFACE_BCR					8
    188  1.1  jmcneill #define GCC_USB3PHY_PHY_PRIM_SP0_BCR				9
    189  1.1  jmcneill #define GCC_USB3_PHY_PRIM_SP0_BCR				10
    190  1.1  jmcneill #define GCC_SDCC2_BCR						11
    191  1.1  jmcneill 
    192  1.1  jmcneill /* Indexes for GDSCs */
    193  1.1  jmcneill #define GCC_CAMSS_TOP_GDSC			0
    194  1.1  jmcneill #define GCC_UFS_PHY_GDSC			1
    195  1.1  jmcneill #define GCC_USB30_PRIM_GDSC			2
    196  1.1  jmcneill #define GCC_VCODEC0_GDSC			3
    197  1.1  jmcneill #define GCC_VENUS_GDSC				4
    198  1.1  jmcneill #define HLOS1_VOTE_TURING_MMU_TBU1_GDSC		5
    199  1.1  jmcneill #define HLOS1_VOTE_TURING_MMU_TBU0_GDSC		6
    200  1.1  jmcneill #define HLOS1_VOTE_MM_SNOC_MMU_TBU_RT_GDSC	7
    201  1.1  jmcneill #define HLOS1_VOTE_MM_SNOC_MMU_TBU_NRT_GDSC	8
    202  1.1  jmcneill 
    203  1.1  jmcneill #endif
    204