Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Mar 24-27, 2025, special US time zones
Register
Loading...
Note: File does not exist in v6.13.7.
   1// SPDX-License-Identifier: GPL-2.0
   2/*
   3 * Google Peach Pi Rev 10+ board device tree source
   4 *
   5 * Copyright (c) 2014 Google, Inc
   6 */
   7
   8/dts-v1/;
   9#include <dt-bindings/input/input.h>
  10#include <dt-bindings/gpio/gpio.h>
  11#include <dt-bindings/interrupt-controller/irq.h>
  12#include <dt-bindings/clock/maxim,max77802.h>
  13#include <dt-bindings/regulator/maxim,max77802.h>
  14#include <dt-bindings/sound/samsung-i2s.h>
  15#include "exynos5800.dtsi"
  16#include "exynos5420-cpus.dtsi"
  17
  18/ {
  19	model = "Google Peach Pi Rev 10+";
  20
  21	compatible = "google,pi-rev16",
  22		"google,pi-rev15", "google,pi-rev14",
  23		"google,pi-rev13", "google,pi-rev12",
  24		"google,pi-rev11", "google,pi-rev10",
  25		"google,pi", "google,peach", "samsung,exynos5800",
  26		"samsung,exynos5";
  27
  28	aliases {
  29		/* Assign 20 so we don't get confused w/ builtin ones */
  30		i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel";
  31	};
  32
  33	backlight: backlight {
  34		compatible = "pwm-backlight";
  35		pwms = <&pwm 0 1000000 0>;
  36		brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
  37		default-brightness-level = <7>;
  38		enable-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
  39		power-supply = <&tps65090_fet1>;
  40		pinctrl-0 = <&pwm0_out>;
  41		pinctrl-names = "default";
  42	};
  43
  44	chosen {
  45		stdout-path = "serial3:115200n8";
  46	};
  47
  48	fixed-rate-clocks {
  49		oscclk {
  50			compatible = "samsung,exynos5420-oscclk";
  51			clock-frequency = <24000000>;
  52		};
  53	};
  54
  55	gpio-keys {
  56		compatible = "gpio-keys";
  57
  58		pinctrl-names = "default";
  59		pinctrl-0 = <&power_key_irq &lid_irq>;
  60
  61		power {
  62			label = "Power";
  63			gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
  64			linux,code = <KEY_POWER>;
  65			wakeup-source;
  66		};
  67
  68		lid-switch {
  69			label = "Lid";
  70			gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
  71			linux,input-type = <5>; /* EV_SW */
  72			linux,code = <0>; /* SW_LID */
  73			debounce-interval = <1>;
  74			wakeup-source;
  75		};
  76
  77	};
  78
  79	memory@20000000 {
  80		device_type = "memory";
  81		reg = <0x20000000 0x80000000>;
  82	};
  83
  84	sound {
  85		compatible = "google,snow-audio-max98091";
  86
  87		samsung,model = "Peach-Pi-I2S-MAX98091";
  88		samsung,i2s-controller = <&i2s0>;
  89		samsung,audio-codec = <&max98091>;
  90
  91		cpu {
  92			sound-dai = <&i2s0 0>;
  93		};
  94
  95		codec {
  96			sound-dai = <&max98091>, <&hdmi>;
  97		};
  98	};
  99
 100	usb300_vbus_reg: regulator-usb300 {
 101		compatible = "regulator-fixed";
 102		regulator-name = "P5.0V_USB3CON0";
 103		regulator-min-microvolt = <5000000>;
 104		regulator-max-microvolt = <5000000>;
 105		gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
 106		pinctrl-names = "default";
 107		pinctrl-0 = <&usb300_vbus_en>;
 108		enable-active-high;
 109	};
 110
 111	usb301_vbus_reg: regulator-usb301 {
 112		compatible = "regulator-fixed";
 113		regulator-name = "P5.0V_USB3CON1";
 114		regulator-min-microvolt = <5000000>;
 115		regulator-max-microvolt = <5000000>;
 116		gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
 117		pinctrl-names = "default";
 118		pinctrl-0 = <&usb301_vbus_en>;
 119		enable-active-high;
 120	};
 121
 122	vbat: fixed-regulator {
 123		compatible = "regulator-fixed";
 124		regulator-name = "vbat-supply";
 125		regulator-boot-on;
 126		regulator-always-on;
 127	};
 128
 129	panel: panel {
 130		compatible = "auo,b133htn01";
 131		power-supply = <&tps65090_fet6>;
 132		backlight = <&backlight>;
 133
 134		port {
 135			panel_in: endpoint {
 136				remote-endpoint = <&dp_out>;
 137			};
 138		};
 139	};
 140
 141	mmc1_pwrseq: mmc1_pwrseq {
 142		compatible = "mmc-pwrseq-simple";
 143		reset-gpios = <&gpx0 0 GPIO_ACTIVE_LOW>; /* WIFI_EN */
 144		clocks = <&max77802 MAX77802_CLK_32K_CP>;
 145		clock-names = "ext_clock";
 146	};
 147};
 148
 149&adc {
 150	status = "okay";
 151	vdd-supply = <&ldo9_reg>;
 152};
 153
 154&clock_audss {
 155	assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
 156	assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
 157};
 158
 159&cpu0 {
 160	cpu-supply = <&buck2_reg>;
 161};
 162
 163&cpu4 {
 164	cpu-supply = <&buck6_reg>;
 165};
 166
 167&dp {
 168	status = "okay";
 169	pinctrl-names = "default";
 170	pinctrl-0 = <&dp_hpd_gpio>;
 171	samsung,color-space = <0>;
 172	samsung,color-depth = <1>;
 173	samsung,link-rate = <0x0a>;
 174	samsung,lane-count = <2>;
 175	samsung,hpd-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
 176
 177	ports {
 178		port {
 179			dp_out: endpoint {
 180				remote-endpoint = <&panel_in>;
 181			};
 182		};
 183	};
 184};
 185
 186&fimd {
 187	status = "okay";
 188	samsung,invert-vclk;
 189};
 190
 191&hdmi {
 192	status = "okay";
 193	hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
 194	pinctrl-names = "default";
 195	pinctrl-0 = <&hdmi_hpd_irq>;
 196	ddc = <&i2c_2>;
 197
 198	hdmi-en-supply = <&tps65090_fet7>;
 199	vdd-supply = <&ldo8_reg>;
 200	vdd_osc-supply = <&ldo10_reg>;
 201	vdd_pll-supply = <&ldo8_reg>;
 202};
 203
 204&hsi2c_4 {
 205	status = "okay";
 206	clock-frequency = <400000>;
 207
 208	max77802: max77802-pmic@9 {
 209		compatible = "maxim,max77802";
 210		interrupt-parent = <&gpx3>;
 211		interrupts = <1 IRQ_TYPE_NONE>;
 212		pinctrl-names = "default";
 213		pinctrl-0 = <&max77802_irq>, <&pmic_selb>,
 214			    <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>;
 215		wakeup-source;
 216		reg = <0x9>;
 217		#clock-cells = <1>;
 218
 219		inb1-supply = <&tps65090_dcdc2>;
 220		inb2-supply = <&tps65090_dcdc1>;
 221		inb3-supply = <&tps65090_dcdc2>;
 222		inb4-supply = <&tps65090_dcdc2>;
 223		inb5-supply = <&tps65090_dcdc1>;
 224		inb6-supply = <&tps65090_dcdc2>;
 225		inb7-supply = <&tps65090_dcdc1>;
 226		inb8-supply = <&tps65090_dcdc1>;
 227		inb9-supply = <&tps65090_dcdc1>;
 228		inb10-supply = <&tps65090_dcdc1>;
 229
 230		inl1-supply = <&buck5_reg>;
 231		inl2-supply = <&buck7_reg>;
 232		inl3-supply = <&buck9_reg>;
 233		inl4-supply = <&buck9_reg>;
 234		inl5-supply = <&buck9_reg>;
 235		inl6-supply = <&tps65090_dcdc2>;
 236		inl7-supply = <&buck9_reg>;
 237		inl9-supply = <&tps65090_dcdc2>;
 238		inl10-supply = <&buck7_reg>;
 239
 240		regulators {
 241			buck1_reg: BUCK1 {
 242				regulator-name = "vdd_mif";
 243				regulator-min-microvolt = <800000>;
 244				regulator-max-microvolt = <1300000>;
 245				regulator-always-on;
 246				regulator-boot-on;
 247				regulator-ramp-delay = <12500>;
 248				regulator-state-mem {
 249					regulator-off-in-suspend;
 250				};
 251			};
 252
 253			buck2_reg: BUCK2 {
 254				regulator-name = "vdd_arm";
 255				regulator-min-microvolt = <800000>;
 256				regulator-max-microvolt = <1500000>;
 257				regulator-always-on;
 258				regulator-boot-on;
 259				regulator-ramp-delay = <12500>;
 260				regulator-state-mem {
 261					regulator-off-in-suspend;
 262				};
 263			};
 264
 265			buck3_reg: BUCK3 {
 266				regulator-name = "vdd_int";
 267				regulator-min-microvolt = <800000>;
 268				regulator-max-microvolt = <1400000>;
 269				regulator-always-on;
 270				regulator-boot-on;
 271				regulator-ramp-delay = <12500>;
 272				regulator-state-mem {
 273					regulator-off-in-suspend;
 274				};
 275			};
 276
 277			buck4_reg: BUCK4 {
 278				regulator-name = "vdd_g3d";
 279				regulator-min-microvolt = <700000>;
 280				regulator-max-microvolt = <1400000>;
 281				regulator-always-on;
 282				regulator-boot-on;
 283				regulator-ramp-delay = <12500>;
 284				regulator-state-mem {
 285					regulator-off-in-suspend;
 286				};
 287			};
 288
 289			buck5_reg: BUCK5 {
 290				regulator-name = "vdd_1v2";
 291				regulator-min-microvolt = <1200000>;
 292				regulator-max-microvolt = <1200000>;
 293				regulator-boot-on;
 294				regulator-state-mem {
 295					regulator-off-in-suspend;
 296				};
 297			};
 298
 299			buck6_reg: BUCK6 {
 300				regulator-name = "vdd_kfc";
 301				regulator-min-microvolt = <800000>;
 302				regulator-max-microvolt = <1500000>;
 303				regulator-always-on;
 304				regulator-boot-on;
 305				regulator-ramp-delay = <12500>;
 306				regulator-state-mem {
 307					regulator-off-in-suspend;
 308				};
 309			};
 310
 311			buck7_reg: BUCK7 {
 312				regulator-name = "vdd_1v35";
 313				regulator-min-microvolt = <1350000>;
 314				regulator-max-microvolt = <1350000>;
 315				regulator-boot-on;
 316				regulator-state-mem {
 317					regulator-on-in-suspend;
 318				};
 319			};
 320
 321			buck8_reg: BUCK8 {
 322				regulator-name = "vdd_emmc";
 323				regulator-min-microvolt = <2850000>;
 324				regulator-max-microvolt = <2850000>;
 325				regulator-always-on;
 326				regulator-boot-on;
 327				regulator-state-mem {
 328					regulator-off-in-suspend;
 329				};
 330			};
 331
 332			buck9_reg: BUCK9 {
 333				regulator-name = "vdd_2v";
 334				regulator-min-microvolt = <2000000>;
 335				regulator-max-microvolt = <2000000>;
 336				regulator-boot-on;
 337				regulator-state-mem {
 338					regulator-on-in-suspend;
 339				};
 340			};
 341
 342			buck10_reg: BUCK10 {
 343				regulator-name = "vdd_1v8";
 344				regulator-min-microvolt = <1800000>;
 345				regulator-max-microvolt = <1800000>;
 346				regulator-boot-on;
 347				regulator-state-mem {
 348					regulator-on-in-suspend;
 349				};
 350			};
 351
 352			ldo1_reg: LDO1 {
 353				regulator-name = "vdd_1v0";
 354				regulator-min-microvolt = <1000000>;
 355				regulator-max-microvolt = <1000000>;
 356				regulator-always-on;
 357				regulator-state-mem {
 358					regulator-on-in-suspend;
 359					regulator-mode = <MAX77802_OPMODE_LP>;
 360				};
 361			};
 362
 363			ldo2_reg: LDO2 {
 364				regulator-name = "vdd_1v2_2";
 365				regulator-min-microvolt = <1200000>;
 366				regulator-max-microvolt = <1200000>;
 367			};
 368
 369			ldo3_reg: LDO3 {
 370				regulator-name = "vdd_1v8_3";
 371				regulator-min-microvolt = <1800000>;
 372				regulator-max-microvolt = <1800000>;
 373				regulator-always-on;
 374				regulator-state-mem {
 375					regulator-on-in-suspend;
 376					regulator-mode = <MAX77802_OPMODE_LP>;
 377				};
 378			};
 379
 380			vqmmc_sdcard: ldo4_reg: LDO4 {
 381				regulator-name = "vdd_sd";
 382				regulator-min-microvolt = <1800000>;
 383				regulator-max-microvolt = <2800000>;
 384				regulator-always-on;
 385				regulator-state-mem {
 386					regulator-off-in-suspend;
 387				};
 388			};
 389
 390			ldo5_reg: LDO5 {
 391				regulator-name = "vdd_1v8_5";
 392				regulator-min-microvolt = <1800000>;
 393				regulator-max-microvolt = <1800000>;
 394				regulator-always-on;
 395				regulator-state-mem {
 396					regulator-off-in-suspend;
 397				};
 398			};
 399
 400			ldo6_reg: LDO6 {
 401				regulator-name = "vdd_1v8_6";
 402				regulator-min-microvolt = <1800000>;
 403				regulator-max-microvolt = <1800000>;
 404				regulator-always-on;
 405				regulator-state-mem {
 406					regulator-off-in-suspend;
 407				};
 408			};
 409
 410			ldo7_reg: LDO7 {
 411				regulator-name = "vdd_1v8_7";
 412				regulator-min-microvolt = <1800000>;
 413				regulator-max-microvolt = <1800000>;
 414			};
 415
 416			ldo8_reg: LDO8 {
 417				regulator-name = "vdd_ldo8";
 418				regulator-min-microvolt = <1000000>;
 419				regulator-max-microvolt = <1000000>;
 420				regulator-always-on;
 421				regulator-state-mem {
 422					regulator-off-in-suspend;
 423				};
 424			};
 425
 426			ldo9_reg: LDO9 {
 427				regulator-name = "vdd_ldo9";
 428				regulator-min-microvolt = <1800000>;
 429				regulator-max-microvolt = <1800000>;
 430				regulator-state-mem {
 431					regulator-on-in-suspend;
 432					regulator-mode = <MAX77802_OPMODE_LP>;
 433				};
 434			};
 435
 436			ldo10_reg: LDO10 {
 437				regulator-name = "vdd_ldo10";
 438				regulator-min-microvolt = <1800000>;
 439				regulator-max-microvolt = <1800000>;
 440				regulator-state-mem {
 441					regulator-off-in-suspend;
 442				};
 443			};
 444
 445			ldo11_reg: LDO11 {
 446				regulator-name = "vdd_ldo11";
 447				regulator-min-microvolt = <1800000>;
 448				regulator-max-microvolt = <1800000>;
 449				regulator-always-on;
 450				regulator-state-mem {
 451					regulator-on-in-suspend;
 452					regulator-mode = <MAX77802_OPMODE_LP>;
 453				};
 454			};
 455
 456			ldo12_reg: LDO12 {
 457				regulator-name = "vdd_ldo12";
 458				regulator-min-microvolt = <3000000>;
 459				regulator-max-microvolt = <3000000>;
 460				regulator-always-on;
 461				regulator-state-mem {
 462					regulator-off-in-suspend;
 463				};
 464			};
 465
 466			ldo13_reg: LDO13 {
 467				regulator-name = "vdd_ldo13";
 468				regulator-min-microvolt = <1800000>;
 469				regulator-max-microvolt = <1800000>;
 470				regulator-always-on;
 471				regulator-state-mem {
 472					regulator-on-in-suspend;
 473					regulator-mode = <MAX77802_OPMODE_LP>;
 474				};
 475			};
 476
 477			ldo14_reg: LDO14 {
 478				regulator-name = "vdd_ldo14";
 479				regulator-min-microvolt = <1800000>;
 480				regulator-max-microvolt = <1800000>;
 481				regulator-always-on;
 482				regulator-state-mem {
 483					regulator-off-in-suspend;
 484				};
 485			};
 486
 487			ldo15_reg: LDO15 {
 488				regulator-name = "vdd_ldo15";
 489				regulator-min-microvolt = <1000000>;
 490				regulator-max-microvolt = <1000000>;
 491				regulator-always-on;
 492				regulator-state-mem {
 493					regulator-off-in-suspend;
 494				};
 495			};
 496
 497			ldo17_reg: LDO17 {
 498				regulator-name = "vdd_g3ds";
 499				regulator-min-microvolt = <900000>;
 500				regulator-max-microvolt = <1400000>;
 501				regulator-always-on;
 502				regulator-state-mem {
 503					regulator-off-in-suspend;
 504				};
 505			};
 506
 507			ldo18_reg: LDO18 {
 508				regulator-name = "ldo_18";
 509				regulator-min-microvolt = <1800000>;
 510				regulator-max-microvolt = <1800000>;
 511			};
 512
 513			ldo19_reg: LDO19 {
 514				regulator-name = "ldo_19";
 515				regulator-min-microvolt = <1800000>;
 516				regulator-max-microvolt = <1800000>;
 517			};
 518
 519			ldo20_reg: LDO20 {
 520				regulator-name = "ldo_20";
 521				regulator-min-microvolt = <1800000>;
 522				regulator-max-microvolt = <1800000>;
 523				regulator-always-on;
 524			};
 525
 526			ldo21_reg: LDO21 {
 527				regulator-name = "ldo_21";
 528				regulator-min-microvolt = <2800000>;
 529				regulator-max-microvolt = <2800000>;
 530			};
 531
 532			ldo23_reg: LDO23 {
 533				regulator-name = "ldo_23";
 534				regulator-min-microvolt = <3300000>;
 535				regulator-max-microvolt = <3300000>;
 536			};
 537			ldo24_reg: LDO24 {
 538				regulator-name = "ldo_24";
 539				regulator-min-microvolt = <2800000>;
 540				regulator-max-microvolt = <2800000>;
 541			};
 542
 543			ldo25_reg: LDO25 {
 544				regulator-name = "ldo_25";
 545				regulator-min-microvolt = <3300000>;
 546				regulator-max-microvolt = <3300000>;
 547			};
 548
 549			ldo26_reg: LDO26 {
 550				regulator-name = "ldo_26";
 551				regulator-min-microvolt = <1200000>;
 552				regulator-max-microvolt = <1200000>;
 553			};
 554
 555			ldo27_reg: LDO27 {
 556				regulator-name = "ldo_27";
 557				regulator-min-microvolt = <1200000>;
 558				regulator-max-microvolt = <1200000>;
 559			};
 560
 561			ldo28_reg: LDO28 {
 562				regulator-name = "ldo_28";
 563				regulator-min-microvolt = <1800000>;
 564				regulator-max-microvolt = <1800000>;
 565			};
 566
 567			ldo29_reg: LDO29 {
 568				regulator-name = "ldo_29";
 569				regulator-min-microvolt = <1800000>;
 570				regulator-max-microvolt = <1800000>;
 571			};
 572
 573			ldo30_reg: LDO30 {
 574				regulator-name = "vdd_mifs";
 575				regulator-min-microvolt = <1000000>;
 576				regulator-max-microvolt = <1000000>;
 577				regulator-always-on;
 578				regulator-state-mem {
 579					regulator-off-in-suspend;
 580				};
 581			};
 582
 583			ldo32_reg: LDO32 {
 584				regulator-name = "ldo_32";
 585				regulator-min-microvolt = <3000000>;
 586				regulator-max-microvolt = <3000000>;
 587			};
 588
 589			ldo33_reg: LDO33 {
 590				regulator-name = "ldo_33";
 591				regulator-min-microvolt = <2800000>;
 592				regulator-max-microvolt = <2800000>;
 593			};
 594
 595			ldo34_reg: LDO34 {
 596				regulator-name = "ldo_34";
 597				regulator-min-microvolt = <3000000>;
 598				regulator-max-microvolt = <3000000>;
 599			};
 600
 601			ldo35_reg: LDO35 {
 602				regulator-name = "ldo_35";
 603				regulator-min-microvolt = <1200000>;
 604				regulator-max-microvolt = <1200000>;
 605			};
 606		};
 607	};
 608};
 609
 610&hsi2c_7 {
 611	status = "okay";
 612	clock-frequency = <400000>;
 613
 614	max98091: codec@10 {
 615		compatible = "maxim,max98091";
 616		reg = <0x10>;
 617		interrupts = <2 IRQ_TYPE_NONE>;
 618		interrupt-parent = <&gpx0>;
 619		pinctrl-names = "default";
 620		pinctrl-0 = <&max98091_irq>;
 621		clocks = <&pmu_system_controller 0>;
 622		clock-names = "mclk";
 623		#sound-dai-cells = <0>;
 624	};
 625
 626	light-sensor@44 {
 627		compatible = "isil,isl29018";
 628		reg = <0x44>;
 629		vcc-supply = <&tps65090_fet5>;
 630	};
 631};
 632
 633&hsi2c_8 {
 634	status = "okay";
 635	clock-frequency = <333000>;
 636	/* Atmel mXT540S */
 637	trackpad@4b {
 638		compatible = "atmel,maxtouch";
 639		reg = <0x4b>;
 640		interrupt-parent = <&gpx1>;
 641		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
 642		wakeup-source;
 643		pinctrl-names = "default";
 644		pinctrl-0 = <&trackpad_irq>;
 645		linux,gpio-keymap = <KEY_RESERVED
 646				     KEY_RESERVED
 647				     KEY_RESERVED	/* GPIO 0 */
 648				     KEY_RESERVED	/* GPIO 1 */
 649				     BTN_LEFT		/* GPIO 2 */
 650				     KEY_RESERVED>;	/* GPIO 3 */
 651	};
 652};
 653
 654&hsi2c_9 {
 655	status = "okay";
 656	clock-frequency = <400000>;
 657
 658	tpm@20 {
 659		compatible = "infineon,slb9645tt";
 660		reg = <0x20>;
 661
 662		/* Unused irq; but still need to configure the pins */
 663		pinctrl-names = "default";
 664		pinctrl-0 = <&tpm_irq>;
 665	};
 666};
 667
 668&i2c_2 {
 669	status = "okay";
 670	samsung,i2c-sda-delay = <100>;
 671	samsung,i2c-max-bus-freq = <66000>;
 672	samsung,i2c-slave-addr = <0x50>;
 673};
 674
 675&i2s0 {
 676	assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
 677	assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
 678	status = "okay";
 679};
 680
 681&mixer {
 682	status = "okay";
 683};
 684
 685/* eMMC flash */
 686&mmc_0 {
 687	status = "okay";
 688	mmc-hs200-1_8v;
 689	mmc-hs400-1_8v;
 690	cap-mmc-highspeed;
 691	non-removable;
 692	clock-frequency = <800000000>;
 693	samsung,dw-mshc-ciu-div = <3>;
 694	samsung,dw-mshc-sdr-timing = <0 4>;
 695	samsung,dw-mshc-ddr-timing = <0 2>;
 696	samsung,dw-mshc-hs400-timing = <0 2>;
 697	samsung,read-strobe-delay = <90>;
 698	pinctrl-names = "default";
 699	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>;
 700	bus-width = <8>;
 701};
 702
 703/* WiFi SDIO module */
 704&mmc_1 {
 705	status = "okay";
 706	non-removable;
 707	cap-sdio-irq;
 708	keep-power-in-suspend;
 709	clock-frequency = <400000000>;
 710	samsung,dw-mshc-ciu-div = <1>;
 711	samsung,dw-mshc-sdr-timing = <0 1>;
 712	samsung,dw-mshc-ddr-timing = <0 2>;
 713	pinctrl-names = "default";
 714	pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>,
 715		    <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>;
 716	bus-width = <4>;
 717	cap-sd-highspeed;
 718	mmc-pwrseq = <&mmc1_pwrseq>;
 719	vqmmc-supply = <&buck10_reg>;
 720};
 721
 722/* uSD card */
 723&mmc_2 {
 724	status = "okay";
 725	cap-sd-highspeed;
 726	card-detect-delay = <200>;
 727	clock-frequency = <400000000>;
 728	samsung,dw-mshc-ciu-div = <3>;
 729	samsung,dw-mshc-sdr-timing = <2 3>;
 730	samsung,dw-mshc-ddr-timing = <1 2>;
 731	pinctrl-names = "default";
 732	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
 733	bus-width = <4>;
 734};
 735
 736
 737&pinctrl_0 {
 738	pinctrl-names = "default";
 739	pinctrl-0 = <&mask_tpm_reset>;
 740
 741	wifi_en: wifi-en {
 742		samsung,pins = "gpx0-0";
 743		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 744		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 745		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 746	};
 747
 748	max98091_irq: max98091-irq {
 749		samsung,pins = "gpx0-2";
 750		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 751		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 752		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 753	};
 754
 755	/* We need GPX0_6 to be low at sleep time; just keep it low always */
 756	mask_tpm_reset: mask-tpm-reset {
 757		samsung,pins = "gpx0-6";
 758		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 759		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 760		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 761		samsung,pin-val = <0>;
 762	};
 763
 764	tpm_irq: tpm-irq {
 765		samsung,pins = "gpx1-0";
 766		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 767		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 768		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 769	};
 770
 771	trackpad_irq: trackpad-irq {
 772		samsung,pins = "gpx1-1";
 773		samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
 774		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 775		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 776	};
 777
 778	power_key_irq: power-key-irq {
 779		samsung,pins = "gpx1-2";
 780		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 781		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 782		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 783	};
 784
 785	ec_irq: ec-irq {
 786		samsung,pins = "gpx1-5";
 787		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 788		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 789		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 790	};
 791
 792	tps65090_irq: tps65090-irq {
 793		samsung,pins = "gpx2-5";
 794		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 795		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 796		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 797	};
 798
 799	dp_hpd_gpio: dp_hpd_gpio {
 800		samsung,pins = "gpx2-6";
 801		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 802		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
 803		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 804	};
 805
 806	max77802_irq: max77802-irq {
 807		samsung,pins = "gpx3-1";
 808		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 809		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 810		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 811	};
 812
 813	lid_irq: lid-irq {
 814		samsung,pins = "gpx3-4";
 815		samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
 816		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 817		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 818	};
 819
 820	hdmi_hpd_irq: hdmi-hpd-irq {
 821		samsung,pins = "gpx3-7";
 822		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
 823		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
 824		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 825	};
 826
 827	pmic_dvs_1: pmic-dvs-1 {
 828		samsung,pins = "gpy7-6";
 829		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 830		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 831		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 832	};
 833};
 834
 835&pinctrl_1 {
 836	/* Adjust WiFi drive strengths lower for EMI */
 837	sd1_clk: sd1-clk {
 838		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 839	};
 840
 841	sd1_cmd: sd1-cmd {
 842		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 843	};
 844
 845	sd1_bus1: sd1-bus-width1 {
 846		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 847	};
 848
 849	sd1_bus4: sd1-bus-width4 {
 850		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 851	};
 852
 853	sd1_bus8: sd1-bus-width8 {
 854		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 855	};
 856};
 857
 858&pinctrl_2 {
 859	pmic_dvs_2: pmic-dvs-2 {
 860		samsung,pins = "gpj4-2";
 861		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 862		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 863		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 864	};
 865
 866	pmic_dvs_3: pmic-dvs-3 {
 867		samsung,pins = "gpj4-3";
 868		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 869		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 870		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 871	};
 872};
 873
 874&pinctrl_3 {
 875	/* Drive SPI lines at x2 for better integrity */
 876	spi2-bus {
 877		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 878	};
 879
 880	/* Drive SPI chip select at x2 for better integrity */
 881	ec_spi_cs: ec-spi-cs {
 882		samsung,pins = "gpb1-2";
 883		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 884		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 885		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>;
 886	};
 887
 888	usb300_vbus_en: usb300-vbus-en {
 889		samsung,pins = "gph0-0";
 890		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 891		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 892		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 893	};
 894
 895	usb301_vbus_en: usb301-vbus-en {
 896		samsung,pins = "gph0-1";
 897		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 898		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 899		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 900	};
 901
 902	pmic_selb: pmic-selb {
 903		samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5",
 904			       "gph0-6";
 905		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
 906		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
 907		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
 908	};
 909};
 910
 911&pmu_system_controller {
 912	assigned-clocks = <&pmu_system_controller 0>;
 913	assigned-clock-parents = <&clock CLK_FIN_PLL>;
 914};
 915
 916&rtc {
 917	status = "okay";
 918	clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
 919	clock-names = "rtc", "rtc_src";
 920};
 921
 922&spi_2 {
 923	status = "okay";
 924	num-cs = <1>;
 925	samsung,spi-src-clk = <0>;
 926	cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>;
 927
 928	cros_ec: cros-ec@0 {
 929		compatible = "google,cros-ec-spi";
 930		interrupt-parent = <&gpx1>;
 931		interrupts = <5 IRQ_TYPE_NONE>;
 932		pinctrl-names = "default";
 933		pinctrl-0 = <&ec_spi_cs &ec_irq>;
 934		reg = <0>;
 935		spi-max-frequency = <3125000>;
 936		google,has-vbc-nvram;
 937
 938		controller-data {
 939			samsung,spi-feedback-delay = <1>;
 940		};
 941
 942		i2c-tunnel {
 943			compatible = "google,cros-ec-i2c-tunnel";
 944			#address-cells = <1>;
 945			#size-cells = <0>;
 946			google,remote-bus = <0>;
 947
 948			battery: sbs-battery@b {
 949				compatible = "sbs,sbs-battery";
 950				reg = <0xb>;
 951				sbs,poll-retry-count = <1>;
 952				sbs,i2c-retry-count = <2>;
 953			};
 954
 955			power-regulator@48 {
 956				compatible = "ti,tps65090";
 957				reg = <0x48>;
 958
 959				/*
 960				 * Config irq to disable internal pulls
 961				 * even though we run in polling mode.
 962				 */
 963				pinctrl-names = "default";
 964				pinctrl-0 = <&tps65090_irq>;
 965
 966				vsys1-supply = <&vbat>;
 967				vsys2-supply = <&vbat>;
 968				vsys3-supply = <&vbat>;
 969				infet1-supply = <&vbat>;
 970				infet2-supply = <&tps65090_dcdc1>;
 971				infet3-supply = <&tps65090_dcdc2>;
 972				infet4-supply = <&tps65090_dcdc2>;
 973				infet5-supply = <&tps65090_dcdc2>;
 974				infet6-supply = <&tps65090_dcdc2>;
 975				infet7-supply = <&tps65090_dcdc1>;
 976				vsys-l1-supply = <&vbat>;
 977				vsys-l2-supply = <&vbat>;
 978
 979				regulators {
 980					tps65090_dcdc1: dcdc1 {
 981						ti,enable-ext-control;
 982					};
 983					tps65090_dcdc2: dcdc2 {
 984						ti,enable-ext-control;
 985					};
 986					tps65090_dcdc3: dcdc3 {
 987						ti,enable-ext-control;
 988					};
 989					tps65090_fet1: fet1 {
 990						regulator-name = "vcd_led";
 991					};
 992					tps65090_fet2: fet2 {
 993						regulator-name = "video_mid";
 994						regulator-always-on;
 995					};
 996					tps65090_fet3: fet3 {
 997						regulator-name = "wwan_r";
 998						regulator-always-on;
 999					};
1000					tps65090_fet4: fet4 {
1001						regulator-name = "sdcard";
1002						regulator-always-on;
1003					};
1004					tps65090_fet5: fet5 {
1005						regulator-name = "camout";
1006						regulator-always-on;
1007					};
1008					tps65090_fet6: fet6 {
1009						regulator-name = "lcd_vdd";
1010					};
1011					tps65090_fet7: fet7 {
1012						regulator-name = "video_mid_1a";
1013						regulator-always-on;
1014					};
1015					tps65090_ldo1: ldo1 {
1016					};
1017					tps65090_ldo2: ldo2 {
1018					};
1019				};
1020
1021				charger {
1022					compatible = "ti,tps65090-charger";
1023				};
1024			};
1025		};
1026	};
1027};
1028
1029&serial_3 {
1030	status = "okay";
1031};
1032
1033&tmu_cpu0 {
1034	vtmu-supply = <&ldo10_reg>;
1035};
1036
1037&tmu_cpu1 {
1038	vtmu-supply = <&ldo10_reg>;
1039};
1040
1041&tmu_cpu2 {
1042	vtmu-supply = <&ldo10_reg>;
1043};
1044
1045&tmu_cpu3 {
1046	vtmu-supply = <&ldo10_reg>;
1047};
1048
1049&tmu_gpu {
1050	vtmu-supply = <&ldo10_reg>;
1051};
1052
1053&usbdrd_dwc3_0 {
1054	dr_mode = "host";
1055};
1056
1057&usbdrd_dwc3_1 {
1058	dr_mode = "host";
1059};
1060
1061&usbdrd_phy0 {
1062	vbus-supply = <&usb300_vbus_reg>;
1063};
1064
1065&usbdrd_phy1 {
1066	vbus-supply = <&usb301_vbus_reg>;
1067};
1068
1069/*
1070 * Use longest HW watchdog in SoC (32 seconds) since the hardware
1071 * watchdog provides no debugging information (compared to soft/hard
1072 * lockup detectors) and so should be last resort.
1073 */
1074&watchdog {
1075	timeout-sec = <32>;
1076};
1077
1078#include "cros-ec-keyboard.dtsi"
1079#include "cros-adc-thermistors.dtsi"