1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Copyright (c) 2013 Samsung Electronics Co., 2 * Copyright (c) 2013 Samsung Electronics Co., Ltd. 4 * Author: Mateusz Krawczuk <m.krawczuk@partne 3 * Author: Mateusz Krawczuk <m.krawczuk@partner.samsung.com> >> 4 * >> 5 * This program is free software; you can redistribute it and/or modify >> 6 * it under the terms of the GNU General Public License version 2 as >> 7 * published by the Free Software Foundation. 5 * 8 * 6 * Device Tree binding constants for Samsung S 9 * Device Tree binding constants for Samsung S5PV210 clock controller. 7 */ 10 */ 8 11 9 #ifndef _DT_BINDINGS_CLOCK_S5PV210_H 12 #ifndef _DT_BINDINGS_CLOCK_S5PV210_H 10 #define _DT_BINDINGS_CLOCK_S5PV210_H 13 #define _DT_BINDINGS_CLOCK_S5PV210_H 11 14 12 /* Core clocks. */ 15 /* Core clocks. */ 13 #define FIN_PLL 1 16 #define FIN_PLL 1 14 #define FOUT_APLL 2 17 #define FOUT_APLL 2 15 #define FOUT_MPLL 3 18 #define FOUT_MPLL 3 16 #define FOUT_EPLL 4 19 #define FOUT_EPLL 4 17 #define FOUT_VPLL 5 20 #define FOUT_VPLL 5 18 21 19 /* Muxes. */ 22 /* Muxes. */ 20 #define MOUT_FLASH 6 23 #define MOUT_FLASH 6 21 #define MOUT_PSYS 7 24 #define MOUT_PSYS 7 22 #define MOUT_DSYS 8 25 #define MOUT_DSYS 8 23 #define MOUT_MSYS 9 26 #define MOUT_MSYS 9 24 #define MOUT_VPLL 10 27 #define MOUT_VPLL 10 25 #define MOUT_EPLL 11 28 #define MOUT_EPLL 11 26 #define MOUT_MPLL 12 29 #define MOUT_MPLL 12 27 #define MOUT_APLL 13 30 #define MOUT_APLL 13 28 #define MOUT_VPLLSRC 14 31 #define MOUT_VPLLSRC 14 29 #define MOUT_CSIS 15 32 #define MOUT_CSIS 15 30 #define MOUT_FIMD 16 33 #define MOUT_FIMD 16 31 #define MOUT_CAM1 17 34 #define MOUT_CAM1 17 32 #define MOUT_CAM0 18 35 #define MOUT_CAM0 18 33 #define MOUT_DAC 19 36 #define MOUT_DAC 19 34 #define MOUT_MIXER 20 37 #define MOUT_MIXER 20 35 #define MOUT_HDMI 21 38 #define MOUT_HDMI 21 36 #define MOUT_G2D 22 39 #define MOUT_G2D 22 37 #define MOUT_MFC 23 40 #define MOUT_MFC 23 38 #define MOUT_G3D 24 41 #define MOUT_G3D 24 39 #define MOUT_FIMC2 25 42 #define MOUT_FIMC2 25 40 #define MOUT_FIMC1 26 43 #define MOUT_FIMC1 26 41 #define MOUT_FIMC0 27 44 #define MOUT_FIMC0 27 42 #define MOUT_UART3 28 45 #define MOUT_UART3 28 43 #define MOUT_UART2 29 46 #define MOUT_UART2 29 44 #define MOUT_UART1 30 47 #define MOUT_UART1 30 45 #define MOUT_UART0 31 48 #define MOUT_UART0 31 46 #define MOUT_MMC3 32 49 #define MOUT_MMC3 32 47 #define MOUT_MMC2 33 50 #define MOUT_MMC2 33 48 #define MOUT_MMC1 34 51 #define MOUT_MMC1 34 49 #define MOUT_MMC0 35 52 #define MOUT_MMC0 35 50 #define MOUT_PWM 36 53 #define MOUT_PWM 36 51 #define MOUT_SPI0 37 54 #define MOUT_SPI0 37 52 #define MOUT_SPI1 38 55 #define MOUT_SPI1 38 53 #define MOUT_DMC0 39 56 #define MOUT_DMC0 39 54 #define MOUT_PWI 40 57 #define MOUT_PWI 40 55 #define MOUT_HPM 41 58 #define MOUT_HPM 41 56 #define MOUT_SPDIF 42 59 #define MOUT_SPDIF 42 57 #define MOUT_AUDIO2 43 60 #define MOUT_AUDIO2 43 58 #define MOUT_AUDIO1 44 61 #define MOUT_AUDIO1 44 59 #define MOUT_AUDIO0 45 62 #define MOUT_AUDIO0 45 60 63 61 /* Dividers. */ 64 /* Dividers. */ 62 #define DOUT_PCLKP 46 65 #define DOUT_PCLKP 46 63 #define DOUT_HCLKP 47 66 #define DOUT_HCLKP 47 64 #define DOUT_PCLKD 48 67 #define DOUT_PCLKD 48 65 #define DOUT_HCLKD 49 68 #define DOUT_HCLKD 49 66 #define DOUT_PCLKM 50 69 #define DOUT_PCLKM 50 67 #define DOUT_HCLKM 51 70 #define DOUT_HCLKM 51 68 #define DOUT_A2M 52 71 #define DOUT_A2M 52 69 #define DOUT_APLL 53 72 #define DOUT_APLL 53 70 #define DOUT_CSIS 54 73 #define DOUT_CSIS 54 71 #define DOUT_FIMD 55 74 #define DOUT_FIMD 55 72 #define DOUT_CAM1 56 75 #define DOUT_CAM1 56 73 #define DOUT_CAM0 57 76 #define DOUT_CAM0 57 74 #define DOUT_TBLK 58 77 #define DOUT_TBLK 58 75 #define DOUT_G2D 59 78 #define DOUT_G2D 59 76 #define DOUT_MFC 60 79 #define DOUT_MFC 60 77 #define DOUT_G3D 61 80 #define DOUT_G3D 61 78 #define DOUT_FIMC2 62 81 #define DOUT_FIMC2 62 79 #define DOUT_FIMC1 63 82 #define DOUT_FIMC1 63 80 #define DOUT_FIMC0 64 83 #define DOUT_FIMC0 64 81 #define DOUT_UART3 65 84 #define DOUT_UART3 65 82 #define DOUT_UART2 66 85 #define DOUT_UART2 66 83 #define DOUT_UART1 67 86 #define DOUT_UART1 67 84 #define DOUT_UART0 68 87 #define DOUT_UART0 68 85 #define DOUT_MMC3 69 88 #define DOUT_MMC3 69 86 #define DOUT_MMC2 70 89 #define DOUT_MMC2 70 87 #define DOUT_MMC1 71 90 #define DOUT_MMC1 71 88 #define DOUT_MMC0 72 91 #define DOUT_MMC0 72 89 #define DOUT_PWM 73 92 #define DOUT_PWM 73 90 #define DOUT_SPI1 74 93 #define DOUT_SPI1 74 91 #define DOUT_SPI0 75 94 #define DOUT_SPI0 75 92 #define DOUT_DMC0 76 95 #define DOUT_DMC0 76 93 #define DOUT_PWI 77 96 #define DOUT_PWI 77 94 #define DOUT_HPM 78 97 #define DOUT_HPM 78 95 #define DOUT_COPY 79 98 #define DOUT_COPY 79 96 #define DOUT_FLASH 80 99 #define DOUT_FLASH 80 97 #define DOUT_AUDIO2 81 100 #define DOUT_AUDIO2 81 98 #define DOUT_AUDIO1 82 101 #define DOUT_AUDIO1 82 99 #define DOUT_AUDIO0 83 102 #define DOUT_AUDIO0 83 100 #define DOUT_DPM 84 103 #define DOUT_DPM 84 101 #define DOUT_DVSEM 85 104 #define DOUT_DVSEM 85 102 105 103 /* Gates */ 106 /* Gates */ 104 #define SCLK_FIMC 86 107 #define SCLK_FIMC 86 105 #define CLK_CSIS 87 108 #define CLK_CSIS 87 106 #define CLK_ROTATOR 88 109 #define CLK_ROTATOR 88 107 #define CLK_FIMC2 89 110 #define CLK_FIMC2 89 108 #define CLK_FIMC1 90 111 #define CLK_FIMC1 90 109 #define CLK_FIMC0 91 112 #define CLK_FIMC0 91 110 #define CLK_MFC 92 113 #define CLK_MFC 92 111 #define CLK_G2D 93 114 #define CLK_G2D 93 112 #define CLK_G3D 94 115 #define CLK_G3D 94 113 #define CLK_IMEM 95 116 #define CLK_IMEM 95 114 #define CLK_PDMA1 96 117 #define CLK_PDMA1 96 115 #define CLK_PDMA0 97 118 #define CLK_PDMA0 97 116 #define CLK_MDMA 98 119 #define CLK_MDMA 98 117 #define CLK_DMC1 99 120 #define CLK_DMC1 99 118 #define CLK_DMC0 100 121 #define CLK_DMC0 100 119 #define CLK_NFCON 101 122 #define CLK_NFCON 101 120 #define CLK_SROMC 102 123 #define CLK_SROMC 102 121 #define CLK_CFCON 103 124 #define CLK_CFCON 103 122 #define CLK_NANDXL 104 125 #define CLK_NANDXL 104 123 #define CLK_USB_HOST 105 126 #define CLK_USB_HOST 105 124 #define CLK_USB_OTG 106 127 #define CLK_USB_OTG 106 125 #define CLK_HDMI 107 128 #define CLK_HDMI 107 126 #define CLK_TVENC 108 129 #define CLK_TVENC 108 127 #define CLK_MIXER 109 130 #define CLK_MIXER 109 128 #define CLK_VP 110 131 #define CLK_VP 110 129 #define CLK_DSIM 111 132 #define CLK_DSIM 111 130 #define CLK_FIMD 112 133 #define CLK_FIMD 112 131 #define CLK_TZIC3 113 134 #define CLK_TZIC3 113 132 #define CLK_TZIC2 114 135 #define CLK_TZIC2 114 133 #define CLK_TZIC1 115 136 #define CLK_TZIC1 115 134 #define CLK_TZIC0 116 137 #define CLK_TZIC0 116 135 #define CLK_VIC3 117 138 #define CLK_VIC3 117 136 #define CLK_VIC2 118 139 #define CLK_VIC2 118 137 #define CLK_VIC1 119 140 #define CLK_VIC1 119 138 #define CLK_VIC0 120 141 #define CLK_VIC0 120 139 #define CLK_TSI 121 142 #define CLK_TSI 121 140 #define CLK_HSMMC3 122 143 #define CLK_HSMMC3 122 141 #define CLK_HSMMC2 123 144 #define CLK_HSMMC2 123 142 #define CLK_HSMMC1 124 145 #define CLK_HSMMC1 124 143 #define CLK_HSMMC0 125 146 #define CLK_HSMMC0 125 144 #define CLK_JTAG 126 147 #define CLK_JTAG 126 145 #define CLK_MODEMIF 127 148 #define CLK_MODEMIF 127 146 #define CLK_CORESIGHT 128 149 #define CLK_CORESIGHT 128 147 #define CLK_SDM 129 150 #define CLK_SDM 129 148 #define CLK_SECSS 130 151 #define CLK_SECSS 130 149 #define CLK_PCM2 131 152 #define CLK_PCM2 131 150 #define CLK_PCM1 132 153 #define CLK_PCM1 132 151 #define CLK_PCM0 133 154 #define CLK_PCM0 133 152 #define CLK_SYSCON 134 155 #define CLK_SYSCON 134 153 #define CLK_GPIO 135 156 #define CLK_GPIO 135 154 #define CLK_TSADC 136 157 #define CLK_TSADC 136 155 #define CLK_PWM 137 158 #define CLK_PWM 137 156 #define CLK_WDT 138 159 #define CLK_WDT 138 157 #define CLK_KEYIF 139 160 #define CLK_KEYIF 139 158 #define CLK_UART3 140 161 #define CLK_UART3 140 159 #define CLK_UART2 141 162 #define CLK_UART2 141 160 #define CLK_UART1 142 163 #define CLK_UART1 142 161 #define CLK_UART0 143 164 #define CLK_UART0 143 162 #define CLK_SYSTIMER 144 165 #define CLK_SYSTIMER 144 163 #define CLK_RTC 145 166 #define CLK_RTC 145 164 #define CLK_SPI1 146 167 #define CLK_SPI1 146 165 #define CLK_SPI0 147 168 #define CLK_SPI0 147 166 #define CLK_I2C_HDMI_PHY 148 169 #define CLK_I2C_HDMI_PHY 148 167 #define CLK_I2C1 149 170 #define CLK_I2C1 149 168 #define CLK_I2C2 150 171 #define CLK_I2C2 150 169 #define CLK_I2C0 151 172 #define CLK_I2C0 151 170 #define CLK_I2S1 152 173 #define CLK_I2S1 152 171 #define CLK_I2S2 153 174 #define CLK_I2S2 153 172 #define CLK_I2S0 154 175 #define CLK_I2S0 154 173 #define CLK_AC97 155 176 #define CLK_AC97 155 174 #define CLK_SPDIF 156 177 #define CLK_SPDIF 156 175 #define CLK_TZPC3 157 178 #define CLK_TZPC3 157 176 #define CLK_TZPC2 158 179 #define CLK_TZPC2 158 177 #define CLK_TZPC1 159 180 #define CLK_TZPC1 159 178 #define CLK_TZPC0 160 181 #define CLK_TZPC0 160 179 #define CLK_SECKEY 161 182 #define CLK_SECKEY 161 180 #define CLK_IEM_APC 162 183 #define CLK_IEM_APC 162 181 #define CLK_IEM_IEC 163 184 #define CLK_IEM_IEC 163 182 #define CLK_CHIPID 164 185 #define CLK_CHIPID 164 183 #define CLK_JPEG 163 186 #define CLK_JPEG 163 184 187 185 /* Special clocks*/ 188 /* Special clocks*/ 186 #define SCLK_PWI 164 189 #define SCLK_PWI 164 187 #define SCLK_SPDIF 165 190 #define SCLK_SPDIF 165 188 #define SCLK_AUDIO2 166 191 #define SCLK_AUDIO2 166 189 #define SCLK_AUDIO1 167 192 #define SCLK_AUDIO1 167 190 #define SCLK_AUDIO0 168 193 #define SCLK_AUDIO0 168 191 #define SCLK_PWM 169 194 #define SCLK_PWM 169 192 #define SCLK_SPI1 170 195 #define SCLK_SPI1 170 193 #define SCLK_SPI0 171 196 #define SCLK_SPI0 171 194 #define SCLK_UART3 172 197 #define SCLK_UART3 172 195 #define SCLK_UART2 173 198 #define SCLK_UART2 173 196 #define SCLK_UART1 174 199 #define SCLK_UART1 174 197 #define SCLK_UART0 175 200 #define SCLK_UART0 175 198 #define SCLK_MMC3 176 201 #define SCLK_MMC3 176 199 #define SCLK_MMC2 177 202 #define SCLK_MMC2 177 200 #define SCLK_MMC1 178 203 #define SCLK_MMC1 178 201 #define SCLK_MMC0 179 204 #define SCLK_MMC0 179 202 #define SCLK_FINVPLL 180 205 #define SCLK_FINVPLL 180 203 #define SCLK_CSIS 181 206 #define SCLK_CSIS 181 204 #define SCLK_FIMD 182 207 #define SCLK_FIMD 182 205 #define SCLK_CAM1 183 208 #define SCLK_CAM1 183 206 #define SCLK_CAM0 184 209 #define SCLK_CAM0 184 207 #define SCLK_DAC 185 210 #define SCLK_DAC 185 208 #define SCLK_MIXER 186 211 #define SCLK_MIXER 186 209 #define SCLK_HDMI 187 212 #define SCLK_HDMI 187 210 #define SCLK_FIMC2 188 213 #define SCLK_FIMC2 188 211 #define SCLK_FIMC1 189 214 #define SCLK_FIMC1 189 212 #define SCLK_FIMC0 190 215 #define SCLK_FIMC0 190 213 #define SCLK_HDMI27M 191 216 #define SCLK_HDMI27M 191 214 #define SCLK_HDMIPHY 192 217 #define SCLK_HDMIPHY 192 215 #define SCLK_USBPHY0 193 218 #define SCLK_USBPHY0 193 216 #define SCLK_USBPHY1 194 219 #define SCLK_USBPHY1 194 217 220 218 /* S5P6442-specific clocks */ 221 /* S5P6442-specific clocks */ 219 #define MOUT_D0SYNC 195 222 #define MOUT_D0SYNC 195 220 #define MOUT_D1SYNC 196 223 #define MOUT_D1SYNC 196 221 #define DOUT_MIXER 197 224 #define DOUT_MIXER 197 222 #define CLK_ETB 198 225 #define CLK_ETB 198 223 #define CLK_ETM 199 226 #define CLK_ETM 199 224 227 225 /* CLKOUT */ 228 /* CLKOUT */ 226 #define FOUT_APLL_CLKOUT 200 229 #define FOUT_APLL_CLKOUT 200 227 #define FOUT_MPLL_CLKOUT 201 230 #define FOUT_MPLL_CLKOUT 201 228 #define DOUT_APLL_CLKOUT 202 231 #define DOUT_APLL_CLKOUT 202 229 #define MOUT_CLKSEL 203 232 #define MOUT_CLKSEL 203 230 #define DOUT_CLKOUT 204 233 #define DOUT_CLKOUT 204 231 #define MOUT_CLKOUT 205 234 #define MOUT_CLKOUT 205 232 235 233 /* Total number of clocks. */ 236 /* Total number of clocks. */ 234 #define NR_CLKS 206 237 #define NR_CLKS 206 235 238 236 #endif /* _DT_BINDINGS_CLOCK_S5PV210_H */ 239 #endif /* _DT_BINDINGS_CLOCK_S5PV210_H */ 237 240
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.