1 // SPDX-License-Identifier: GPL-2.0
2 #include "tegra20.dtsi"
5 model = "Toradex Colibri T20 256/512 MB";
6 compatible = "toradex,colibri_t20-512", "nvidia,tegra20";
9 rtc0 = "/i2c@7000d000/tps6586x@34";
10 rtc1 = "/rtc@7000e000";
15 * Set memory to 256 MB to be safe as this could be used on
16 * 256 or 512 MB module. It is expected from bootloader
17 * to fix this up for 512 MB version.
19 reg = <0x00000000 0x10000000>;
24 vdd-supply = <&hdmi_vdd_reg>;
25 pll-supply = <&hdmi_pll_reg>;
27 nvidia,ddc-i2c-bus = <&i2c_ddc>;
28 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
34 pinctrl-names = "default";
35 pinctrl-0 = <&state_default>;
37 state_default: pinmux {
39 nvidia,pins = "cdev1";
40 nvidia,function = "plla_out";
41 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
42 nvidia,tristate = <TEGRA_PIN_DISABLE>;
46 nvidia,function = "crt";
47 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
48 nvidia,tristate = <TEGRA_PIN_ENABLE>;
52 nvidia,function = "dap3";
53 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
54 nvidia,tristate = <TEGRA_PIN_DISABLE>;
57 nvidia,pins = "ld0", "ld1", "ld2", "ld3",
58 "ld4", "ld5", "ld6", "ld7", "ld8",
59 "ld9", "ld10", "ld11", "ld12", "ld13",
60 "ld14", "ld15", "ld16", "ld17",
61 "lhs", "lpw0", "lpw2", "lsc0",
62 "lsc1", "lsck", "lsda", "lspi", "lvs";
63 nvidia,function = "displaya";
64 nvidia,tristate = <TEGRA_PIN_ENABLE>;
68 nvidia,function = "rsvd1";
69 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
70 nvidia,tristate = <TEGRA_PIN_DISABLE>;
73 nvidia,pins = "ata", "atc", "atd", "ate",
74 "dap1", "dap2", "dap4", "gpu", "irrx",
75 "irtx", "spia", "spib", "spic";
76 nvidia,function = "gmi";
77 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
78 nvidia,tristate = <TEGRA_PIN_DISABLE>;
82 nvidia,function = "rsvd4";
83 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
84 nvidia,tristate = <TEGRA_PIN_DISABLE>;
88 nvidia,function = "rsvd2";
89 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
90 nvidia,tristate = <TEGRA_PIN_DISABLE>;
93 nvidia,pins = "hdint";
94 nvidia,function = "hdmi";
95 nvidia,tristate = <TEGRA_PIN_ENABLE>;
99 nvidia,function = "i2c1";
100 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
101 nvidia,tristate = <TEGRA_PIN_ENABLE>;
105 nvidia,function = "i2c3";
106 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
107 nvidia,tristate = <TEGRA_PIN_ENABLE>;
111 nvidia,function = "i2c2";
112 nvidia,pull = <TEGRA_PIN_PULL_UP>;
113 nvidia,tristate = <TEGRA_PIN_ENABLE>;
116 nvidia,pins = "i2cp";
117 nvidia,function = "i2cp";
118 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
119 nvidia,tristate = <TEGRA_PIN_DISABLE>;
123 nvidia,function = "irda";
124 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
125 nvidia,tristate = <TEGRA_PIN_ENABLE>;
128 nvidia,pins = "kbca", "kbcc", "kbcd",
130 nvidia,function = "nand";
131 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
132 nvidia,tristate = <TEGRA_PIN_DISABLE>;
136 nvidia,function = "owr";
137 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
138 nvidia,tristate = <TEGRA_PIN_ENABLE>;
142 nvidia,function = "pwr_on";
143 nvidia,tristate = <TEGRA_PIN_DISABLE>;
146 nvidia,pins = "sdb", "sdc", "sdd";
147 nvidia,function = "pwm";
148 nvidia,tristate = <TEGRA_PIN_ENABLE>;
151 nvidia,pins = "atb", "gma", "gme";
152 nvidia,function = "sdio4";
153 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
154 nvidia,tristate = <TEGRA_PIN_ENABLE>;
157 nvidia,pins = "spid", "spie", "spif";
158 nvidia,function = "spi1";
159 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
160 nvidia,tristate = <TEGRA_PIN_ENABLE>;
163 nvidia,pins = "slxa", "slxc", "slxd", "slxk";
164 nvidia,function = "spi4";
165 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
166 nvidia,tristate = <TEGRA_PIN_ENABLE>;
169 nvidia,pins = "sdio1";
170 nvidia,function = "uarta";
171 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
172 nvidia,tristate = <TEGRA_PIN_ENABLE>;
176 nvidia,function = "uartd";
177 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
178 nvidia,tristate = <TEGRA_PIN_ENABLE>;
181 nvidia,pins = "uaa", "uab", "uda";
182 nvidia,function = "ulpi";
183 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
184 nvidia,tristate = <TEGRA_PIN_DISABLE>;
187 nvidia,pins = "cdev2";
188 nvidia,function = "pllp_out4";
189 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
190 nvidia,tristate = <TEGRA_PIN_DISABLE>;
193 nvidia,pins = "spig", "spih";
194 nvidia,function = "spi2_alt";
195 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
196 nvidia,tristate = <TEGRA_PIN_DISABLE>;
199 nvidia,pins = "dta", "dtb", "dtc", "dtd";
200 nvidia,function = "vi";
201 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
202 nvidia,tristate = <TEGRA_PIN_ENABLE>;
205 nvidia,pins = "csus";
206 nvidia,function = "vi_sensor_clk";
207 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
208 nvidia,tristate = <TEGRA_PIN_ENABLE>;
213 ac97: ac97@70002000 {
215 nvidia,codec-reset-gpio = <&gpio TEGRA_GPIO(V, 0)
217 nvidia,codec-sync-gpio = <&gpio TEGRA_GPIO(P, 0)
221 nand-controller@70008000 {
226 #address-cells = <1>;
228 nand-bus-width = <8>;
230 nand-ecc-algo = "bch";
233 wp-gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>;
238 * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier
242 clock-frequency = <400000>;
245 /* DDC_SCL/SDA on X3 pin 15/16 (e.g. display EDID) */
246 i2c_ddc: i2c@7000c400 {
247 clock-frequency = <10000>;
250 /* GEN2_I2C: unused */
252 /* CAM/GEN3_I2C: used as EXT_IO1/2 GPIOs on SODIMM pin 133/127 */
254 /* PWR_I2C: power I2C to PMIC and temperature sensor (On-module) */
257 clock-frequency = <100000>;
260 compatible = "ti,tps6586x";
262 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
264 ti,system-power-controller;
269 sys-supply = <&vdd_3v3_reg>;
270 vin-sm0-supply = <&sys_reg>;
271 vin-sm1-supply = <&sys_reg>;
272 vin-sm2-supply = <&sys_reg>;
273 vinldo01-supply = <&sm2_reg>;
274 vinldo23-supply = <&vdd_3v3_reg>;
275 vinldo4-supply = <&vdd_3v3_reg>;
276 vinldo678-supply = <&vdd_3v3_reg>;
277 vinldo9-supply = <&vdd_3v3_reg>;
280 #address-cells = <1>;
283 sys_reg: regulator@0 {
285 regulator-compatible = "sys";
286 regulator-name = "vdd_sys";
292 regulator-compatible = "sm0";
293 regulator-name = "vdd_sm0,vdd_core";
294 regulator-min-microvolt = <1200000>;
295 regulator-max-microvolt = <1200000>;
301 regulator-compatible = "sm1";
302 regulator-name = "vdd_sm1,vdd_cpu";
303 regulator-min-microvolt = <1000000>;
304 regulator-max-microvolt = <1000000>;
308 sm2_reg: regulator@3 {
310 regulator-compatible = "sm2";
311 regulator-name = "vdd_sm2,vin_ldo*";
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
317 /* LDO0 is not connected to anything */
321 regulator-compatible = "ldo1";
322 regulator-name = "vdd_ldo1,avdd_pll*";
323 regulator-min-microvolt = <1100000>;
324 regulator-max-microvolt = <1100000>;
330 regulator-compatible = "ldo2";
331 regulator-name = "vdd_ldo2,vdd_rtc";
332 regulator-min-microvolt = <1200000>;
333 regulator-max-microvolt = <1200000>;
336 /* LDO3 is not connected to anything */
340 regulator-compatible = "ldo4";
341 regulator-name = "vdd_ldo4,avdd_osc,vddio_sys";
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>;
347 ldo5_reg: regulator@9 {
349 regulator-compatible = "ldo5";
350 regulator-name = "vdd_ldo5,vdd_fuse";
351 regulator-min-microvolt = <3300000>;
352 regulator-max-microvolt = <3300000>;
358 regulator-compatible = "ldo6";
359 regulator-name = "vdd_ldo6,avdd_vdac,vddio_vi,vddio_cam";
360 regulator-min-microvolt = <2850000>;
361 regulator-max-microvolt = <2850000>;
364 hdmi_vdd_reg: regulator@11 {
366 regulator-compatible = "ldo7";
367 regulator-name = "vdd_ldo7,avdd_hdmi";
368 regulator-min-microvolt = <3300000>;
369 regulator-max-microvolt = <3300000>;
372 hdmi_pll_reg: regulator@12 {
374 regulator-compatible = "ldo8";
375 regulator-name = "vdd_ldo8,avdd_hdmi_pll";
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <1800000>;
382 regulator-compatible = "ldo9";
383 regulator-name = "vdd_ldo9,avdd_2v85,vdd_ddr_rx";
384 regulator-min-microvolt = <2850000>;
385 regulator-max-microvolt = <2850000>;
391 regulator-compatible = "ldo_rtc";
392 regulator-name = "vdd_rtc_out,vdd_cell";
393 regulator-min-microvolt = <3300000>;
394 regulator-max-microvolt = <3300000>;
400 temperature-sensor@4c {
401 compatible = "national,lm95245";
407 nvidia,suspend-mode = <1>;
408 nvidia,cpu-pwr-good-time = <5000>;
409 nvidia,cpu-pwr-off-time = <5000>;
410 nvidia,core-pwr-good-time = <3845 3845>;
411 nvidia,core-pwr-off-time = <3875>;
412 nvidia,sys-clock-req-active-high;
415 memory-controller@7000f400 {
418 compatible = "nvidia,tegra20-emc-table";
419 clock-frequency = <83250>;
420 nvidia,emc-registers = <0x00000005 0x00000011
421 0x00000004 0x00000002 0x00000004 0x00000004
422 0x00000001 0x0000000a 0x00000002 0x00000002
423 0x00000001 0x00000001 0x00000003 0x00000004
424 0x00000003 0x00000009 0x0000000c 0x0000025f
425 0x00000000 0x00000003 0x00000003 0x00000002
426 0x00000002 0x00000001 0x00000008 0x000000c8
427 0x00000003 0x00000005 0x00000003 0x0000000c
428 0x00000002 0x00000000 0x00000000 0x00000002
429 0x00000000 0x00000000 0x00000083 0x00520006
430 0x00000010 0x00000008 0x00000000 0x00000000
431 0x00000000 0x00000000 0x00000000 0x00000000>;
435 compatible = "nvidia,tegra20-emc-table";
436 clock-frequency = <133200>;
437 nvidia,emc-registers = <0x00000008 0x00000019
438 0x00000006 0x00000002 0x00000004 0x00000004
439 0x00000001 0x0000000a 0x00000002 0x00000002
440 0x00000002 0x00000001 0x00000003 0x00000004
441 0x00000003 0x00000009 0x0000000c 0x0000039f
442 0x00000000 0x00000003 0x00000003 0x00000002
443 0x00000002 0x00000001 0x00000008 0x000000c8
444 0x00000003 0x00000007 0x00000003 0x0000000c
445 0x00000002 0x00000000 0x00000000 0x00000002
446 0x00000000 0x00000000 0x00000083 0x00510006
447 0x00000010 0x00000008 0x00000000 0x00000000
448 0x00000000 0x00000000 0x00000000 0x00000000>;
452 compatible = "nvidia,tegra20-emc-table";
453 clock-frequency = <166500>;
454 nvidia,emc-registers = <0x0000000a 0x00000021
455 0x00000008 0x00000003 0x00000004 0x00000004
456 0x00000002 0x0000000a 0x00000003 0x00000003
457 0x00000002 0x00000001 0x00000003 0x00000004
458 0x00000003 0x00000009 0x0000000c 0x000004df
459 0x00000000 0x00000003 0x00000003 0x00000003
460 0x00000003 0x00000001 0x00000009 0x000000c8
461 0x00000003 0x00000009 0x00000004 0x0000000c
462 0x00000002 0x00000000 0x00000000 0x00000002
463 0x00000000 0x00000000 0x00000083 0x004f0006
464 0x00000010 0x00000008 0x00000000 0x00000000
465 0x00000000 0x00000000 0x00000000 0x00000000>;
469 compatible = "nvidia,tegra20-emc-table";
470 clock-frequency = <333000>;
471 nvidia,emc-registers = <0x00000014 0x00000041
472 0x0000000f 0x00000005 0x00000004 0x00000005
473 0x00000003 0x0000000a 0x00000005 0x00000005
474 0x00000004 0x00000001 0x00000003 0x00000004
475 0x00000003 0x00000009 0x0000000c 0x000009ff
476 0x00000000 0x00000003 0x00000003 0x00000005
477 0x00000005 0x00000001 0x0000000e 0x000000c8
478 0x00000003 0x00000011 0x00000006 0x0000000c
479 0x00000002 0x00000000 0x00000000 0x00000002
480 0x00000000 0x00000000 0x00000083 0x00380006
481 0x00000010 0x00000008 0x00000000 0x00000000
482 0x00000000 0x00000000 0x00000000 0x00000000>;
488 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
494 nvidia,phy-reset-gpio = <&gpio TEGRA_GPIO(V, 1)
499 cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
503 compatible = "simple-bus";
504 #address-cells = <1>;
508 compatible = "fixed-clock";
511 clock-frequency = <32768>;
516 compatible = "simple-bus";
517 #address-cells = <1>;
520 vdd_3v3_reg: regulator@100 {
521 compatible = "regulator-fixed";
523 regulator-name = "vdd_3v3";
524 regulator-min-microvolt = <3300000>;
525 regulator-max-microvolt = <3300000>;
530 compatible = "regulator-fixed";
532 regulator-name = "internal_usb";
533 regulator-min-microvolt = <5000000>;
534 regulator-max-microvolt = <5000000>;
538 gpio = <&gpio TEGRA_GPIO(BB, 1) GPIO_ACTIVE_HIGH>;
543 compatible = "nvidia,tegra-audio-wm9712-colibri_t20",
544 "nvidia,tegra-audio-wm9712";
545 nvidia,model = "Colibri T20 AC97 Audio";
547 nvidia,audio-routing =
548 "Headphone", "HPOUTL",
549 "Headphone", "HPOUTR",
554 nvidia,ac97-controller = <&ac97>;
556 clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
557 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
558 <&tegra_car TEGRA20_CLK_CDEV1>;
559 clock-names = "pll_a", "pll_a_out0", "mclk";