arm: dts: tn7c: add hotlug_report in devicetree
[linux-2.6.git] / arch / arm / boot / dts / tegra114-tegranote7c.dts
1 /*
2  * Copyright (c) 2013-2014, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 /dts-v1/;
18
19 /include/ "tegra114-tegranote7c-common.dtsi"
20
21 / {
22         host1x {
23                 /* tegradc.0 */
24                 dc@54200000 {
25                         status = "okay";
26                         nvidia,dc-flags = "dc_flag_en";
27                         nvidia,emc-clk-rate = <204000000>;
28                         nvidia,cmu-enable = <0>;
29                         dc-default-out {
30                                 nvidia,out-type = "dsi";
31                                 nvidia,out-width = <94>;
32                                 nvidia,out-height = <150>;
33                                 nvidia,out-flags = "continuous_initialized";
34                                 nvidia,out-parent-clk = "pll_d_out0";
35                         };
36                         display-timings {
37                                 800x1200-32 {
38                                         clock-frequency = <70666000>;
39                                         hactive = <800>;
40                                         vactive = <1280>;
41                                         hfront-porch = <32>;
42                                         hback-porch = <57>;
43                                         hsync-len = <1>;
44                                         vfront-porch = <28>;
45                                         vback-porch = <14>;
46                                         vsync-len = <1>;
47                                         nvidia,h-ref-to-sync = <10>;
48                                         nvidia,v-ref-to-sync = <1>;
49                                 };
50                         };
51                         framebuffer-data {
52                                 nvidia,fb-bpp = <32>; /* bits per pixel */
53                                 nvidia,fb-flags = "flip_on_probe";
54                                 nvidia,fb-xres = <800>;
55                                 nvidia,fb-yres = <1280>;
56                         };
57                         smartdimmer {
58                                 status = "disabled";
59                                 nvidia,use-auto-pwm = <0>;
60                                 nvidia,hw-update-delay = <0>;
61                                 nvidia,bin-width = "-1";
62                                 nvidia,aggressiveness = <5>;
63                                 nvidia,use-vid-luma = <0>;
64                                 nvidia,phase-in-settings = <0>;
65                                 nvidia,phase-in-adjustments = <0>;
66                                 nvidia,k-limit-enable = <1>;
67                                 nvidia,k-limit = <200>;
68                                 nvidia,sd-window-enable = <0>;
69                                 nvidia,soft-clipping-enable= <1>;
70                                 nvidia,soft-clipping-threshold = <128>;
71                                 nvidia,smooth-k-enable = <1>;
72                                 nvidia,smooth-k-incr = <4>;
73                                 nvidia,coeff = <5 9 2>;
74                                 nvidia,fc = <0 0>;
75                                 nvidia,blp = <1024 255>;
76                                 nvidia,bltf = <57 65 73 82
77                                                   92 103 114 125
78                                                   138 150 164 178
79                                                   193 208 224 241>;
80                                 nvidia,lut = <255 255 255
81                                                  199 199 199
82                                                  153 153 153
83                                                  116 116 116
84                                                  85 85 85
85                                                  59 59 59
86                                                  36 36 36
87                                                  17 17 17
88                                                  0 0 0>;
89                                 nvidia,use-vpulse2 = <1>;
90                                 nvidia,bl-device-name = "pwm-backlight";
91                         };
92                         cmu {
93                                 nvidia,cmu-csc = < 0x106 0x3EB 0x00E
94                                                    0x3F8 0x11B 0x3EB
95                                                    0x003 0x001 0x0FB >;
96                                 nvidia,cmu-lut2 = < 0 2 4 7 9 11 13 14
97                                                     16 17 19 20 21 22 23 24
98                                                     25 26 27 27 28 28 29 29
99                                                     29 30 30 30 30 31 31 31
100                                                     31 31 31 31 31 32 32 32
101                                                     32 32 32 33 33 33 33 33
102                                                     34 34 34 34 35 35 35 35
103                                                     36 36 36 37 37 37 38 38
104                                                     38 39 39 39 40 40 40 41
105                                                     41 41 42 42 42 43 43 44
106                                                     44 44 45 45 45 46 46 46
107                                                     47 47 47 48 48 48 49 49
108                                                     49 49 50 50 50 51 51 51
109                                                     51 52 52 52 52 53 53 53
110                                                     53 54 54 54 54 54 55 55
111                                                     55 55 55 56 56 56 56 56
112                                                     57 57 57 57 57 57 58 58
113                                                     58 58 58 58 59 59 59 59
114                                                     59 59 59 60 60 60 60 60
115                                                     60 60 60 61 61 61 61 61
116                                                     61 61 61 62 62 62 62 62
117                                                     62 62 62 63 63 63 63 63
118                                                     63 63 63 63 64 64 64 64
119                                                     64 64 64 64 65 65 65 65
120                                                     65 65 65 65 66 66 66 66
121                                                     66 66 66 66 67 67 67 67
122                                                     67 67 67 67 68 68 68 68
123                                                     68 68 68 68 69 69 69 69
124                                                     69 69 69 69 70 70 70 70
125                                                     70 70 70 71 71 71 71 71
126                                                     71 71 71 72 72 72 72 72
127                                                     72 72 72 73 73 73 73 73
128                                                     73 73 74 74 74 74 74 74
129                                                     74 74 75 75 75 75 75 75
130                                                     75 75 76 76 76 76 76 76
131                                                     76 76 77 77 77 77 77 77
132                                                     77 77 78 78 78 78 78 78
133                                                     78 78 79 79 79 79 79 79
134                                                     79 79 80 80 80 80 80 80
135                                                     80 80 80 81 81 81 81 81
136                                                     81 81 81 82 82 82 82 82
137                                                     82 82 82 82 83 83 83 83
138                                                     83 83 83 83 83 83 84 84
139                                                     84 84 84 84 84 84 84 85
140                                                     85 85 85 85 85 85 85 85
141                                                     85 86 86 86 86 86 86 86
142                                                     86 86 86 87 87 87 87 87
143                                                     87 87 87 87 87 87 88 88
144                                                     88 88 88 88 88 88 88 88
145                                                     89 89 89 89 89 89 89 89
146                                                     89 89 89 90 90 90 90 90
147                                                     90 90 90 90 90 90 91 91
148                                                     91 91 91 91 91 91 91 91
149                                                     91 91 92 92 92 92 92 92
150                                                     92 92 92 92 92 92 93 93
151                                                     93 93 93 93 93 93 93 93
152                                                     93 94 94 94 94 94 94 94
153                                                     94 94 94 94 94 95 95 95
154                                                     95 95 95 95 95 95 95 95
155                                                     95 95 96 96 96 96 96 96
156                                                     96 96 96 96 96 96 97 97
157                                                     97 97 97 97 97 97 97 97
158                                                     97 97 98 98 98 98 98 98
159                                                     98 98 98 98 98 98 98 99
160                                                     99 100 100 101 102 102 103 104
161                                                    104 105 105 106 107 107 108 108
162                                                    109 110 110 111 111 112 112 113
163                                                    114 114 115 115 116 116 117 117
164                                                    118 118 119 119 120 120 121 121
165                                                    122 122 123 123 124 124 125 125
166                                                    126 126 127 127 128 128 129 129
167                                                    130 130 131 131 132 132 133 133
168                                                    134 134 134 135 135 136 136 137
169                                                    137 138 138 139 139 139 140 140
170                                                    141 141 142 142 142 143 143 144
171                                                    144 144 145 145 146 146 146 147
172                                                    147 148 148 148 149 149 150 150
173                                                    150 151 151 151 152 152 153 153
174                                                    153 154 154 154 155 155 156 156
175                                                    156 157 157 157 158 158 159 159
176                                                    159 160 160 160 161 161 162 162
177                                                    162 163 163 164 164 164 165 165
178                                                    166 166 166 167 167 168 168 168
179                                                    169 169 170 170 170 171 171 172
180                                                    172 172 173 173 174 174 174 175
181                                                    175 176 176 176 177 177 178 178
182                                                    178 179 179 179 180 180 181 181
183                                                    181 182 182 182 183 183 183 184
184                                                    184 185 185 185 186 186 186 187
185                                                    187 187 188 188 189 189 189 190
186                                                    190 190 191 191 191 192 192 192
187                                                    193 193 193 194 194 195 195 195
188                                                    196 196 196 197 197 197 198 198
189                                                    198 199 199 199 200 200 200 201
190                                                    201 201 202 202 202 203 203 203
191                                                    204 204 204 205 205 205 206 206
192                                                    206 207 207 207 208 208 208 209
193                                                    209 209 210 210 210 211 211 211
194                                                    211 212 212 212 213 213 213 214
195                                                    214 214 214 215 215 215 216 216
196                                                    216 216 217 217 217 218 218 218
197                                                    218 219 219 219 220 220 220 220
198                                                    221 221 221 222 222 222 222 223
199                                                    223 223 223 224 224 224 225 225
200                                                    225 225 226 226 226 226 227 227
201                                                    227 227 228 228 228 228 229 229
202                                                    229 229 230 230 230 230 231 231
203                                                    231 231 232 232 232 232 233 233
204                                                    233 233 234 234 234 234 235 235
205                                                    235 235 236 236 236 236 237 237
206                                                    237 237 238 238 238 238 239 239
207                                                    239 239 240 240 240 240 241 241
208                                                    241 241 241 242 242 242 242 243
209                                                    243 243 243 244 244 244 244 245
210                                                    245 245 245 245 246 246 246 246
211                                                    247 247 247 247 248 248 248 248
212                                                    249 249 249 249 249 250 250 250
213                                                    250 251 251 251 251 251 252 252
214                                                    252 252 253 253 253 253 253 254
215                                                    254 254 254 255 255 255 255 255 >;
216                         };
217                 };
218
219                 /* tegradc.1 */
220                 dc@54240000 {
221                         status = "okay";
222                         nvidia,emc-clk-rate = <300000000>;
223                         nvidia,cmu-enable = <1>;
224                         dc-default-out {
225                                 nvidia,out-type = "hdmi";
226                                 nvidia,out-flags = "hotplug_high";
227                                 nvidia,out-parent-clk = "pll_d2_out0";
228                                 nvidia,out-max-pixclk = <148500>;
229                                 nvidia,out-align = "msb";
230                                 nvidia,out-order = "rtob"; /*red to blue*/
231                                 nvidia,out-tmds-cfg {
232                                         tmds-cfg@0 {
233                                                 pclk = <27000000>;
234                                                 pll0 = <0x01003010>;
235                                                 pll1 = <0x00301b00>;
236                                                 pe-current = <0x00000000>;
237                                                 drive-current = <0x23232323>;
238                                                 peak-current = <0x00000000>;
239                                         };
240                                         tmds-cfg@1 {
241                                                 pclk = <74250000>;
242                                                 pll0 = <0x01003110>;
243                                                 pll1 = <0x00301b00>;
244                                                 pe-current = <0x00000000>;
245                                                 drive-current = <0x21212121>;
246                                                 peak-current = <0x03030303>;
247                                         };
248                                         tmds-cfg@2 {
249                                                 pclk = <148500000>;
250                                                 pll0 = <0x01003310>;
251                                                 pll1 = <0x00301b00>;
252                                                 pe-current = <0x00000000>;
253                                                 drive-current = <0x24242424>;
254                                                 peak-current = <0x03030303>;
255                                         };
256                                         tmds-cfg@3 {
257                                                 pclk = <0x7fffffff>;
258                                                 pll0 = <0x01003f10>;
259                                                 pll1 = <0x13300b00>;
260                                                 pe-current = <0x00000000>;
261                                                 drive-current = <0x24242424>;
262                                                 peak-current = <0x07070707>;
263                                         };
264                                 };
265                         };
266                         framebuffer-data {
267                                 nvidia,fb-bpp = <32>; /* bits per pixel */
268                                 nvidia,fb-flags = "flip_on_probe";
269                                 nvidia,fb-xres = <1024>;
270                                 nvidia,fb-yres = <600>;
271                         };
272                 };
273                 dsi {
274                         status = "okay";
275                         nvidia,panel = <&panel>;
276                         nvidia,dsi-n-data-lanes = <4>;
277                         nvidia,dsi-video-burst-mode = "none_burst";
278                         nvidia,dsi-pixel-format = "24_p";
279                         nvidia,dsi-ref-rate = <60>;
280                         nvidia,dsi-virtual-ch = "vc0";
281                         nvidia,dsi-instance = <0>; /* 0 or 1 */
282                         nvidia,dsi-panel-reset = <0>;
283                         nvidia,dsi-power-saving-suspend = <1>;
284                         nvidia,dsi-video-data-type = "video";
285                         nvidia,dsi-video-clk-mode = "txonly";
286                         nvidia,dsi-phy-datzero = <270>;
287                         nvidia,dsi-phy-hsprepare = <30>;
288                         nvidia,dsi-phy-clkzero = <330>;
289                         nvidia,dsi-phy-clkprepare = <27>;
290                 };
291                 hdmi {
292                         status = "okay";
293                         nvidia,regulators = "avdd_hdmi",
294                                             "avdd_hdmi_pll",
295                                             "vdd_hdmi_5v0";
296                         nvidia,ddc-i2c-bus = <&hdmi_ddc>;
297                         nvidia,hpd-gpio = <&gpio 111 1>;
298                         nvidia,hotplug-report = <1>;
299                 };
300         };
301         pwm-bl {
302                 status = "okay";
303                 nvidia,panel-pwm-bl = <&panelpwmbl>;
304                 nvidia,pwm-id = <1>;
305                 nvidia,max-brightness = <255>;
306                 nvidia,dft-brightness = <153>;
307                 nvidia,dft-charge-brightness = <60>;
308                 nvidia,pwm-period-ns = <1000000>;
309                 nvidia,disable-edp-throttle = <1>;
310                 nvidia,edp-states = <1711 1390 1057 713 360 0>;
311                 nvidia,edp-brightness = <255 204 153 101 50 0>;
312                 nvidia,pwm-gpio = <&gpio 57 0>; /* gpio PH1 */
313         };
314
315         panel: panel {
316                 compatible = "lgd,tegranote7c";
317                 status = "okay";
318                 nvidia,regulators = "avdd_lcd",
319                                     "vdd_lcd_bl_en",
320                                     "dvdd_lcd";
321         };
322
323         panelpwmbl: panelpwmbl {
324                 compatible = "lgd-pwm-bl,tegranote7c";
325                 status = "okay";
326                 nvidia,bl-output = < 0 1 2 3 4 6 7 8 9 10
327                                      11 12 13 14 15 16 16 17 18 19
328                                      20 21 22 23 24 25 25 26 27 28
329                                      29 30 31 32 33 34 35 36 37 38
330                                      39 40 41 42 43 44 45 46 47 48
331                                      49 50 51 52 53 54 55 56 57 58
332                                      59 60 61 62 63 64 65 66 67 68
333                                      69 70 71 72 73 74 74 75 76 77
334                                      78 79 80 81 82 83 84 85 86 87
335                                      88 89 90 91 92 93 94 95 96 97
336                                      98 99 100 101 102 103 104 105 106 107
337                                      108 109 110 111 112 113 114 115 116 117
338                                      118 119 120 121 122 123 124 125 126 127
339                                      128 129 130 131 132 133 134 135 136 137
340                                      138 139 140 141 142 143 144 145 146 147
341                                      148 149 150 151 152 153 154 155 156 157
342                                      158 159 160 161 162 164 165 166 167 168
343                                      169 170 171 172 173 174 175 176 177 178
344                                      179 180 181 182 183 184 185 186 187 188
345                                      189 190 191 192 193 194 195 196 197 198
346                                      199 200 201 202 203 205 206 207 208 209
347                                      210 211 212 213 214 215 216 217 218 219
348                                      220 221 222 223 224 225 226 227 228 229
349                                      230 231 232 233 234 236 237 238 239 240
350                                      241 242 243 244 245 246 247 248 249 250
351                                      251 252 253 253 254 255 >;
352         };
353
354         /* GEN1 */
355         i2c@7000c000 {
356                 status = "okay";
357                 clock-frequency = <100000>;
358
359                 /* ALS sensor */
360                 cm3217@10 {
361                         compatible = "capella,cm3217";
362                         reg = <0x10>;
363                         levels = <10 160 225 320 640 1280 2600 5800 8000 10240>;
364                         golden_adc = <0>;
365                 };
366
367                 /* Compass sensor */
368                 ak8963c@0d {
369                         compatible = "ak,ak8963";
370                         reg = <0x0d>;
371                         orientation = [ff 00 00 00 01 00 00 00 ff];
372                         config = "mpu";
373                         sec-slave-id = <18>;
374                 };
375         };
376
377         /* CAM */
378         i2c@7000c500 {
379                 status = "okay";
380                 ad5823@0c {
381                         compatible = "nvidia,ad5823";
382                         reg = <0x0c>;
383                         af-pwdn-gpios = <&gpio 223 0>; /* gpio PBB7 */
384                 };
385                 ov5693@10 {
386                         compatible = "nvidia,ov5693";
387                         reg = <0x10>;
388                         nvidia,num = <5693>;
389                         nvidia,dev-name = "camera";
390                         nvidia,use-vcm-vdd;
391                         reset-gpios = <&gpio 221 0>; /* gpio PBB5 */
392                 };
393         };
394         /* DDC */
395         hdmi_ddc: i2c@7000c700 {
396                 status = "okay";
397                 clock-frequency = <100000>;
398         };
399
400         pwfm@0x7000a010 {
401                 status = "okay";
402         };
403 };