1ec23ad67SHiroshi Doyu /* 2ec23ad67SHiroshi Doyu * This header provides constants for binding nvidia,tegra20-car. 3ec23ad67SHiroshi Doyu * 4ec23ad67SHiroshi Doyu * The first 96 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB 5ec23ad67SHiroshi Doyu * registers. These IDs often match those in the CAR's RST_DEVICES registers, 6ec23ad67SHiroshi Doyu * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In 7ec23ad67SHiroshi Doyu * this case, those clocks are assigned IDs above 95 in order to highlight 8ec23ad67SHiroshi Doyu * this issue. Implementations that interpret these clock IDs as bit values 9ec23ad67SHiroshi Doyu * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to 10ec23ad67SHiroshi Doyu * explicitly handle these special cases. 11ec23ad67SHiroshi Doyu * 12ec23ad67SHiroshi Doyu * The balance of the clocks controlled by the CAR are assigned IDs of 96 and 13ec23ad67SHiroshi Doyu * above. 14ec23ad67SHiroshi Doyu */ 15ec23ad67SHiroshi Doyu 16ec23ad67SHiroshi Doyu #ifndef _DT_BINDINGS_CLOCK_TEGRA20_CAR_H 17ec23ad67SHiroshi Doyu #define _DT_BINDINGS_CLOCK_TEGRA20_CAR_H 18ec23ad67SHiroshi Doyu 19ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CPU 0 20ec23ad67SHiroshi Doyu /* 1 */ 21ec23ad67SHiroshi Doyu /* 2 */ 22ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AC97 3 23ec23ad67SHiroshi Doyu #define TEGRA20_CLK_RTC 4 24ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TIMER 5 25ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTA 6 26ec23ad67SHiroshi Doyu /* 7 (register bit affects uart2 and vfir) */ 27ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GPIO 8 28ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC2 9 29ec23ad67SHiroshi Doyu /* 10 (register bit affects spdif_in and spdif_out) */ 30ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2S1 11 31ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C1 12 32ec23ad67SHiroshi Doyu #define TEGRA20_CLK_NDFLASH 13 33ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC1 14 34ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC4 15 35ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TWC 16 36ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PWM 17 37ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2S2 18 38ec23ad67SHiroshi Doyu #define TEGRA20_CLK_EPP 19 39ec23ad67SHiroshi Doyu /* 20 (register bit affects vi and vi_sensor) */ 40ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GR2D 21 41ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USBD 22 42ec23ad67SHiroshi Doyu #define TEGRA20_CLK_ISP 23 43ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GR3D 24 44ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IDE 25 45ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DISP2 26 46ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DISP1 27 47ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HOST1X 28 48ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VCP 29 49ec23ad67SHiroshi Doyu /* 30 */ 50ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CACHE2 31 51ec23ad67SHiroshi Doyu 52*4f4f85faSThierry Reding #define TEGRA20_CLK_MC 32 53ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AHBDMA 33 54ec23ad67SHiroshi Doyu #define TEGRA20_CLK_APBDMA 34 55ec23ad67SHiroshi Doyu /* 35 */ 56ec23ad67SHiroshi Doyu #define TEGRA20_CLK_KBC 36 57ec23ad67SHiroshi Doyu #define TEGRA20_CLK_STAT_MON 37 58ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PMC 38 59ec23ad67SHiroshi Doyu #define TEGRA20_CLK_FUSE 39 60ec23ad67SHiroshi Doyu #define TEGRA20_CLK_KFUSE 40 61ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC1 41 62ec23ad67SHiroshi Doyu #define TEGRA20_CLK_NOR 42 63ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPI 43 64ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC2 44 65ec23ad67SHiroshi Doyu #define TEGRA20_CLK_XIO 45 66ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC3 46 67ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DVC 47 68ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DSI 48 69ec23ad67SHiroshi Doyu /* 49 (register bit affects tvo and cve) */ 70ec23ad67SHiroshi Doyu #define TEGRA20_CLK_MIPI 50 71ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HDMI 51 72ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSI 52 73ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TVDAC 53 74ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C2 54 75ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTC 55 76ec23ad67SHiroshi Doyu /* 56 */ 77ec23ad67SHiroshi Doyu #define TEGRA20_CLK_EMC 57 78ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USB2 58 79ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USB3 59 80ec23ad67SHiroshi Doyu #define TEGRA20_CLK_MPE 60 81ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VDE 61 82ec23ad67SHiroshi Doyu #define TEGRA20_CLK_BSEA 62 83ec23ad67SHiroshi Doyu #define TEGRA20_CLK_BSEV 63 84ec23ad67SHiroshi Doyu 85ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPEEDO 64 86ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTD 65 87ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTE 66 88ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C3 67 89ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC4 68 90ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC3 69 91ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PEX 70 92ec23ad67SHiroshi Doyu #define TEGRA20_CLK_OWR 71 93ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AFI 72 94ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSITE 73 95a85f06baSStephen Warren /* 74 */ 96ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AVPUCQ 75 97ec23ad67SHiroshi Doyu #define TEGRA20_CLK_LA 76 98ec23ad67SHiroshi Doyu /* 77 */ 99ec23ad67SHiroshi Doyu /* 78 */ 100ec23ad67SHiroshi Doyu /* 79 */ 101ec23ad67SHiroshi Doyu /* 80 */ 102ec23ad67SHiroshi Doyu /* 81 */ 103ec23ad67SHiroshi Doyu /* 82 */ 104ec23ad67SHiroshi Doyu /* 83 */ 105ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMA 84 106ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMB 85 107ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMC 86 108ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMD 87 109ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CRAM2 88 110ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AUDIO_2X 89 /* a/k/a audio_2x_sync_clk */ 111ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_D 90 112ec23ad67SHiroshi Doyu /* 91 */ 113ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSUS 92 114ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CDEV2 93 115ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CDEV1 94 116ec23ad67SHiroshi Doyu /* 95 */ 117ec23ad67SHiroshi Doyu 118ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTB 96 119ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VFIR 97 120ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPDIF_IN 98 121ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPDIF_OUT 99 122ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VI 100 123ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VI_SENSOR 101 124ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TVO 102 125ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CVE 103 126ec23ad67SHiroshi Doyu #define TEGRA20_CLK_OSC 104 127ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_32K 105 /* a/k/a clk_s */ 128ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_M 106 129ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SCLK 107 130ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CCLK 108 131ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HCLK 109 132ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PCLK 110 133ec23ad67SHiroshi Doyu #define TEGRA20_CLK_BLINK 111 134ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_A 112 135ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_A_OUT0 113 136ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_C 114 137ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_C_OUT1 115 138ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_D 116 139ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_D_OUT0 117 140ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_E 118 141ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_M 119 142ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_M_OUT1 120 143ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P 121 144ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT1 122 145ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT2 123 146ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT3 124 147ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT4 125 148ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_S 126 149ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_U 127 150ec23ad67SHiroshi Doyu 151ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_X 128 152ec23ad67SHiroshi Doyu #define TEGRA20_CLK_COP 129 /* a/k/a avp */ 153ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AUDIO 130 /* a/k/a audio_sync_clk */ 154ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_REF 131 155ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TWD 132 156ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_MAX 133 157ec23ad67SHiroshi Doyu 158ec23ad67SHiroshi Doyu #endif /* _DT_BINDINGS_CLOCK_TEGRA20_CAR_H */ 159