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 = "spi-flash"; 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 samsung,bus-width = <8>; 305 samsung,timing = <1 3 3>; 306 samsung,removable = <0>; 307 }; 308 309 mmc@12210000 { 310 status = "disabled"; 311 }; 312 313 mmc@12220000 { 314 samsung,bus-width = <4>; 315 samsung,timing = <1 2 3>; 316 samsung,removable = <1>; 317 }; 318 319 mmc@12230000 { 320 status = "disabled"; 321 }; 322 323 ehci@12110000 { 324 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>; 325 status = "okay"; 326 }; 327 328 xhci@12000000 { 329 samsung,vbus-gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>; 330 }; 331 332 tmu@10060000 { 333 samsung,min-temp = <25>; 334 samsung,max-temp = <125>; 335 samsung,start-warning = <95>; 336 samsung,start-tripping = <105>; 337 samsung,hw-tripping = <110>; 338 samsung,efuse-min-value = <40>; 339 samsung,efuse-value = <55>; 340 samsung,efuse-max-value = <100>; 341 samsung,slope = <274761730>; 342 samsung,dc-value = <25>; 343 }; 344 345 fimd@14400000 { 346 samsung,vl-freq = <60>; 347 samsung,vl-col = <1366>; 348 samsung,vl-row = <768>; 349 samsung,vl-width = <1366>; 350 samsung,vl-height = <768>; 351 352 samsung,vl-clkp; 353 samsung,vl-dp; 354 samsung,vl-hsp; 355 samsung,vl-vsp; 356 357 samsung,vl-bpix = <4>; 358 359 samsung,vl-hspw = <32>; 360 samsung,vl-hbpd = <80>; 361 samsung,vl-hfpd = <48>; 362 samsung,vl-vspw = <5>; 363 samsung,vl-vbpd = <14>; 364 samsung,vl-vfpd = <3>; 365 samsung,vl-cmd-allow-len = <0xf>; 366 367 samsung,winid = <0>; 368 samsung,interface-mode = <1>; 369 samsung,dp-enabled = <1>; 370 samsung,dual-lcd-enabled = <0>; 371 }; 372 373 dp@145b0000 { 374 samsung,lt-status = <0>; 375 376 samsung,master-mode = <0>; 377 samsung,bist-mode = <0>; 378 samsung,bist-pattern = <0>; 379 samsung,h-sync-polarity = <0>; 380 samsung,v-sync-polarity = <0>; 381 samsung,interlaced = <0>; 382 samsung,color-space = <0>; 383 samsung,dynamic-range = <0>; 384 samsung,ycbcr-coeff = <0>; 385 samsung,color-depth = <1>; 386 samsung,hpd-gpio = <&gpx0 7 GPIO_ACTIVE_HIGH>; 387 388 ports { 389 port@0 { 390 dp_out: endpoint { 391 remote-endpoint = <&bridge_in>; 392 }; 393 }; 394 }; 395 }; 396 397}; 398 399&i2c_0 { 400 status = "okay"; 401 samsung,i2c-sda-delay = <100>; 402 samsung,i2c-max-bus-freq = <378000>; 403 404 max77686: max77686@09 { 405 compatible = "maxim,max77686"; 406 interrupt-parent = <&gpx3>; 407 interrupts = <2 IRQ_TYPE_NONE>; 408 wakeup-source; 409 reg = <0x09>; 410 #clock-cells = <1>; 411 412 voltage-regulators { 413 ldo1_reg: LDO1 { 414 regulator-name = "P1.0V_LDO_OUT1"; 415 regulator-min-microvolt = <1000000>; 416 regulator-max-microvolt = <1000000>; 417 regulator-always-on; 418 }; 419 420 ldo2_reg: LDO2 { 421 regulator-name = "P1.8V_LDO_OUT2"; 422 regulator-min-microvolt = <1800000>; 423 regulator-max-microvolt = <1800000>; 424 regulator-always-on; 425 }; 426 427 ldo3_reg: LDO3 { 428 regulator-name = "P1.8V_LDO_OUT3"; 429 regulator-min-microvolt = <1800000>; 430 regulator-max-microvolt = <1800000>; 431 regulator-always-on; 432 }; 433 434 ldo7_reg: LDO7 { 435 regulator-name = "P1.1V_LDO_OUT7"; 436 regulator-min-microvolt = <1100000>; 437 regulator-max-microvolt = <1100000>; 438 regulator-always-on; 439 }; 440 441 ldo8_reg: LDO8 { 442 regulator-name = "P1.0V_LDO_OUT8"; 443 regulator-min-microvolt = <1000000>; 444 regulator-max-microvolt = <1000000>; 445 regulator-always-on; 446 }; 447 448 ldo10_reg: LDO10 { 449 regulator-name = "P1.8V_LDO_OUT10"; 450 regulator-min-microvolt = <1800000>; 451 regulator-max-microvolt = <1800000>; 452 regulator-always-on; 453 }; 454 455 ldo12_reg: LDO12 { 456 regulator-name = "P3.0V_LDO_OUT12"; 457 regulator-min-microvolt = <3000000>; 458 regulator-max-microvolt = <3000000>; 459 regulator-always-on; 460 }; 461 462 ldo14_reg: LDO14 { 463 regulator-name = "P1.8V_LDO_OUT14"; 464 regulator-min-microvolt = <1800000>; 465 regulator-max-microvolt = <1800000>; 466 regulator-always-on; 467 }; 468 469 ldo15_reg: LDO15 { 470 regulator-name = "P1.0V_LDO_OUT15"; 471 regulator-min-microvolt = <1000000>; 472 regulator-max-microvolt = <1000000>; 473 regulator-always-on; 474 }; 475 476 ldo16_reg: LDO16 { 477 regulator-name = "P1.8V_LDO_OUT16"; 478 regulator-min-microvolt = <1800000>; 479 regulator-max-microvolt = <1800000>; 480 regulator-always-on; 481 }; 482 483 ldo17_reg: LDO17 { 484 regulator-name = "vdd_mydp"; 485 regulator-min-microvolt = <1200000>; 486 regulator-max-microvolt = <1200000>; 487 }; 488 489 buck1_reg: BUCK1 { 490 regulator-name = "vdd_mif"; 491 regulator-min-microvolt = <950000>; 492 regulator-max-microvolt = <1300000>; 493 regulator-always-on; 494 regulator-boot-on; 495 }; 496 497 buck2_reg: BUCK2 { 498 regulator-name = "vdd_arm"; 499 regulator-min-microvolt = <850000>; 500 regulator-max-microvolt = <1350000>; 501 regulator-always-on; 502 regulator-boot-on; 503 }; 504 505 buck3_reg: BUCK3 { 506 regulator-name = "vdd_int"; 507 regulator-min-microvolt = <900000>; 508 regulator-max-microvolt = <1200000>; 509 regulator-always-on; 510 regulator-boot-on; 511 }; 512 513 buck4_reg: BUCK4 { 514 regulator-name = "vdd_g3d"; 515 regulator-min-microvolt = <850000>; 516 regulator-max-microvolt = <1300000>; 517 regulator-always-on; 518 regulator-boot-on; 519 }; 520 521 buck5_reg: BUCK5 { 522 regulator-name = "P1.8V_BUCK_OUT5"; 523 regulator-min-microvolt = <1800000>; 524 regulator-max-microvolt = <1800000>; 525 regulator-always-on; 526 regulator-boot-on; 527 }; 528 529 buck6_reg: BUCK6 { 530 regulator-name = "P1.35V_BUCK_OUT6"; 531 regulator-min-microvolt = <1350000>; 532 regulator-max-microvolt = <1350000>; 533 regulator-always-on; 534 }; 535 536 buck7_reg: BUCK7 { 537 regulator-name = "P2.0V_BUCK_OUT7"; 538 regulator-min-microvolt = <2000000>; 539 regulator-max-microvolt = <2000000>; 540 regulator-always-on; 541 }; 542 543 buck8_reg: BUCK8 { 544 regulator-name = "P2.85V_BUCK_OUT8"; 545 regulator-min-microvolt = <2850000>; 546 regulator-max-microvolt = <2850000>; 547 regulator-always-on; 548 }; 549 }; 550 }; 551}; 552 553#include "cros-ec-keyboard.dtsi" 554