1/* 2 * SAMSUNG Snow board device tree source 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11 12/dts-v1/; 13#include <dt-bindings/gpio/gpio.h> 14#include <dt-bindings/interrupt-controller/irq.h> 15#include <dt-bindings/input/input.h> 16#include "exynos5250.dtsi" 17 18/ { 19 model = "Google Snow"; 20 compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5"; 21 22 aliases { 23 i2c0 = "/i2c@12C60000"; 24 i2c1 = "/i2c@12C70000"; 25 i2c2 = "/i2c@12C80000"; 26 i2c3 = "/i2c@12C90000"; 27 i2c4 = "/i2c@12CA0000"; 28 i2c104 = &i2c_104; 29 i2c5 = "/i2c@12CB0000"; 30 i2c6 = "/i2c@12CC0000"; 31 i2c7 = "/i2c@12CD0000"; 32 spi0 = "/spi@12d20000"; 33 spi1 = "/spi@12d30000"; 34 spi2 = "/spi@12d40000"; 35 spi3 = "/spi@131a0000"; 36 spi4 = "/spi@131b0000"; 37 mmc0 = "/mmc@12200000"; 38 mmc1 = "/mmc@12210000"; 39 mmc2 = "/mmc@12220000"; 40 mmc3 = "/mmc@12230000"; 41 serial0 = "/serial@12C30000"; 42 console = "/serial@12C30000"; 43 }; 44 45 memory { 46 reg = <0x40000000 0x80000000>; 47 }; 48 49 chosen { 50 bootargs = "console=tty1"; 51 stdout-path = "serial3:115200n8"; 52 }; 53 54 iram { 55 reg = <0x02020000 0x60000>; 56 }; 57 58 config { 59 samsung,bl1-offset = <0x1400>; 60 samsung,bl2-offset = <0x3400>; 61 u-boot-memory = "/memory"; 62 u-boot-offset = <0x3e00000 0x100000>; 63 }; 64 65 flash { 66 reg = <0 0x100000>; 67 #address-cells = <1>; 68 #size-cells = <1>; 69 pre-boot { 70 label = "bl1 pre-boot"; 71 reg = <0 0x2000>; 72 read-only; 73 filename = "e5250.nbl1.bin"; 74 type = "blob exynos-bl1"; 75 required; 76 }; 77 78 spl { 79 label = "bl2 spl"; 80 reg = <0x2000 0x4000>; 81 read-only; 82 filename = "bl2.bin"; 83 type = "blob exynos-bl2 boot,dtb"; 84 payload = "/flash/ro-boot"; 85 required; 86 }; 87 88 ro-boot { 89 label = "u-boot"; 90 reg = <0x6000 0xb0000>; 91 read-only; 92 type = "blob boot,dtb"; 93 required; 94 }; 95 }; 96 97 i2c-arbitrator { 98 compatible = "i2c-arb-gpio-challenge"; 99 #address-cells = <1>; 100 #size-cells = <0>; 101 102 i2c-parent = <&{/i2c@12CA0000}>; 103 104 our-claim-gpio = <&gpf0 3 GPIO_ACTIVE_LOW>; 105 their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>; 106 slew-delay-us = <10>; 107 wait-retry-us = <3000>; 108 wait-free-us = <50000>; 109 110 /* Use ID 104 as a hint that we're on physical bus 4 */ 111 i2c_104: i2c@0 { 112 reg = <0>; 113 #address-cells = <1>; 114 #size-cells = <0>; 115 116 battery: sbs-battery@b { 117 compatible = "sbs,sbs-battery"; 118 reg = <0xb>; 119 sbs,poll-retry-count = <1>; 120 }; 121 122 cros_ec: embedded-controller { 123 compatible = "google,cros-ec-i2c"; 124 reg = <0x1e>; 125 interrupts = <6 IRQ_TYPE_NONE>; 126 interrupt-parent = <&gpx1>; 127 wakeup-source; 128 i2c-max-frequency = <100000>; 129 u-boot,i2c-offset-len = <0>; 130 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>; 131 }; 132 133 power-regulator { 134 compatible = "ti,tps65090"; 135 reg = <0x48>; 136 137 regulators { 138 dcdc1 { 139 ti,enable-ext-control; 140 }; 141 dcdc2 { 142 ti,enable-ext-control; 143 }; 144 dcdc3 { 145 ti,enable-ext-control; 146 }; 147 fet1: fet1 { 148 regulator-name = "vcd_led"; 149 ti,overcurrent-wait = <3>; 150 }; 151 tps65090_fet2: fet2 { 152 regulator-name = "video_mid"; 153 regulator-always-on; 154 ti,overcurrent-wait = <3>; 155 }; 156 fet3 { 157 regulator-name = "wwan_r"; 158 regulator-always-on; 159 ti,overcurrent-wait = <3>; 160 }; 161 fet4 { 162 regulator-name = "sdcard"; 163 ti,overcurrent-wait = <3>; 164 }; 165 fet5 { 166 regulator-name = "camout"; 167 regulator-always-on; 168 ti,overcurrent-wait = <3>; 169 }; 170 fet6: fet6 { 171 regulator-name = "lcd_vdd"; 172 ti,overcurrent-wait = <3>; 173 }; 174 tps65090_fet7: fet7 { 175 regulator-name = "video_mid_1a"; 176 regulator-always-on; 177 ti,overcurrent-wait = <3>; 178 }; 179 ldo1 { 180 }; 181 ldo2 { 182 }; 183 }; 184 185 charger { 186 compatible = "ti,tps65090-charger"; 187 }; 188 }; 189 }; 190 }; 191 192 i2c@12CD0000 { 193 ptn3460: lvds-bridge@20 { 194 compatible = "nxp,ptn3460"; 195 reg = <0x20>; 196 sleep-gpios = <&gpy2 5 GPIO_ACTIVE_LOW>; 197 reset-gpios = <&gpx1 5 GPIO_ACTIVE_LOW>; 198 hotplug-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>; 199 edid-emulation = <5>; 200 201 ports { 202 port@0 { 203 bridge_out: endpoint { 204 remote-endpoint = <&panel_in>; 205 }; 206 }; 207 208 port@1 { 209 bridge_in: endpoint { 210 remote-endpoint = <&dp_out>; 211 }; 212 }; 213 }; 214 }; 215 216 max98095: codec@11 { 217 compatible = "maxim,max98095"; 218 reg = <0x11>; 219 #sound-dai-cells = <1>; 220 }; 221 }; 222 223 i2c@12C90000 { 224 clock-frequency = <100000>; 225 tpm@20 { 226 reg = <0x20>; 227 u-boot,i2c-offset-len = <0>; 228 compatible = "infineon,slb9635tt"; 229 }; 230 }; 231 232 spi@12d30000 { 233 spi-max-frequency = <50000000>; 234 firmware_storage_spi: flash@0 { 235 compatible = "jedec,spi-nor"; 236 reg = <0>; 237 }; 238 }; 239 240 backlight: backlight { 241 compatible = "pwm-backlight"; 242 pwms = <&pwm 0 1000000 0>; 243 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; 244 default-brightness-level = <7>; 245 enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>; 246 power-supply = <&fet1>; 247 }; 248 249 panel: panel { 250 compatible = "auo,b116xw03"; 251 power-supply = <&fet6>; 252 backlight = <&backlight>; 253 254 port { 255 panel_in: endpoint { 256 remote-endpoint = <&bridge_out>; 257 }; 258 }; 259 }; 260 261 spi@131b0000 { 262 spi-max-frequency = <1000000>; 263 spi-deactivate-delay = <100>; 264 265 /* Snow did support SPI but the released version used I2C */ 266 embedded-controller { 267 compatible = "google,cros-ec-i2c"; 268 reg = <0x1e>; 269 spi-max-frequency = <5000000>; 270 ec-interrupt = <&gpx1 6 GPIO_ACTIVE_LOW>; 271 optimise-flash-write; 272 status = "disabled"; 273 }; 274 }; 275 276 sound { 277 compatible = "google,snow-audio-max98095"; 278 279 samsung,model = "Snow-I2S-MAX98095"; 280 samsung,audio-codec = <&max98095>; 281 codec-enable-gpio = <&gpx1 7 GPIO_ACTIVE_HIGH>; 282 283 cpu { 284 sound-dai = <&i2s0 0>; 285 }; 286 287 codec { 288 sound-dai = <&max98095 0>; 289 }; 290 }; 291 292 sound@12d60000 { 293 status = "disabled"; 294 }; 295 296 i2c@12C60000 { 297 max77686@09 { 298 reg = <0x9>; 299 compatible = "maxim,max77686"; 300 }; 301 }; 302 303 mmc@12200000 { 304 bus-width = <8>; 305 samsung,dw-mshc-ciu-div = <3>; 306 samsung,dw-mshc-sdr-timing = <1 3>; 307 non-removable; 308 }; 309 310 mmc@12210000 { 311 status = "disabled"; 312 }; 313 314 mmc@12220000 { 315 bus-width = <4>; 316 samsung,dw-mshc-ciu-div = <3>; 317 samsung,dw-mshc-sdr-timing = <1 2>; 318 }; 319 320 mmc@12230000 { 321 status = "disabled"; 322 }; 323 324 ehci@12110000 { 325 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>; 326 status = "okay"; 327 }; 328 329 xhci@12000000 { 330 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>; 331 }; 332 333 tmu@10060000 { 334 samsung,min-temp = <25>; 335 samsung,max-temp = <125>; 336 samsung,start-warning = <95>; 337 samsung,start-tripping = <105>; 338 samsung,hw-tripping = <110>; 339 samsung,efuse-min-value = <40>; 340 samsung,efuse-value = <55>; 341 samsung,efuse-max-value = <100>; 342 samsung,slope = <274761730>; 343 samsung,dc-value = <25>; 344 }; 345 346 fimd@14400000 { 347 samsung,vl-freq = <60>; 348 samsung,vl-col = <1366>; 349 samsung,vl-row = <768>; 350 samsung,vl-width = <1366>; 351 samsung,vl-height = <768>; 352 353 samsung,vl-clkp; 354 samsung,vl-dp; 355 samsung,vl-hsp; 356 samsung,vl-vsp; 357 358 samsung,vl-bpix = <4>; 359 360 samsung,vl-hspw = <32>; 361 samsung,vl-hbpd = <80>; 362 samsung,vl-hfpd = <48>; 363 samsung,vl-vspw = <5>; 364 samsung,vl-vbpd = <14>; 365 samsung,vl-vfpd = <3>; 366 samsung,vl-cmd-allow-len = <0xf>; 367 368 samsung,winid = <0>; 369 samsung,interface-mode = <1>; 370 samsung,dp-enabled = <1>; 371 samsung,dual-lcd-enabled = <0>; 372 }; 373 374 dp@145b0000 { 375 samsung,lt-status = <0>; 376 377 samsung,master-mode = <0>; 378 samsung,bist-mode = <0>; 379 samsung,bist-pattern = <0>; 380 samsung,h-sync-polarity = <0>; 381 samsung,v-sync-polarity = <0>; 382 samsung,interlaced = <0>; 383 samsung,color-space = <0>; 384 samsung,dynamic-range = <0>; 385 samsung,ycbcr-coeff = <0>; 386 samsung,color-depth = <1>; 387 samsung,hpd-gpio = <&gpx0 7 GPIO_ACTIVE_HIGH>; 388 389 ports { 390 port@0 { 391 dp_out: endpoint { 392 remote-endpoint = <&bridge_in>; 393 }; 394 }; 395 }; 396 }; 397 398}; 399 400&i2c_0 { 401 status = "okay"; 402 samsung,i2c-sda-delay = <100>; 403 samsung,i2c-max-bus-freq = <378000>; 404 405 max77686: max77686@09 { 406 compatible = "maxim,max77686"; 407 interrupt-parent = <&gpx3>; 408 interrupts = <2 IRQ_TYPE_NONE>; 409 wakeup-source; 410 reg = <0x09>; 411 #clock-cells = <1>; 412 413 voltage-regulators { 414 ldo1_reg: LDO1 { 415 regulator-name = "P1.0V_LDO_OUT1"; 416 regulator-min-microvolt = <1000000>; 417 regulator-max-microvolt = <1000000>; 418 regulator-always-on; 419 }; 420 421 ldo2_reg: LDO2 { 422 regulator-name = "P1.8V_LDO_OUT2"; 423 regulator-min-microvolt = <1800000>; 424 regulator-max-microvolt = <1800000>; 425 regulator-always-on; 426 }; 427 428 ldo3_reg: LDO3 { 429 regulator-name = "P1.8V_LDO_OUT3"; 430 regulator-min-microvolt = <1800000>; 431 regulator-max-microvolt = <1800000>; 432 regulator-always-on; 433 }; 434 435 ldo7_reg: LDO7 { 436 regulator-name = "P1.1V_LDO_OUT7"; 437 regulator-min-microvolt = <1100000>; 438 regulator-max-microvolt = <1100000>; 439 regulator-always-on; 440 }; 441 442 ldo8_reg: LDO8 { 443 regulator-name = "P1.0V_LDO_OUT8"; 444 regulator-min-microvolt = <1000000>; 445 regulator-max-microvolt = <1000000>; 446 regulator-always-on; 447 }; 448 449 ldo10_reg: LDO10 { 450 regulator-name = "P1.8V_LDO_OUT10"; 451 regulator-min-microvolt = <1800000>; 452 regulator-max-microvolt = <1800000>; 453 regulator-always-on; 454 }; 455 456 ldo12_reg: LDO12 { 457 regulator-name = "P3.0V_LDO_OUT12"; 458 regulator-min-microvolt = <3000000>; 459 regulator-max-microvolt = <3000000>; 460 regulator-always-on; 461 }; 462 463 ldo14_reg: LDO14 { 464 regulator-name = "P1.8V_LDO_OUT14"; 465 regulator-min-microvolt = <1800000>; 466 regulator-max-microvolt = <1800000>; 467 regulator-always-on; 468 }; 469 470 ldo15_reg: LDO15 { 471 regulator-name = "P1.0V_LDO_OUT15"; 472 regulator-min-microvolt = <1000000>; 473 regulator-max-microvolt = <1000000>; 474 regulator-always-on; 475 }; 476 477 ldo16_reg: LDO16 { 478 regulator-name = "P1.8V_LDO_OUT16"; 479 regulator-min-microvolt = <1800000>; 480 regulator-max-microvolt = <1800000>; 481 regulator-always-on; 482 }; 483 484 ldo17_reg: LDO17 { 485 regulator-name = "vdd_mydp"; 486 regulator-min-microvolt = <1200000>; 487 regulator-max-microvolt = <1200000>; 488 }; 489 490 buck1_reg: BUCK1 { 491 regulator-name = "vdd_mif"; 492 regulator-min-microvolt = <950000>; 493 regulator-max-microvolt = <1300000>; 494 regulator-always-on; 495 regulator-boot-on; 496 }; 497 498 buck2_reg: BUCK2 { 499 regulator-name = "vdd_arm"; 500 regulator-min-microvolt = <850000>; 501 regulator-max-microvolt = <1350000>; 502 regulator-always-on; 503 regulator-boot-on; 504 }; 505 506 buck3_reg: BUCK3 { 507 regulator-name = "vdd_int"; 508 regulator-min-microvolt = <900000>; 509 regulator-max-microvolt = <1200000>; 510 regulator-always-on; 511 regulator-boot-on; 512 }; 513 514 buck4_reg: BUCK4 { 515 regulator-name = "vdd_g3d"; 516 regulator-min-microvolt = <850000>; 517 regulator-max-microvolt = <1300000>; 518 regulator-always-on; 519 regulator-boot-on; 520 }; 521 522 buck5_reg: BUCK5 { 523 regulator-name = "P1.8V_BUCK_OUT5"; 524 regulator-min-microvolt = <1800000>; 525 regulator-max-microvolt = <1800000>; 526 regulator-always-on; 527 regulator-boot-on; 528 }; 529 530 buck6_reg: BUCK6 { 531 regulator-name = "P1.35V_BUCK_OUT6"; 532 regulator-min-microvolt = <1350000>; 533 regulator-max-microvolt = <1350000>; 534 regulator-always-on; 535 }; 536 537 buck7_reg: BUCK7 { 538 regulator-name = "P2.0V_BUCK_OUT7"; 539 regulator-min-microvolt = <2000000>; 540 regulator-max-microvolt = <2000000>; 541 regulator-always-on; 542 }; 543 544 buck8_reg: BUCK8 { 545 regulator-name = "P2.85V_BUCK_OUT8"; 546 regulator-min-microvolt = <2850000>; 547 regulator-max-microvolt = <2850000>; 548 regulator-always-on; 549 }; 550 }; 551 }; 552}; 553 554#include "cros-ec-keyboard.dtsi" 555