]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-foster-e-p2530-common.dtsi
dcd0aa5c96149955d46c64688c808e665c33c41a
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-foster-e-p2530-common.dtsi
1 /*
2  * arch/arm64/boot/dts/tegra210-foster-e-p2530-common.dtsi
3  *
4  * Copyright (c) 2014-2016, NVIDIA CORPORATION.  All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  *
19  */
20
21 /dts-v1/;
22
23 /memreserve/ 0x80000000 0x00020000;
24
25 #include "tegra210-common.dtsi"
26 #include "tegra210-platforms/tegra210-foster-e-prods.dtsi"
27 #include "tegra210-platforms/tegra210-sdhci.dtsi"
28 #include "tegra210-platforms/tegra210-p2530-common.dtsi"
29 #include "tegra210-platforms/tegra210-foster-e-power-tree-p2530-0932-e00.dtsi"
30 #include "tegra210-platforms/tegra210-foster-e-gpio-p2530-0930-e00.dtsi"
31 #include "tegra210-platforms/tegra210-pinmux-drive-sdmmc-common.dtsi"
32 #include "tegra210-platforms/tegra210-loki-e-comms.dtsi"
33 #include "tegra210-platforms/tegra210-foster-e-pwm-fan.dtsi"
34 #include "tegra210-platforms/tegra210-foster-e-camera.dtsi"
35 #include "tegra210-platforms/tegra210-ers-hdmi-e2190-1100-a00.dtsi"
36 #include "tegra210-platforms/tegra210-foster-e-thermal-fan-est.dtsi"
37 #include "tegra210-platforms/tegra210-loki-e-keys-p2530-0032-e00.dtsi"
38 #include "tegra210-platforms/tegra210-edp.dtsi"
39 #include <dt-bindings/iio/meter/ina3221x.h>
40 #include "tegra210-platforms/tegra210-sysedp.dtsi"
41 #include "tegra210-platforms/tegra210-audio.dtsi"
42 #include "tegra210-platforms/tegra210-loki-e-cpufreq.dtsi"
43
44 / {
45         host1x {
46                 /* tegradc.0 */
47                 dc@54200000 {
48                         status = "okay";
49                         nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
50                         nvidia,emc-clk-rate = <300000000>;
51                         nvidia,cmu-enable = <1>;
52                         nvidia,fb-bpp = <32>; /* bits per pixel */
53                         nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
54                         nvidia,dc-or-node = "/host1x/sor1";
55                 };
56                 sor1 {
57                         hdmi-display {
58                                 nvidia,hdmi-vrr-caps = <1>;
59                         };
60                 };
61         };
62
63         pmc@7000e400 {
64                 io-pad-defaults {
65                         audio-hv {
66                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
67                         };
68
69                         spi-hv {
70                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
71                         };
72
73                         gpio {
74                                 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
75                                 nvidia,deep-power-down-enable;
76                         };
77                 };
78         };
79
80         spi@7000da00 {
81                 status = "disabled";
82         };
83
84         sdhci@700b0000 {
85                 default-drv-type = <1>;
86         };
87
88         ahub {
89                 i2s@702d1100 {
90                         pinctrl-names = "dap_active", "dap_inactive";
91                         pinctrl-0 = <>;
92                         pinctrl-1 = <>;
93                         regulator-supplies = "vdd-1v8-spi-hv", "vdd-1v8-spi-hv-bias";
94                         vdd-1v8-spi-hv-supply = <&max77620_sd3>;
95                         vdd-1v8-spi-hv-bias-supply = <&max77620_sd3>;
96                         fsync-width = <0>;
97                 };
98         };
99
100         sound {
101                 compatible = "nvidia,tegra-audio-t210ref-mobile-foster";
102                 nvidia,model = "tegra-snd-t210ref-mobile-es755";
103                 nvidia,num-codec-link = <1>;
104
105                 nvidia,audio-routing =
106                         "y Headphone",  "y OUT",
107                         "y IN",         "y Mic";
108
109                 nvidia,xbar = <&tegra_axbar>;
110
111                 nvidia,dai-link-1 {
112                         link-name = "spdif-dit-1";
113                         cpu-dai = <&tegra_i2s2>;
114                         codec-dai = <&spdif_dit1>;
115                         cpu-dai-name = "I2S2";
116                         codec-dai-name = "dit-hifi";
117                         format = "dsp_a";
118                         bitclock-slave;
119                         frame-slave;
120                         bitclock-inversion;
121                         frame-inversion;
122                         bit-format = "s16_le";
123                         bclk_ratio = <4>;
124                         srate = <8000>;
125                         num-channel = <1>;
126                         name-prefix = "y";
127                 };
128         };
129
130         extcon {
131                 extcon@0 {
132                         status = "disabled";
133                 };
134         };
135
136         udc@7d000000 {
137                 nvidia,port-otg;
138                 nvidia,charging-supported;
139                 #extcon-cells = <1>;
140                 status = "disabled";
141                 dt-override-status-odm-data = <0x01000000 0x00000000>;
142         };
143
144         otg@7d000000 {
145                 #extcon-cells = <1>;
146                 status = "disabled";
147                 dt-override-status-odm-data = <0x01000000 0x00000000>;
148         };
149
150         psy_extcon {
151                 status = "okay";
152                 power-supply,default-ac-cable-connected;
153         };
154
155         /* Put common control config here */
156         xusb_pad_ctl: xusb_padctl {
157                 nvidia,ss_portmap = <0x0321>;
158                 nvidia,lane_owner = <0xF056>; /* Use 0xF to disable lane assign */
159                 nvidia,otg_portmap = <0x0100>;
160                 status = "okay";
161         };
162
163         xusb@70090000 {
164                 /* nvidia,uses_external_pmic;
165                 /* nvidia,gpio_controls_muxed_ss_lanes; */
166                 nvidia,gpio_ss1_sata = <0>;
167                 nvidia,ulpicap = <0>; /* No ulpi support. can we remove */
168                 nvidia,portmap = <0x0e07>;
169                 nvidia,common_padctl = <&xusb_pad_ctl>;
170                 status = "okay";
171         };
172
173         xudc@700d0000 {
174                 nvidia,common_padctl = <&xusb_pad_ctl>;
175                 nvidia,portmap = <0x0108>;
176                 #extcon-cells = <1>;
177                 status = "disabled";
178                 dt-override-status-odm-data = <0x01000000 0x01000000>;
179         };
180
181         xotg {
182                 nvidia,common_padctl = <&xusb_pad_ctl>;
183                 #extcon-cells = <1>;
184                 status = "disabled";
185                 dt-override-status-odm-data = <0x01000000 0x01000000>;
186         };
187
188         chosen {
189                 nvidia,tegra-shield-sku;
190         };
191
192         gpio-ir-receiver {
193                 compatible = "gpio-ir-receiver";
194                 status = "okay";
195                 gpios = <&gpio TEGRA_GPIO(CC, 3) GPIO_ACTIVE_LOW>;
196                 min-delay = <250>;
197                 linux,rc-map-name = "rc-nvidia-nec";
198                 allowed-protos = <0x0 0x400>;
199         };
200
201         gpio-keys {
202                 power {
203                         gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
204                 };
205
206                 sw_lid {
207                         status="disabled";
208                 };
209         };
210
211         gpio-timed-keys {
212                 power {
213                         gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;
214                 };
215         };
216
217         gpu-dvfs-rework {
218                 status = "disabled";
219         };
220         pwm-leds {
221                 compatible = "pwm-leds";
222                 lightbar {
223                         label = "led_lightbar";
224                         pwms = <&tegra_pwm 0 10000000>;
225                         gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
226                         max-brightness = <255>;
227                         default-brightness = <255>;
228                         linux,default-trigger = "default-on";
229                 };
230         };
231         soctherm@0x700E2000 {
232                 throttle@oc1 {
233                         status = "disabled";
234                 };
235         };
236
237         cpu_edp {
238                 status = "okay";
239                 nvidia,edp_limit = <25000>;
240         };
241
242         gpu_edp {
243                 status = "okay";
244                 nvidia,edp_limit = <25000>;
245         };
246
247         sysedp_reactive_capping@3 {
248                 compatible = "nvidia,tegra124-sysedp_reactive_capping";
249                 nvidia,max_capping_mw = <15000>;
250                 nvidia,step_alarm_mw = <1000>;
251                 nvidia,step_relax_mw = <500>;
252                 nvidia,relax_ms = <250>;
253                 interrupt-parent = <&soctherm>;
254                 interrupts = <3 0x2002>;
255                 sysedpc {
256                         nvidia,name = "batmon_oc3";
257                 };
258         };
259
260         sysedp {
261                 compatible = "nvidia,tegra124-sysedp";
262                 nvidia,margin = <0>;
263                 nvidia,min_budget = <0>;
264                 nvidia,initial_budget = <40000>;
265         };
266
267         sysedp-dynamic-capping {
268                 compatible = "nvidia,tegra124-sysedp-dynamic-capping";
269                 nvidia,throttle_depth = <75>;
270                 nvidia,cap_method = <1>;
271         };
272
273         bcmdhd_wlan {
274                 country_code_map {
275                         CC1 {
276                                 iso_abbrev = "XV";
277                                 custom_locale = "XV";
278                                 custom_locale_rev = <997>;
279                         };
280                         CC2 {
281                                 iso_abbrev = "US";
282                                 custom_locale = "Q2";
283                                 custom_locale_rev = <998>;
284                         };
285                         CC3 {
286                                 iso_abbrev = "CA";
287                                 custom_locale = "Q2";
288                                 custom_locale_rev = <998>;
289                         };
290                         CC4 {
291                                 iso_abbrev = "AT";
292                                 custom_locale = "E0";
293                                 custom_locale_rev = <994>;
294                         };
295                         CC5 {
296                                 iso_abbrev = "BE";
297                                 custom_locale = "E0";
298                                 custom_locale_rev = <994>;
299                         };
300                         CC6 {
301                                 iso_abbrev = "BG";
302                                 custom_locale = "E0";
303                                 custom_locale_rev = <994>;
304                         };
305                         CC7 {
306                                 iso_abbrev = "HR";
307                                 custom_locale = "E0";
308                                 custom_locale_rev = <994>;
309                         };
310                         CC8 {
311                                 iso_abbrev = "CZ";
312                                 custom_locale = "E0";
313                                 custom_locale_rev = <994>;
314                         };
315                         CC9 {
316                                 iso_abbrev = "DK";
317                                 custom_locale = "E0";
318                                 custom_locale_rev = <994>;
319                         };
320                         CC10 {
321                                 iso_abbrev = "FR";
322                                 custom_locale = "E0";
323                                 custom_locale_rev = <994>;
324                         };
325                         CC11 {
326                                 iso_abbrev = "DE";
327                                 custom_locale = "E0";
328                                 custom_locale_rev = <994>;
329                         };
330                         CC12 {
331                                 iso_abbrev = "GR";
332                                 custom_locale = "E0";
333                                 custom_locale_rev = <994>;
334                         };
335                         CC13 {
336                                 iso_abbrev = "HU";
337                                 custom_locale = "E0";
338                                 custom_locale_rev = <994>;
339                         };
340                         CC14 {
341                                 iso_abbrev = "IT";
342                                 custom_locale = "E0";
343                                 custom_locale_rev = <994>;
344                         };
345                         CC15 {
346                                 iso_abbrev = "NL";
347                                 custom_locale = "E0";
348                                 custom_locale_rev = <994>;
349                         };
350                         CC16 {
351                                 iso_abbrev = "NO";
352                                 custom_locale = "E0";
353                                 custom_locale_rev = <994>;
354                         };
355                         CC17 {
356                                 iso_abbrev = "PL";
357                                 custom_locale = "E0";
358                                 custom_locale_rev = <994>;
359                         };
360                         CC18 {
361                                 iso_abbrev = "PT";
362                                 custom_locale = "E0";
363                                 custom_locale_rev = <994>;
364                         };
365                         CC19 {
366                                 iso_abbrev = "RO";
367                                 custom_locale = "E0";
368                                 custom_locale_rev = <994>;
369                         };
370                         CC20 {
371                                 iso_abbrev = "SK";
372                                 custom_locale = "E0";
373                                 custom_locale_rev = <994>;
374                         };
375                         CC21 {
376                                 iso_abbrev = "ES";
377                                 custom_locale = "E0";
378                                 custom_locale_rev = <994>;
379                         };
380                         CC22 {
381                                 iso_abbrev = "SE";
382                                 custom_locale = "E0";
383                                 custom_locale_rev = <994>;
384                         };
385                         CC23 {
386                                 iso_abbrev = "CH";
387                                 custom_locale = "E0";
388                                 custom_locale_rev = <994>;
389                         };
390                         CC24 {
391                                 iso_abbrev = "GB";
392                                 custom_locale = "E0";
393                                 custom_locale_rev = <994>;
394                         };
395                         CC25 {
396                                 iso_abbrev = "EU";
397                                 custom_locale = "E0";
398                                 custom_locale_rev = <994>;
399                         };
400                         CC26 {
401                                 iso_abbrev = "E0";
402                                 custom_locale = "E0";
403                                 custom_locale_rev = <994>;
404                         };
405                 };
406         };
407
408         serial@70006300 {
409                 dma-names = "tx";
410         };
411 };