]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-foster-e-p2530-common.dtsi
arm64: dts: Update wifi firmware/nvram path for T210 platforms
[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                 fw_path = "/system/vendor/firmware/fw_bcmdhd.bin";
275                 nv_path = "/system/etc/nvram_foster_e_4354.txt";
276                 tuned_nv_path = "/system/etc/nvram_foster_e_antenna_tuned_4354.txt";
277                 country_code_map {
278                         CC1 {
279                                 iso_abbrev = "XV";
280                                 custom_locale = "XV";
281                                 custom_locale_rev = <997>;
282                         };
283                         CC2 {
284                                 iso_abbrev = "US";
285                                 custom_locale = "Q2";
286                                 custom_locale_rev = <998>;
287                         };
288                         CC3 {
289                                 iso_abbrev = "CA";
290                                 custom_locale = "Q2";
291                                 custom_locale_rev = <998>;
292                         };
293                         CC4 {
294                                 iso_abbrev = "AT";
295                                 custom_locale = "E0";
296                                 custom_locale_rev = <994>;
297                         };
298                         CC5 {
299                                 iso_abbrev = "BE";
300                                 custom_locale = "E0";
301                                 custom_locale_rev = <994>;
302                         };
303                         CC6 {
304                                 iso_abbrev = "BG";
305                                 custom_locale = "E0";
306                                 custom_locale_rev = <994>;
307                         };
308                         CC7 {
309                                 iso_abbrev = "HR";
310                                 custom_locale = "E0";
311                                 custom_locale_rev = <994>;
312                         };
313                         CC8 {
314                                 iso_abbrev = "CZ";
315                                 custom_locale = "E0";
316                                 custom_locale_rev = <994>;
317                         };
318                         CC9 {
319                                 iso_abbrev = "DK";
320                                 custom_locale = "E0";
321                                 custom_locale_rev = <994>;
322                         };
323                         CC10 {
324                                 iso_abbrev = "FR";
325                                 custom_locale = "E0";
326                                 custom_locale_rev = <994>;
327                         };
328                         CC11 {
329                                 iso_abbrev = "DE";
330                                 custom_locale = "E0";
331                                 custom_locale_rev = <994>;
332                         };
333                         CC12 {
334                                 iso_abbrev = "GR";
335                                 custom_locale = "E0";
336                                 custom_locale_rev = <994>;
337                         };
338                         CC13 {
339                                 iso_abbrev = "HU";
340                                 custom_locale = "E0";
341                                 custom_locale_rev = <994>;
342                         };
343                         CC14 {
344                                 iso_abbrev = "IT";
345                                 custom_locale = "E0";
346                                 custom_locale_rev = <994>;
347                         };
348                         CC15 {
349                                 iso_abbrev = "NL";
350                                 custom_locale = "E0";
351                                 custom_locale_rev = <994>;
352                         };
353                         CC16 {
354                                 iso_abbrev = "NO";
355                                 custom_locale = "E0";
356                                 custom_locale_rev = <994>;
357                         };
358                         CC17 {
359                                 iso_abbrev = "PL";
360                                 custom_locale = "E0";
361                                 custom_locale_rev = <994>;
362                         };
363                         CC18 {
364                                 iso_abbrev = "PT";
365                                 custom_locale = "E0";
366                                 custom_locale_rev = <994>;
367                         };
368                         CC19 {
369                                 iso_abbrev = "RO";
370                                 custom_locale = "E0";
371                                 custom_locale_rev = <994>;
372                         };
373                         CC20 {
374                                 iso_abbrev = "SK";
375                                 custom_locale = "E0";
376                                 custom_locale_rev = <994>;
377                         };
378                         CC21 {
379                                 iso_abbrev = "ES";
380                                 custom_locale = "E0";
381                                 custom_locale_rev = <994>;
382                         };
383                         CC22 {
384                                 iso_abbrev = "SE";
385                                 custom_locale = "E0";
386                                 custom_locale_rev = <994>;
387                         };
388                         CC23 {
389                                 iso_abbrev = "CH";
390                                 custom_locale = "E0";
391                                 custom_locale_rev = <994>;
392                         };
393                         CC24 {
394                                 iso_abbrev = "GB";
395                                 custom_locale = "E0";
396                                 custom_locale_rev = <994>;
397                         };
398                         CC25 {
399                                 iso_abbrev = "EU";
400                                 custom_locale = "E0";
401                                 custom_locale_rev = <994>;
402                         };
403                         CC26 {
404                                 iso_abbrev = "E0";
405                                 custom_locale = "E0";
406                                 custom_locale_rev = <994>;
407                         };
408                 };
409         };
410
411         serial@70006300 {
412                 dma-names = "tx";
413         };
414 };