exynos5422-odroidxu3.dts 17.3 KB
Newer Older
Mauro Ribeiro's avatar
Mauro Ribeiro committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 * SAMSUNG xyref5422 board device tree source
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *             http://www.samsung.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

/dts-v1/;
#include "exynos5422_evt0.dtsi"

/ {
	model = "Hardkernel odroid-xu3 board based on EXYNOS5422";
	compatible = "Hardkernel,odroid-xu3";

	memory {
		reg = <0x40000000 0x80000000>;
	};

	chosen {
24
		bootargs = "console=ttySAC2,115200 vmalloc=512M";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
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
	};

	fixed-rate-clocks {
		oscclk {
			compatible = "samsung,exynos5422-oscclk";
			clock-frequency = <24000000>;
		};
	};

	rtc {
		status = "okay";
	};

	dwmmc0@12200000 {
		status = "okay";
		num-slots = <1>;
		broken-cd;
		bypass-smu;
		fixed_volt;
		only_once_tune;
		extra_tuning;
		supports-highspeed;
		supports-hs200-1-8v-mode;
		supports-ddr200-1-8v-mode;
		enable-cache-control;
		sw_data_timeout;
		fifo-depth = <0x40>;
		card-detect-delay = <200>;
		qos_int_level = <222000>;
		samsung,dw-mshc-ciu-div = <3>;
		samsung,dw-mshc-sdr-timing = <0 4 3>;
		samsung,dw-mshc-ddr-timing = <0 2 3>;
		samsung,dw-mshc-hs200-timing = <0 2 3>;
58
		samsung,dw-mshc-ddr200-timing = <0 2 2>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
59 60 61 62
		vmmc-supply = <&buck10_reg>;
		vqmmc-supply = <&ldo18_reg>;
		clk_pin = "gpc0-0";
		clk_addr = "13410000.pinctrl";
ckkim's avatar
ckkim committed
63
		dw-mshc-hw-reset = <&gpd1 0 0>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
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
		clk_val = <0x3>;
		clk_str_num = <4>;
		num-ref-clks = <8>;
		ciu_clkin = <20812500 41625000 41625000 83250000 166500000 83250000 166500000 333000000>;
		pinctrl-names = "default";
		pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_rdqs &sd0_bus1 &sd0_bus4 &sd0_bus8>;

		slot@0 {
			reg = <0>;
			bus-width = <8>;
		};
	};

	dwmmc2@12220000 {
		status = "okay";
		num-slots = <1>;
		supports-highspeed;
		cd-type = <1>;
		sw_data_timeout;
		fifo-depth = <0x40>;
		card-detect-delay = <200>;
		qos_int_level = <222000>;
		samsung,dw-mshc-ciu-div = <3>;
		samsung,dw-mshc-sdr-timing = <0 4 3>;
		samsung,dw-mshc-ddr-timing = <0 2 3>;
		vmmc-supply = <&ldo19_reg>;
		vqmmc-supply = <&ldo13_reg>;
		clk_pin = "gpc2-0";
		clk_addr = "13410000.pinctrl";
		clk_val = <0x3>;
		clk_str_num = <4>;
		num-ref-clks = <8>;
		ciu_clkin = <20812500 41625000 41625000 83250000 166500000 83250000 166500000 333000000>;
		pinctrl-names = "default";
		pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;

		slot@0 {
			reg = <0>;
			bus-width = <4>;
			disable-wp;
		};

	};

	pinctrl@13400000 {
		pmic_irq: pmic-irq {
			samsung,pins = "gpx0-4";
111
			samsung,pin-function = <0xf>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
			samsung,pin-pud = <3>;
			samsung,pin-drv = <3>;
		};
	};

	pinctrl@13410000 {
		pm_wrsti: pm-wrsti {
			samsung,pins = "gpy3-0";
			samsung,pin-con-pdn = <3>;
		};
	};

	hsi2c@12CC0000 {
		clock-frequency = <100000>;
		status = "disabled";
	};

129
	i2c_1: i2c@12C70000 {
130
		samsung,i2c-max-bus-freq = <400000>;
131 132 133
		status = "okay";
	};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
134 135 136 137 138 139 140 141
	hsi2c@12CA0000 {
		samsung,hs-mode;
		clock-frequency = <400000>;
		status = "okay";

		s2mps11_pmic@66 {
			compatible = "samsung,s2mps11-pmic";
			reg = <0x66>;
142
			interrupts = <4 0 0>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
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
			interrupt-parent = <&gpx0>;
			pinctrl-names = "default";
			pinctrl-0 = <&pmic_irq &pm_wrsti>;
			wtsr_smpl = <1>;

			regulators {
				buck1_reg: BUCK1 {
					regulator-name = "vdd_mif";
					regulator-min-microvolt = <700000>;
					regulator-max-microvolt = <1300000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				buck2_reg: BUCK2 {
					regulator-name = "vdd_eagle";
					regulator-min-microvolt = <800000>;
					regulator-max-microvolt = <1500000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				buck3_reg: BUCK3 {
					regulator-name = "vdd_int";
					regulator-min-microvolt = <800000>;
					regulator-max-microvolt = <1400000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				buck4_reg: BUCK4 {
					regulator-name = "vdd_g3d";
					regulator-min-microvolt = <700000>;
					regulator-max-microvolt = <1400000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				buck6_reg: BUCK6 {
					regulator-name = "vdd_kfc";
					regulator-min-microvolt = <800000>;
					regulator-max-microvolt = <1500000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				buck10_reg: BUCK10 {
200
					regulator-name = "vddf_2v85";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
201 202 203 204 205 206 207 208
					regulator-min-microvolt = <2850000>;
					regulator-max-microvolt = <2850000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

ckkim's avatar
ckkim committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
				ldo4_reg: LDO4 {
					regulator-name = "vdd_adc";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				ldo5_reg: LDO5 {
					regulator-name = "vdd_pll";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
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
				ldo6_reg: LDO6 {
					regulator-name = "vdd_ldo6";
					regulator-min-microvolt = <1000000>;
					regulator-max-microvolt = <1000000>;
					regulator-always-on;
					regulator-initial-mode = <1>;
				};

				ldo7_reg: LDO7 {
					regulator-name = "vdd_ldo7";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

				ldo8_reg: LDO8 {
					regulator-name = "vdd_ldo8";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

ckkim's avatar
ckkim committed
255 256
				ldo9_reg: LDO9 {
					regulator-name = "vdd_ldo9";
257 258
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
ckkim's avatar
ckkim committed
259 260 261 262 263
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
264 265 266 267 268 269 270 271 272
				ldo10_reg: LDO10 {
					regulator-name = "vdd_ldo10";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

ckkim's avatar
ckkim committed
273 274 275 276 277 278 279 280 281
				ldo11_reg: LDO11 {
					regulator-name = "vdd_ldo11";
					regulator-min-microvolt = <1000000>;
					regulator-max-microvolt = <1000000>;
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
282 283
				ldo13_reg: LDO13 {
					regulator-name = "vdd_ldo13";
284 285
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <3300000>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
286 287 288 289 290 291 292
					regulator-boot-on;
					regulator-ramp-delay = <12000>;
					regulator-initial-mode = <1>;
				};

				ldo15_reg: LDO15 {
					regulator-name = "vdd_ldo15";
293 294
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
295 296 297 298 299
					regulator-always-on;
					regulator-initial-mode = <1>;
				};

				ldo17_reg: LDO17 {
300
					regulator-name = "vdd_eth";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
301 302
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
ckkim's avatar
ckkim committed
303 304
					regulator-always-on;
					regulator-initial-mode = <1>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
305 306 307 308 309
				};

				ldo18_reg: LDO18 {
					regulator-name = "vdd_ldo18";
					regulator-min-microvolt = <1800000>;
310
					regulator-max-microvolt = <1800000>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
311 312 313 314 315 316 317
					regulator-always-on;
					regulator-boot-on;
					regulator-initial-mode = <1>;
				};

				ldo19_reg: LDO19 {
					regulator-name = "vdd_ldo19";
318
					regulator-min-microvolt = <2850000>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
					regulator-max-microvolt = <2850000>;
					regulator-always-on;
					regulator-initial-mode = <1>;
				};

				ldo23_reg: LDO23 {
					regulator-name = "vdd_mifs";
					regulator-min-microvolt = <800000>;
					regulator-max-microvolt = <1100000>;
					regulator-always-on;
					regulator-initial-mode = <1>;
					regulator-ramp-delay = <12000>;
				};

				ldo26_reg: LDO26 {
					regulator-name = "vdd_ldo26";
					regulator-min-microvolt = <3000000>;
					regulator-max-microvolt = <3000000>;
					regulator-always-on;
					regulator-initial-mode = <1>;
				};

				ldo27_reg: LDO27 {
					regulator-name = "vdd_g3ds";
					regulator-min-microvolt = <800000>;
					regulator-max-microvolt = <1100000>;
					regulator-always-on;
					regulator-initial-mode = <1>;
					regulator-ramp-delay = <12000>;
				};

				ldo28_reg: LDO28 {
					regulator-name = "vdd_ldo28";
ckkim's avatar
ckkim committed
352 353
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
354 355 356 357 358 359 360 361
					regulator-always-on;
					regulator-initial-mode = <1>;
				};
			};
		};
	};

	pinctrl@13400000 {
ckkim's avatar
ckkim committed
362 363 364
		key_pullnone: key-pullnone {
			samsung,pins = "gpx0-3";
			samsung,pin-pud = <0>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
365 366 367 368 369 370 371 372 373
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <100>;
		pinctrl-names = "default";
ckkim's avatar
ckkim committed
374
		pinctrl-0 = <&key_pullnone>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
375 376 377 378

		button@1 {
			label = "gpio-keys: KEY_POWER";
			interrupts = <3 0 0>;
ckkim's avatar
ckkim committed
379
			interrupt-parent = <&gpx0>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
380
			linux,code = <116>;
ckkim's avatar
ckkim committed
381
			gpios = <&gpx0 3 0xf>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
382 383 384 385 386 387 388 389 390 391 392 393 394
			gpio-key,wakeup = <1>;
		};
	};

	hsi2c@12E00000 {
		clock-frequency = <400000>;
		status = "disabled";
	};

	i2c_2: i2c@12C80000 {
		samsung,i2c-max-bus-freq = <400000>;
		status = "okay";

Mauro Ribeiro's avatar
Mauro Ribeiro committed
395 396
		hdmiddc@50 {
			compatible = "samsung,exynos4210-hdmiddc";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
397 398 399 400 401
			reg = <0x50>;
		};
	};

	pinctrl@13400000 {
ckkim's avatar
ckkim committed
402 403 404 405 406
		audio_irq: audio-irq {
			samsung,pins = "gpx3-2";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <0>;
			samsung,pin-drv = <3>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
407
		};
ckkim's avatar
ckkim committed
408
	};
Mauro Ribeiro's avatar
Mauro Ribeiro committed
409

ckkim's avatar
ckkim committed
410 411 412 413 414 415 416 417 418 419 420 421 422 423
	hsi2c@12CB0000 {
		samsung,hs-mode;
		clock-frequency = <400000>;
		status = "okay";
		audio_codec: codec@10 {
			compatible = "maxim,max98090";
			reg = <0x10>;
			odroid,irq-gpio = <&gpx3 2 0xf>;
			pinctrl-names = "default";
			pinctrl-0 = <&audio_irq>;
		};
		};

	pinctrl@13400000 {
Mauro Ribeiro's avatar
Mauro Ribeiro committed
424 425 426 427 428 429 430 431 432 433 434 435
		b_sess0_irq: b-sess0-irq {
			samsung,pins = "gpx3-5";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <0>;
		};

		b_sess1_irq: b-sess1-irq {
			samsung,pins = "gpx3-4";
			samsung,pin-function = <0xf>;
			samsung,pin-pud = <0>;
		};

ckkim's avatar
ckkim committed
436 437
		id2_irq: id2-irq {
			samsung,pins = "gpx1-1";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
438
			samsung,pin-function = <0xf>;
ckkim's avatar
ckkim committed
439
			samsung,pin-pud = <0>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
440
		};
ckkim's avatar
ckkim committed
441
	};
Mauro Ribeiro's avatar
Mauro Ribeiro committed
442

ckkim's avatar
ckkim committed
443 444 445
	pinctrl@13410000 {
		id1_irq: id1-irq {
			samsung,pins = "gpc1-0";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
446
			samsung,pin-function = <0xf>;
ckkim's avatar
ckkim committed
447
			samsung,pin-pud = <3>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
		};
	};

	dwc3_vbus: fixedregulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "VUSB_BOOST_5V";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		gpio = <&gpy6 2 1>;
		enable-active-high;
	};

	usb@12000000 {
		dwc3-vbus-supply = <&dwc3_vbus>;
		samsung,bsess-gpio = <&gpx3 5 0xf>;
		pinctrl-names = "default";
		pinctrl-0 = <&b_sess0_irq>;
		samsung,id-gpio = <&gpc1 0  0xf>;
		pinctrl-names = "default";
		pinctrl-0 = <&id1_irq>;
		status = "okay";

		dwc3 {
			maximum-speed = "super-speed";
			dr_mode = "host";
		};
	};

	usb@12400000 {
		dwc3-vbus-supply = <&dwc3_vbus>;
		samsung,bsess-gpio = <&gpx3 4 0xf>;
		pinctrl-names = "default";
		pinctrl-0 = <&b_sess1_irq>;
		samsung,id-gpio = <&gpx1 1  0xf>;
		pinctrl-names = "default";
		pinctrl-0 = <&id2_irq>;
		status = "okay";

		dwc3 {
			maximum-speed = "super-speed";
ckkim's avatar
ckkim committed
488
			dr_mode = "otg";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
489 490 491
		};
	};

ckkim's avatar
ckkim committed
492 493 494 495 496 497
	usb-switch {
		compatible = "samsung,exynos-usb-switch";
		ehci = <&ehci>;
		ohci = <&ohci>;
	};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
498 499 500 501 502 503 504 505
	usb@12110000 {
		samsung,boost5v-gpio = <&gpy6 4 1>;
	};

	spi_0: spi@12d20000 {
		status = "disabled";
	};

ckkim's avatar
ckkim committed
506 507
	spi_1: spi@12d30000 {
	    status = "okay";
508
        };
ckkim's avatar
ckkim committed
509

Mauro Ribeiro's avatar
Mauro Ribeiro committed
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
	spi_2: spi@12d40000 {
		status = "disabled";
	};

	spi_3: spi@131a0000 {
		#address-cells = <1>;
		#size-cells = <0>;
	};

	spi_4: spi@131b0000 {
		#address-cells = <1>;
		#size-cells = <0>;
	};

	i2s0: i2s@03830000 {
		status = "okay";
	};

	spdif: spdif@12DB0000 {
		status = "okay";
	};

	audio_codec_dummy: dummy-codec {
		compatible = "samsung,dummy-codec";
		status = "okay";
	};

537 538 539 540
    i2s_dummy: dummy-i2s {
         compatible = "samsung,dummy-i2s";
         status = "okay";
    };
Mauro Ribeiro's avatar
Mauro Ribeiro committed
541 542

	sound {
ckkim's avatar
ckkim committed
543 544 545
		compatible = "hardkernel,odroid-max98090";
		clocks = <&clock 6>;		/* fout_epll */
		clock-names = "fout_epll";
Mauro Ribeiro's avatar
Mauro Ribeiro committed
546 547 548 549
		samsung,audio-cpu = <&i2s0		/* primary */
				     &i2s0>;		/* secondary */
		samsung,audio-cpu-spdif = <&spdif>;	/* spdif */
		samsung,audio-codec = <&audio_codec
ckkim's avatar
ckkim committed
550
				       &audio_codec>;
551 552
		samsung,audio-dummy = <&audio_codec_dummy
				       &audio_codec_dummy>;
ckkim's avatar
ckkim committed
553 554 555
		status = "okay";
	};

ckkim's avatar
ckkim committed
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
	pinctrl@14010000 {
		pwm0_out: pwm0-out {
			samsung,pins = "gpb2-0";
			samsung,pin-function = <2>;
			samsung,pin-pud = <0x03>;
		};
	};

	sec_pwm: pwm@12dd0000 {
		status = "okay";
	};

	odroid_fan {
        compatible = "odroid-fan";
		pinctrl-names = "default";
		pinctrl-0 = <&pwm0_out>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
572
	
ckkim's avatar
ckkim committed
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588
		pwm_id = <0>;
		pwm_periode_ns = <20972>;	/* 22kHz */
		pwm_duty = <200>;			/* initial value : 0 to 255 */

		fan_mode = <1>; 			/* 0:manual, 1:auto */

		tmu_level_0 = <57>;
		tmu_level_1 = <63>;
		tmu_level_2 = <68>;

		fan_speed_0 = <1>;
		fan_speed_1 = <51>;
		fan_speed_2 = <71>;
		fan_speed_3 = <91>;
	};

Mauro Ribeiro's avatar
Mauro Ribeiro committed
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
    leds {
        compatible = "gpio-leds";
        /* Blue LED */
        hearbeat {
            label = "blue:heartbeart";    
            gpios = <&gpb2 2 0>;
            default-state = "off";
            linux,default-trigger = "heartbeat";
        };

        /* Green LED */
        eMMC {
            label = "green:activity";
            gpios = <&gpb2 1 0>;
            default-state = "off";
            linux,default-trigger = "mmc0";
        };

        /* Red LED */
        microSD {
            label = "red:activity";
            gpios = <&gpx2 3 0>;
            default-state = "off";
            linux,default-trigger = "mmc1";
        };
    };

    /* i2c0 INA231 Sensors */
    /*
        - include/linux/platform_data/ina231.h
        
        config         = INA231_CONFIG(VSH_CT(eVSH_CT_8244uS)      | \
                                        VBUS_CT(eVBUS_CT_8244uS)   | \
                                        AVG_BIT(eAVG_16)           | \
                                        eSHUNT_BUS_VOLT_CONTINUOUS),
        update_period  = CONVERSION_DELAY(eVSH_CON_8244uS, eVBUS_CON_8244uS, eAVG_CON_16),   // unit = usec
    */
	i2c@12C60000 {
		status = "okay";
        clock-frequency = <400000>;
        ina231@40  {
			compatible = "hardkernel,INA231";
			reg = <0x40>;
    		sensor-name = "sensor_arm";
    		enable = <0>;
    		max_A = <9>;
    		shunt_R_mohm = <10>;
    		config = <0x45FF>;
    		update_period = <263808>;
        };
        ina231@41  {
			compatible = "hardkernel,INA231";
			reg = <0x41>;
    		sensor-name = "sensor_mem";
    		enable = <0>;
    		max_A = <3>;
    		shunt_R_mohm = <10>;
    		config = <0x45FF>;
    		update_period = <263808>;
        };
        ina231@44  {
			compatible = "hardkernel,INA231";
			reg = <0x44>;
    		sensor-name = "sensor_g3d";
    		enable = <0>;
    		max_A = <5>;
    		shunt_R_mohm = <10>;
    		config = <0x45FF>;
    		update_period = <263808>;
        };
        ina231@45  {
			compatible = "hardkernel,INA231";
			reg = <0x45>;
    		sensor-name = "sensor_kfc";
    		enable = <0>;
    		max_A = <2>;
    		shunt_R_mohm = <10>;
    		config = <0x45FF>;
    		update_period = <263808>;
        };
	};
670

Mauro Ribeiro's avatar
Mauro Ribeiro committed
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686
	regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;

		main_dc_reg: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "MAIN_DC";
		};

		reg_hdmi_en: regulator@1 {
			compatible = "regulator-fixed";
			reg = <2>;
			regulator-name = "hdmi-en";
		};
687
	};
Mauro Ribeiro's avatar
Mauro Ribeiro committed
688 689 690 691 692 693

	hdmi@14530000 {
		status = "okay";
		hpd-gpio = <&gpx3 7 0>;
		pinctrl-names = "default";
		pinctrl-0 = <&hdmi_hpd_irq>;
694 695 696
		vdd_osc-supply = <&ldo10_reg>;
		vdd_pll-supply = <&ldo8_reg>;
		vdd-supply = <&ldo8_reg>;
Mauro Ribeiro's avatar
Mauro Ribeiro committed
697
		hdmi-en-supply = <&reg_hdmi_en>;
698 699
	};
	
700
	/* AOC 22" DP Config */
701
	dp-controller@145B0000 {
702
		status = "disabled";
703
		samsung,hpd-gpio = <&gpx0 7 3>; 
704 705 706
        pinctrl-names = "default";
        pinctrl-0 = <&dp_hpd_gpio>;

707 708 709 710 711 712 713 714 715 716 717
		hsync-active-high = <0>;
		vsync-active-high = <0>;
		interlaced = <0>;

		samsung,color-space = <0>;
        samsung,dynamic-range = <0>;
        samsung,ycbcr-coeff = <0>;
        samsung,color-depth = <1>;
        samsung,link-rate = <0x0a>;
        samsung,lane-count = <4>;

718
        display-timings {
719 720 721 722 723 724
            native-mode = <&timing1>;  

            timing1: timing@1 {
                    clock-frequency = <266000000>;
                    hactive = <1920>;
                    vactive = <1080>;
725 726 727 728 729 730
                    hfront-porch = <88>;  
                    hback-porch = <44>;
                    hsync-len = <148>;
                    vback-porch = <4>;
                    vfront-porch = <5>;
                    vsync-len = <36>;
731
            };
732 733 734 735
        };		
	};
	
	fimd {
736
        status = "okay";
737
	};
Mauro Ribeiro's avatar
Mauro Ribeiro committed
738
	
Oversun's avatar
Oversun committed
739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754
	ion {
		compatible = "samsung,exynos5430-ion";
		contig-names = "common", "mfc_sh", "g2d_wfd", "video", "mfc_input",
					   "sectbl", "mfc_fw", "mfc_nfw", "secdma";
		contig = <0 0x6650000 0x0>, <2 0x400000 0x0>, <10 0x800000 0x0>,
				<11 0x6000000 0x0>, <7 0x1000000 0x0>, <9 0x400000 0x0>,
				<8 0x400000 0x0>, <12 0x400000 0x0>, <13 0x400000 0x0>;

		ion_noncontig_heap {
			id-type = <0 0>;
		};

		exynos_contig_heap {
			id-type = <4 6>;
		};
	};
755 756 757 758 759 760 761 762 763 764

    	timer {
            	compatible = "arm,cortex-a15-timer",
                         	"arm,armv7-timer";
            	interrupts = <1 13 0xf08>,
                         	<1 14 0xf08>,
                         	<1 11 0xf08>,
                         	<1 10 0xf08>;
            	clock-frequency = <24000000>;
    	};
Mauro Ribeiro's avatar
Mauro Ribeiro committed
765
};