2 * arch/arm64/boot/dts/tegra210-vcm31-e2580-common.dtsi
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
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.
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
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.
23 /memreserve/ 0x80000000 0x00020000;
25 #include "tegra210-common.dtsi"
26 #include "tegra210-platforms/tegra210-sdhci.dtsi"
27 #include "tegra210-platforms/tegra210-edp.dtsi"
28 #include "tegra210-platforms/tegra210-sysedp.dtsi"
29 #include "tegra210-platforms/tegra210-audio.dtsi"
30 #include "tegra210-platforms/tegra210-vcm31-gpio-e2580-0631-a00.dtsi"
31 #include "tegra210-platforms/tegra210-vcm31-pinmux-e2580-0631-a00.dtsi"
32 #include "tegra210-platforms/tegra210-vcm31-sdmmc-e2580-0631-a00.dtsi"
33 #include "tegra210-platforms/tegra210-vcm31-power-tree-e2580-0631-a00.dtsi"
34 #include "tegra210-platforms/tegra210-ers-hdmi-e2190-1100-a00.dtsi"
35 #include "tegra210-platforms/tegra210-ers-clk-init.dtsi"
37 #include <dt-bindings/iio/meter/ina3221x.h>
38 #include <dt-bindings/sound/tegra-asoc-alt.h>
42 compatible = "nvidia,foster-e", "nvidia,tegra210";
43 nvidia,dtsfilename = __FILE__;
44 nvidia,fastboot-usb-pid = <0x7100>;
45 nvidia,boardids = "2580:0631:A0";
46 nvidia,proc-boardid = "2580:0631:A0";
47 nvidia,pmu-boardid = "2580:0631:A0";
50 earSmart: earSmart-codec@0 {
51 adnc,gpiob-gpio = <&gpio TEGRA_GPIO(BB, 4) GPIO_ACTIVE_HIGH>;
58 compatible = "spidev";
60 spi-max-frequency = <13000000>;
63 compatible = "spidev";
65 spi-max-frequency = <13000000>;
70 compatible = "nvidia,tegra210-spi-slave";
73 compatible = "spidev";
75 spi-max-frequency = <13000000>;
82 compatible = "spidev";
84 spi-max-frequency = <13000000>;
91 compatible = "spidev";
93 spi-max-frequency = <133000000>;
96 nvidia,x1-len-limit = <16>;
97 nvidia,x1-bus-speed = <133000000>; /* In Mhz */
98 nvidia,x1-dymmy-cycle = <0>;
99 nvidia,x4-bus-speed = <133000000>;
100 nvidia,x4-dymmy-cycle = <8>;
101 nvidia,ifddr-div2-sdr = <1>;
102 nvidia,x4-is-ddr=<1>;
107 #address-cells = <1>;
109 compatible = "s25fl512s";
111 spi-max-frequency = <133000000>;
113 label = "Bootloader";
114 reg = <0x00000000 0x4000000>;
117 nvidia,x1-len-limit = <16>;
118 nvidia,x1-bus-speed = <133000000>; /* In Mhz */
119 nvidia,x1-dymmy-cycle = <0>;
120 nvidia,x4-bus-speed = <133000000>;
121 nvidia,x4-dymmy-cycle = <8>;
122 nvidia,ifddr-div2-sdr = <1>;
123 nvidia,x4-is-ddr=<1>;
129 cd-gpios = <&gpio TEGRA_GPIO_PZ2 0>;
133 sdhci@700b0600 { /* SDMMC4 for EMMC */
136 pll_source = "pll_p", "pll_c4_out2";
142 nvidia,wake-gpio = <&gpio TEGRA_GPIO(A, 2) 0>;
143 nvidia,lane-map = <0x12>;
144 dvdd-pex-pll-supply = <&max77620_ldo1>;
145 l0-dvddio-pex-supply = <&max77620_ldo1>;
146 l1-dvddio-pex-supply = <&max77620_ldo1>;
147 l2-dvddio-pex-supply = <&max77620_ldo1>;
148 l3-dvddio-pex-supply = <&max77620_ldo1>;
149 l4-dvddio-pex-supply = <&max77620_ldo1>;
150 l5-dvddio-pex-supply = <&max77620_ldo1>;
151 l6-dvddio-pex-supply = <&max77620_ldo1>;
152 hvdd-pex-pll-e-supply = <&max77620_sd3>;
153 l0-hvddio-pex-supply = <&max77620_sd3>;
154 l1-hvddio-pex-supply = <&max77620_sd3>;
155 l2-hvddio-pex-supply = <&max77620_sd3>;
156 l3-hvddio-pex-supply = <&max77620_sd3>;
157 l4-hvddio-pex-supply = <&max77620_sd3>;
158 l5-hvddio-pex-supply = <&max77620_sd3>;
159 l6-hvddio-pex-supply = <&max77620_sd3>;
160 vddio-pex-ctl-supply = <&max77620_sd3>;
175 compatible = "nvidia,tegra210-uart", "nvidia,tegra114-hsuart";
189 nvidia,invert-interrupt;
192 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
196 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
200 nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
210 nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
211 nvidia,emc-clk-rate = <300000000>;
212 nvidia,fb-bpp = <32>; /* bits per pixel */
213 nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
218 device_type = "memory";
219 reg = < 0x0 0x80000000 0x0 0x80000000 >;
223 interrupts = <0 24 0x04
237 wifi-antenna-tuning {
241 soctherm@0x700E2000 {
243 device_type = "throttlectl";
249 count_threshold = <100>;
251 throttle_dev = <&{/soctherm@0x700E2000/throttle_dev@cpu_medium}
252 &{/soctherm@0x700E2000/throttle_dev@gpu_medium}>;
255 device_type = "throttlectl";
261 count_threshold = <15>;
263 throttle_dev = <&{/soctherm@0x700E2000/throttle_dev@cpu_medium}
264 &{/soctherm@0x700E2000/throttle_dev@gpu_medium}>;
266 throttle_dev@cpu_medium {
272 throttle_dev@gpu_medium {
273 level = "medium_throttling";
279 thermal-zone-params {
280 governor-name = "pid_thermal_gov";
281 max_err_temp = <9000>;
282 max_err_gain = <1000>;
285 up_compensation = <20>;
286 down_compensation = <20>;
290 temperature = <102500>;
296 temperature = <98500>;
302 temperature = <89000>;
310 trip = <&{/thermal-zones/CPU-therm/trips/cpu_critical}>;
311 cdev-type = "tegra-shutdown";
312 cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
313 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
316 trip = <&{/thermal-zones/CPU-therm/trips/cpu_heavy}>;
317 cdev-type = "tegra-heavy";
318 cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
319 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
322 trip = <&{/thermal-zones/CPU-therm/trips/cpu_throttle}>;
323 cdev-type = "cpu-balanced";
324 cooling-device = <&{/bthrot_cdev/cpu_balanced}
325 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
330 thermal-zone-params {
331 governor-name = "pid_thermal_gov";
332 max_err_temp = <9000>;
333 max_err_gain = <1000>;
336 up_compensation = <20>;
337 down_compensation = <20>;
341 temperature = <103000>;
347 temperature = <100000>;
353 temperature = <90500>;
361 trip = <&{/thermal-zones/GPU-therm/trips/gpu_critical}>;
362 cdev-type = "tegra-shutdown";
363 cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
364 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
367 trip = <&{/thermal-zones/GPU-therm/trips/gpu_heavy}>;
368 cdev-type = "tegra-heavy";
369 cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
370 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
373 trip = <&{/thermal-zones/GPU-therm/trips/gpu_throttle}>;
374 cdev-type = "gpu-balanced";
375 cooling-device = <&{/bthrot_cdev/gpu_balanced}
376 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
382 thermal-zone-params {
383 governor-name = "pid_thermal_gov";
384 max_err_temp = <9000>;
385 max_err_gain = <1000>;
388 up_compensation = <20>;
389 down_compensation = <20>;
393 temperature = <103000>; /* must be same as GPU's critical temp */
399 temperature = <101500>;
405 temperature = <92000>;
413 trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_critical}>;
414 cdev-type = "tegra-shutdown";
415 cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
416 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
419 trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_heavy}>;
420 cdev-type = "tegra-heavy";
421 cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
422 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
425 trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_throttle}>;
426 cdev-type = "cpu-balanced";
427 cooling-device = <&{/bthrot_cdev/cpu_balanced}
428 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
434 thermal-zone-params {
435 governor-name = "pid_thermal_gov";
436 max_err_temp = <9000>;
437 max_err_gain = <1000>;
440 up_compensation = <20>;
441 down_compensation = <20>;
459 pinctrl-names = "dap_active", "dap_inactive";
462 regulator-supplies = "vdd-1v8-spi-hv", "vdd-1v8-spi-hv-bias";
463 vdd-1v8-spi-hv-supply = <&max77620_sd3>;
464 vdd-1v8-spi-hv-bias-supply = <&max77620_sd3>;
467 /* enable I2S4_CYA bit to select i2s4b pin */
474 compatible = "nvidia,tegra-audio-t210ref-mobile-foster";
475 nvidia,model = "tegra-snd-t210ref-mobile-es755";
476 nvidia,num-codec-link = <1>;
478 nvidia,audio-routing =
479 "y Headphone", "y OUT",
482 nvidia,xbar = <&tegra_axbar>;
485 link-name = "spdif-dit-1";
486 cpu-dai = <&tegra_i2s2>;
487 codec-dai = <&spdif_dit1>;
488 cpu-dai-name = "I2S2";
489 codec-dai-name = "dit-hifi";
495 bit-format = "s16_le";
504 ad1937z: ad193x.1-0007@07 {
505 compatible = "ad,ad1937";
512 compatible = "nvidia,tegra-audio-t210ref";
513 nvidia,model = "tegra-snd-t210ref";
514 nvidia,num-codec-link = <1>;
515 nvidia,num-amx = <2>;
516 nvidia,num-adx = <2>;
517 nvidia,amx-slot-size = <32 4>;
518 nvidia,adx-slot-size = <32 32>;
519 nvidia,addr-max9485 = <112>;
520 nvidia,amx1-slot-map = <
522 TDM_SLOT_MAP(0, 0, 0)
523 TDM_SLOT_MAP(0, 0, 0)
524 TDM_SLOT_MAP(0, 1, 0)
525 TDM_SLOT_MAP(0, 1, 1)
526 TDM_SLOT_MAP(0, 0, 0)
527 TDM_SLOT_MAP(0, 0, 0)
528 TDM_SLOT_MAP(0, 2, 0)
529 TDM_SLOT_MAP(0, 2, 1)
531 TDM_SLOT_MAP(0, 0, 0)
532 TDM_SLOT_MAP(0, 0, 0)
533 TDM_SLOT_MAP(1, 1, 0)
534 TDM_SLOT_MAP(1, 1, 1)
535 TDM_SLOT_MAP(0, 0, 0)
536 TDM_SLOT_MAP(0, 0, 0)
537 TDM_SLOT_MAP(1, 2, 0)
538 TDM_SLOT_MAP(1, 2, 1)
540 TDM_SLOT_MAP(0, 0, 0)
541 TDM_SLOT_MAP(0, 0, 0)
542 TDM_SLOT_MAP(2, 1, 0)
543 TDM_SLOT_MAP(2, 1, 1)
544 TDM_SLOT_MAP(0, 0, 0)
545 TDM_SLOT_MAP(0, 0, 0)
546 TDM_SLOT_MAP(2, 2, 0)
547 TDM_SLOT_MAP(2, 2, 1)
549 TDM_SLOT_MAP(0, 0, 0)
550 TDM_SLOT_MAP(0, 0, 0)
551 TDM_SLOT_MAP(3, 1, 0)
552 TDM_SLOT_MAP(3, 1, 1)
553 TDM_SLOT_MAP(0, 0, 0)
554 TDM_SLOT_MAP(0, 0, 0)
555 TDM_SLOT_MAP(3, 2, 0)
556 TDM_SLOT_MAP(3, 2, 1)>;
557 nvidia,amx2-slot-map = <
558 TDM_SLOT_MAP(0, 1, 0)
559 TDM_SLOT_MAP(0, 1, 1)
560 TDM_SLOT_MAP(1, 1, 0)
561 TDM_SLOT_MAP(1, 1, 1)>;
562 nvidia,adx-slot-map = <
564 TDM_SLOT_MAP(0, 0, 0)
565 TDM_SLOT_MAP(0, 0, 0)
566 TDM_SLOT_MAP(0, 1, 0)
567 TDM_SLOT_MAP(0, 1, 1)
568 TDM_SLOT_MAP(0, 0, 0)
569 TDM_SLOT_MAP(0, 0, 0)
570 TDM_SLOT_MAP(0, 2, 0)
571 TDM_SLOT_MAP(0, 2, 1)
573 TDM_SLOT_MAP(0, 0, 0)
574 TDM_SLOT_MAP(0, 0, 0)
575 TDM_SLOT_MAP(1, 1, 0)
576 TDM_SLOT_MAP(1, 1, 1)
577 TDM_SLOT_MAP(0, 0, 0)
578 TDM_SLOT_MAP(0, 0, 0)
579 TDM_SLOT_MAP(1, 2, 0)
580 TDM_SLOT_MAP(1, 2, 1)
582 TDM_SLOT_MAP(0, 0, 0)
583 TDM_SLOT_MAP(0, 0, 0)
584 TDM_SLOT_MAP(2, 1, 0)
585 TDM_SLOT_MAP(2, 1, 1)
586 TDM_SLOT_MAP(0, 0, 0)
587 TDM_SLOT_MAP(0, 0, 0)
588 TDM_SLOT_MAP(2, 2, 0)
589 TDM_SLOT_MAP(2, 2, 1)
591 TDM_SLOT_MAP(0, 0, 0)
592 TDM_SLOT_MAP(0, 0, 0)
593 TDM_SLOT_MAP(3, 1, 0)
594 TDM_SLOT_MAP(3, 1, 1)
595 TDM_SLOT_MAP(0, 0, 0)
596 TDM_SLOT_MAP(0, 0, 0)
597 TDM_SLOT_MAP(3, 2, 0)
598 TDM_SLOT_MAP(3, 2, 1)>;
600 nvidia,audio-routing =
601 "Headphone-z", "z DAC1OUT",
602 "Headphone-z", "z DAC2OUT",
603 "Headphone-z", "z DAC3OUT",
604 "Headphone-z", "z DAC4OUT",
605 "z ADC1IN", "LineIn-z";
607 nvidia,xbar = <&tegra_axbar>;
610 link-name = "ad-playback-z";
611 cpu-dai = <&tegra_i2s4>;
612 codec-dai = <&ad1937z>;
613 cpu-dai-name = "I2S4";
614 codec-dai-name = "ad193x-hifi";
620 bitclock-noninversion;
622 bit-format = "s32_le";
634 plugin-name = "reverb";
635 firmware-name = "libnvreverbfx.elf";
636 widget-name = "REVERB";
637 param-type = <2>; /* SNDRV_CTL_ELEM_TYPE_INTEGER */
640 plugin-name = "wire";
641 firmware-name = "libnvwirefx.elf";
642 widget-name = "WIRE";
646 firmware-name = "libnvaecfx.elf";
648 param-type = <2>; /* SNDRV_CTL_ELEM_TYPE_INTEGER */
658 xusb_pad_ctl: xusb_padctl {
659 nvidia,ss_portmap = <0x0277>;
660 nvidia,lane_owner = <0x43FF>; /* Use 0xF to disable lane assign */
661 nvidia,otg_portmap = <0x0100>;
662 /*nvidia,lane-map = <0x12>;*/
663 /*nvidia,enable-sata-port;*/
668 /* nvidia,uses_external_pmic;
669 /* nvidia,gpio_controls_muxed_ss_lanes; */
670 nvidia,gpio_ss1_sata = <0>;
671 nvidia,ulpicap = <0>; /* No ulpi support. can we remove */
672 nvidia,portmap = <0x0E0C>;
673 nvidia,common_padctl = <&xusb_pad_ctl>;
678 nvidia,common_padctl = <&xusb_pad_ctl>;
679 nvidia,portmap = <0x0108>;
682 dt-override-status-odm-data = <0x01000000 0x01000000>;
686 nvidia,common_padctl = <&xusb_pad_ctl>;
689 dt-override-status-odm-data = <0x01000000 0x01000000>;
697 compatible = "pwm-leds";
699 label = "led_lightbar";
700 pwms = <&tegra_pwm 0 10000000>;
701 gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
702 max-brightness = <255>;
703 default-brightness = <255>;
704 linux,default-trigger = "default-on";
710 nvidia,edp_limit = <25000>;
715 nvidia,edp_limit = <25000>;
718 sysedp_reactive_capping@3 {
719 compatible = "nvidia,tegra124-sysedp_reactive_capping";
720 nvidia,max_capping_mw = <15000>;
721 nvidia,step_alarm_mw = <1000>;
722 nvidia,step_relax_mw = <500>;
723 nvidia,relax_ms = <250>;
724 interrupt-parent = <&soctherm>;
725 interrupts = <3 0x2002>;
727 nvidia,name = "batmon_oc3";
732 compatible = "nvidia,tegra124-sysedp";
734 nvidia,min_budget = <0>;
735 nvidia,initial_budget = <40000>;
738 sysedp-dynamic-capping {
739 compatible = "nvidia,tegra124-sysedp-dynamic-capping";
740 nvidia,throttle_depth = <75>;
741 nvidia,cap_method = <1>;