tegra20-whistler.dts 12.3 KB
Newer Older
1 2 3 4 5
/dts-v1/;

/include/ "tegra20.dtsi"

/ {
6
	model = "NVIDIA Tegra20 Whistler evaluation board";
7 8 9 10 11 12
	compatible = "nvidia,whistler", "nvidia,tegra20";

	memory {
		reg = <0x00000000 0x20000000>;
	};

13 14 15 16 17 18 19 20 21 22 23 24
	host1x {
		hdmi {
			status = "okay";

			vdd-supply = <&hdmi_vdd_reg>;
			pll-supply = <&hdmi_pll_reg>;

			nvidia,ddc-i2c-bus = <&hdmi_ddc>;
			nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */
		};
	};

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
	pinmux {
		pinctrl-names = "default";
		pinctrl-0 = <&state_default>;

		state_default: pinmux {
			ata {
				nvidia,pins = "ata", "atb", "ate", "gma", "gmb",
					"gmc", "gmd", "gpu";
				nvidia,function = "gmi";
			};
			atc {
				nvidia,pins = "atc", "atd";
				nvidia,function = "sdio4";
			};
			cdev1 {
				nvidia,pins = "cdev1";
				nvidia,function = "plla_out";
			};
			cdev2 {
				nvidia,pins = "cdev2";
				nvidia,function = "osc";
			};
			crtp {
				nvidia,pins = "crtp";
				nvidia,function = "crt";
			};
			csus {
				nvidia,pins = "csus";
				nvidia,function = "vi_sensor_clk";
			};
			dap1 {
				nvidia,pins = "dap1";
				nvidia,function = "dap1";
			};
			dap2 {
				nvidia,pins = "dap2";
				nvidia,function = "dap2";
			};
			dap3 {
				nvidia,pins = "dap3";
				nvidia,function = "dap3";
			};
			dap4 {
				nvidia,pins = "dap4";
				nvidia,function = "dap4";
			};
			ddc {
				nvidia,pins = "ddc";
				nvidia,function = "i2c2";
			};
			dta {
				nvidia,pins = "dta", "dtb", "dtc", "dtd";
				nvidia,function = "vi";
			};
			dte {
				nvidia,pins = "dte";
				nvidia,function = "rsvd1";
			};
			dtf {
				nvidia,pins = "dtf";
				nvidia,function = "i2c3";
			};
			gme {
				nvidia,pins = "gme";
				nvidia,function = "dap5";
			};
			gpu7 {
				nvidia,pins = "gpu7";
				nvidia,function = "rtck";
			};
			gpv {
				nvidia,pins = "gpv";
				nvidia,function = "pcie";
			};
			hdint {
				nvidia,pins = "hdint", "pta";
				nvidia,function = "hdmi";
			};
			i2cp {
				nvidia,pins = "i2cp";
				nvidia,function = "i2cp";
			};
			irrx {
				nvidia,pins = "irrx", "irtx";
				nvidia,function = "uartb";
			};
			kbca {
				nvidia,pins = "kbca", "kbcc", "kbce", "kbcf";
				nvidia,function = "kbc";
			};
			kbcb {
				nvidia,pins = "kbcb", "kbcd";
				nvidia,function = "sdio2";
			};
			lcsn {
				nvidia,pins = "lcsn", "lsck", "lsda", "lsdi",
					"spia", "spib", "spic";
				nvidia,function = "spi3";
			};
			ld0 {
				nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4",
					"ld5", "ld6", "ld7", "ld8", "ld9",
					"ld10", "ld11", "ld12", "ld13", "ld14",
					"ld15", "ld16", "ld17", "ldc", "ldi",
					"lhp0", "lhp1", "lhp2", "lhs", "lm0",
					"lm1", "lpp", "lpw0", "lpw1", "lpw2",
					"lsc0", "lsc1", "lspi", "lvp0", "lvp1",
					"lvs";
				nvidia,function = "displaya";
			};
			owc {
				nvidia,pins = "owc", "uac";
				nvidia,function = "owr";
			};
			pmc {
				nvidia,pins = "pmc";
				nvidia,function = "pwr_on";
			};
			rm {
				nvidia,pins = "rm";
				nvidia,function = "i2c1";
			};
			sdb {
				nvidia,pins = "sdb", "sdc", "sdd", "slxa",
					"slxc", "slxd", "slxk";
				nvidia,function = "sdio3";
			};
			sdio1 {
				nvidia,pins = "sdio1";
				nvidia,function = "sdio1";
			};
			spdi {
				nvidia,pins = "spdi", "spdo";
				nvidia,function = "rsvd2";
			};
			spid {
				nvidia,pins = "spid", "spie", "spig", "spih";
				nvidia,function = "spi2_alt";
			};
			spif {
				nvidia,pins = "spif";
				nvidia,function = "spi2";
			};
			uaa {
				nvidia,pins = "uaa", "uab";
				nvidia,function = "uarta";
			};
			uad {
				nvidia,pins = "uad";
				nvidia,function = "irda";
			};
			uca {
				nvidia,pins = "uca", "ucb";
				nvidia,function = "uartc";
			};
			uda {
				nvidia,pins = "uda";
				nvidia,function = "spi1";
			};
			conf_ata {
				nvidia,pins = "ata", "atb", "atc", "ddc", "gma",
					"gmb", "gmc", "gmd", "irrx", "irtx",
					"kbca", "kbcb", "kbcc", "kbcd", "kbce",
					"kbcf", "sdc", "sdd", "spie", "spig",
					"spih", "uaa", "uab", "uad", "uca",
					"ucb";
				nvidia,pull = <2>;
				nvidia,tristate = <0>;
			};
			conf_atd {
				nvidia,pins = "atd", "ate", "cdev1", "csus",
					"dap1", "dap2", "dap3", "dap4", "dte",
					"dtf", "gpu", "gpu7", "gpv", "i2cp",
					"rm", "sdio1", "slxa", "slxc", "slxd",
					"slxk", "spdi", "spdo", "uac", "uda";
				nvidia,pull = <0>;
				nvidia,tristate = <0>;
			};
			conf_cdev2 {
				nvidia,pins = "cdev2", "spia", "spib";
				nvidia,pull = <1>;
				nvidia,tristate = <1>;
			};
			conf_ck32 {
				nvidia,pins = "ck32", "ddrc", "lc", "pmca",
					"pmcb", "pmcc", "pmcd", "xm2c",
					"xm2d";
				nvidia,pull = <0>;
			};
			conf_crtp {
				nvidia,pins = "crtp";
				nvidia,pull = <0>;
				nvidia,tristate = <1>;
			};
			conf_dta {
				nvidia,pins = "dta", "dtb", "dtc", "dtd",
					"spid", "spif";
				nvidia,pull = <1>;
				nvidia,tristate = <0>;
			};
			conf_gme {
				nvidia,pins = "gme", "owc", "pta", "spic";
				nvidia,pull = <2>;
				nvidia,tristate = <1>;
			};
			conf_ld17_0 {
				nvidia,pins = "ld17_0", "ld19_18", "ld21_20",
					"ld23_22";
				nvidia,pull = <1>;
			};
			conf_ls {
				nvidia,pins = "ls", "pmce";
				nvidia,pull = <2>;
			};
			drive_dap1 {
				nvidia,pins = "drive_dap1";
				nvidia,high-speed-mode = <0>;
				nvidia,schmitt = <1>;
				nvidia,low-power-mode = <0>;
				nvidia,pull-down-strength = <0>;
				nvidia,pull-up-strength = <0>;
				nvidia,slew-rate-rising = <0>;
				nvidia,slew-rate-falling = <0>;
			};
		};
	};

	i2s@70002800 {
		status = "okay";
	};

	serial@70006000 {
		status = "okay";
		clock-frequency = <216000000>;
	};

261 262 263 264 265
	hdmi_ddc: i2c@7000c400 {
		status = "okay";
		clock-frequency = <100000>;
	};

266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
	i2c@7000d000 {
		status = "okay";
		clock-frequency = <100000>;

		codec: codec@1a {
			compatible = "wlf,wm8753";
			reg = <0x1a>;
		};

		tca6416: gpio@20 {
			compatible = "ti,tca6416";
			reg = <0x20>;
			gpio-controller;
			#gpio-cells = <2>;
		};
281 282 283 284 285 286

		max8907@3c {
			compatible = "maxim,max8907";
			reg = <0x3c>;
			interrupts = <0 86 0x4>;

287 288
			maxim,system-power-controller;

289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
			mbatt-supply = <&usb0_vbus_reg>;
			in-v1-supply = <&mbatt_reg>;
			in-v2-supply = <&mbatt_reg>;
			in-v3-supply = <&mbatt_reg>;
			in1-supply = <&mbatt_reg>;
			in2-supply = <&nvvdd_sv3_reg>;
			in3-supply = <&mbatt_reg>;
			in4-supply = <&mbatt_reg>;
			in5-supply = <&mbatt_reg>;
			in6-supply = <&mbatt_reg>;
			in7-supply = <&mbatt_reg>;
			in8-supply = <&mbatt_reg>;
			in9-supply = <&mbatt_reg>;
			in10-supply = <&mbatt_reg>;
			in11-supply = <&mbatt_reg>;
			in12-supply = <&mbatt_reg>;
			in13-supply = <&mbatt_reg>;
			in14-supply = <&mbatt_reg>;
			in15-supply = <&mbatt_reg>;
			in16-supply = <&mbatt_reg>;
			in17-supply = <&nvvdd_sv3_reg>;
			in18-supply = <&nvvdd_sv3_reg>;
			in19-supply = <&mbatt_reg>;
			in20-supply = <&mbatt_reg>;

			regulators {
315
				mbatt_reg: mbatt {
316 317 318 319
					regulator-name = "vbat_pmu";
					regulator-always-on;
				};

320
				sd1 {
321 322 323 324 325 326
					regulator-name = "nvvdd_sv1,vdd_cpu_pmu";
					regulator-min-microvolt = <1000000>;
					regulator-max-microvolt = <1000000>;
					regulator-always-on;
				};

327
				sd2 {
328 329 330 331 332 333
					regulator-name = "nvvdd_sv2,vdd_core";
					regulator-min-microvolt = <1200000>;
					regulator-max-microvolt = <1200000>;
					regulator-always-on;
				};

334
				nvvdd_sv3_reg: sd3 {
335 336 337 338 339 340
					regulator-name = "nvvdd_sv3";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
				};

341
				ldo1 {
342 343 344 345 346 347
					regulator-name = "nvvdd_ldo1,vddio_rx_ddr,vcore_acc";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
					regulator-always-on;
				};

348
				ldo2 {
349 350 351 352 353 354
					regulator-name = "nvvdd_ldo2,avdd_pll*";
					regulator-min-microvolt = <1100000>;
					regulator-max-microvolt = <1100000>;
					regulator-always-on;
				};

355
				ldo3 {
356 357 358 359 360 361
					regulator-name = "nvvdd_ldo3,vcom_1v8b";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
				};

362
				ldo4 {
363 364 365 366 367 368
					regulator-name = "nvvdd_ldo4,avdd_usb*";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
					regulator-always-on;
				};

369
				ldo5 {
370 371 372 373 374 375
					regulator-name = "nvvdd_ldo5,vcore_mmc,avdd_lcd1,vddio_1wire";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
					regulator-always-on;
				};

376
				hdmi_pll_reg: ldo6 {
377 378 379 380 381
					regulator-name = "nvvdd_ldo6,avdd_hdmi_pll";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
				};

382
				ldo7 {
383 384 385 386 387 388
					regulator-name = "nvvdd_ldo7,avddio_audio";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
					regulator-always-on;
				};

389
				ldo8 {
390 391 392 393 394
					regulator-name = "nvvdd_ldo8,vcom_3v0,vcore_cmps";
					regulator-min-microvolt = <3000000>;
					regulator-max-microvolt = <3000000>;
				};

395
				ldo9 {
396 397 398 399 400
					regulator-name = "nvvdd_ldo9,avdd_cam*";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
				};

401
				ldo10 {
402 403 404 405 406 407
					regulator-name = "nvvdd_ldo10,avdd_usb_ic_3v0";
					regulator-min-microvolt = <3000000>;
					regulator-max-microvolt = <3000000>;
					regulator-always-on;
				};

408
				hdmi_vdd_reg: ldo11 {
409 410 411 412 413
					regulator-name = "nvvdd_ldo11,vddio_pex_clk,vcom_33,avdd_hdmi";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
				};

414
				ldo12 {
415 416 417 418 419 420
					regulator-name = "nvvdd_ldo12,vddio_sdio";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
					regulator-always-on;
				};

421
				ldo13 {
422 423 424 425 426
					regulator-name = "nvvdd_ldo13,vcore_phtn,vdd_af";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
				};

427
				ldo14 {
428 429 430 431 432
					regulator-name = "nvvdd_ldo14,avdd_vdac";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
				};

433
				ldo15 {
434 435 436 437 438
					regulator-name = "nvvdd_ldo15,vcore_temp,vddio_hdcp";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
				};

439
				ldo16 {
440 441 442 443 444
					regulator-name = "nvvdd_ldo16,vdd_dbrtr";
					regulator-min-microvolt = <1300000>;
					regulator-max-microvolt = <1300000>;
				};

445
				ldo17 {
446 447 448 449 450
					regulator-name = "nvvdd_ldo17,vddio_mipi";
					regulator-min-microvolt = <1200000>;
					regulator-max-microvolt = <1200000>;
				};

451
				ldo18 {
452 453 454 455 456
					regulator-name = "nvvdd_ldo18,vddio_vi,vcore_cam*";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
				};

457
				ldo19 {
458 459 460 461 462
					regulator-name = "nvvdd_ldo19,avdd_lcd2,vddio_lx";
					regulator-min-microvolt = <2800000>;
					regulator-max-microvolt = <2800000>;
				};

463
				ldo20 {
464 465 466 467 468 469
					regulator-name = "nvvdd_ldo20,vddio_ddr_1v2,vddio_hsic,vcom_1v2";
					regulator-min-microvolt = <1200000>;
					regulator-max-microvolt = <1200000>;
					regulator-always-on;
				};

470
				out5v {
471 472 473
					regulator-name = "usb0_vbus_reg";
				};

474
				out33v {
475 476 477
					regulator-name = "pmu_out3v3";
				};

478
				bbat {
479 480 481 482 483 484
					regulator-name = "pmu_bbat";
					regulator-min-microvolt = <2400000>;
					regulator-max-microvolt = <2400000>;
					regulator-always-on;
				};

485
				sdby {
486 487 488 489
					regulator-name = "vdd_aon";
					regulator-always-on;
				};

490
				vrtc {
491 492 493 494 495 496 497 498 499
					regulator-name = "vrtc,pmu_vccadc";
					regulator-always-on;
				};
			};
		};
	};

	pmc {
		nvidia,invert-interrupt;
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
	};

	usb@c5000000 {
		status = "okay";
		nvidia,vbus-gpio = <&tca6416 0 0>; /* GPIO_PMU0 */
	};

	usb@c5008000 {
		status = "okay";
		nvidia,vbus-gpio = <&tca6416 1 0>; /* GPIO_PMU1 */
	};

	sdhci@c8000400 {
		status = "okay";
		wp-gpios = <&gpio 173 0>; /* gpio PV5 */
		bus-width = <8>;
	};

	sdhci@c8000600 {
		status = "okay";
		bus-width = <8>;
	};

523 524 525 526 527 528 529 530 531 532 533 534
	kbc {
		status = "okay";
		nvidia,debounce-delay-ms = <20>;
		nvidia,repeat-delay-ms = <160>;
		nvidia,kbc-row-pins = <0 1 2>;
		nvidia,kbc-col-pins = <16 17>;
		linux,keymap = <0x00000074	/* KEY_POWER */
				0x01000066	/* KEY_HOME */
				0x0101009E	/* KEY_BACK */
				0x0201008B>;	/* KEY_MENU */
	};

535 536 537 538 539 540 541 542 543 544 545 546 547 548 549
	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		usb0_vbus_reg: regulator {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "usb0_vbus";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			regulator-always-on;
		};
	};

550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
	sound {
		compatible = "nvidia,tegra-audio-wm8753-whistler",
			     "nvidia,tegra-audio-wm8753";
		nvidia,model = "NVIDIA Tegra Whistler";

		nvidia,audio-routing =
			"Headphone Jack", "LOUT1",
			"Headphone Jack", "ROUT1",
			"MIC2", "Mic Jack",
			"MIC2N", "Mic Jack";

		nvidia,i2s-controller = <&tegra_i2s1>;
		nvidia,audio-codec = <&codec>;
	};
};