Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Google Peach Pi Rev 10+ board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2014 Google, Inc |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | #include <dt-bindings/input/input.h> |
| 13 | #include <dt-bindings/gpio/gpio.h> |
Javier Martinez Canillas | 064ac05 | 2014-09-14 00:45:15 +0900 | [diff] [blame] | 14 | #include <dt-bindings/interrupt-controller/irq.h> |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 15 | #include "exynos5800.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Google Peach Pi Rev 10+"; |
| 19 | |
| 20 | compatible = "google,pi-rev16", |
| 21 | "google,pi-rev15", "google,pi-rev14", |
| 22 | "google,pi-rev13", "google,pi-rev12", |
| 23 | "google,pi-rev11", "google,pi-rev10", |
| 24 | "google,pi", "google,peach", "samsung,exynos5800", |
| 25 | "samsung,exynos5"; |
| 26 | |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 27 | aliases { |
| 28 | /* Assign 20 so we don't get confused w/ builtin ones */ |
| 29 | i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel"; |
| 30 | }; |
| 31 | |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 32 | backlight { |
| 33 | compatible = "pwm-backlight"; |
| 34 | pwms = <&pwm 0 1000000 0>; |
| 35 | brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; |
| 36 | default-brightness-level = <7>; |
| 37 | pinctrl-0 = <&pwm0_out>; |
| 38 | pinctrl-names = "default"; |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | fixed-rate-clocks { |
| 42 | oscclk { |
| 43 | compatible = "samsung,exynos5420-oscclk"; |
| 44 | clock-frequency = <24000000>; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | gpio-keys { |
| 49 | compatible = "gpio-keys"; |
| 50 | |
| 51 | pinctrl-names = "default"; |
| 52 | pinctrl-0 = <&power_key_irq>; |
| 53 | |
| 54 | power { |
| 55 | label = "Power"; |
| 56 | gpios = <&gpx1 2 GPIO_ACTIVE_LOW>; |
| 57 | linux,code = <KEY_POWER>; |
| 58 | gpio-key,wakeup; |
| 59 | }; |
| 60 | }; |
| 61 | |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 62 | memory { |
| 63 | reg = <0x20000000 0x80000000>; |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 64 | }; |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 65 | |
Tushar Behera | db91fb2 | 2014-06-21 21:50:14 +0900 | [diff] [blame] | 66 | sound { |
| 67 | compatible = "google,snow-audio-max98091"; |
| 68 | |
Tushar Behera | a8d80b6 | 2014-07-08 08:20:08 +0900 | [diff] [blame] | 69 | samsung,model = "Peach-Pi-I2S-MAX98091"; |
Tushar Behera | db91fb2 | 2014-06-21 21:50:14 +0900 | [diff] [blame] | 70 | samsung,i2s-controller = <&i2s0>; |
| 71 | samsung,audio-codec = <&max98091>; |
| 72 | }; |
| 73 | |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 74 | usb300_vbus_reg: regulator-usb300 { |
| 75 | compatible = "regulator-fixed"; |
| 76 | regulator-name = "P5.0V_USB3CON0"; |
| 77 | regulator-min-microvolt = <5000000>; |
| 78 | regulator-max-microvolt = <5000000>; |
| 79 | gpio = <&gph0 0 0>; |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&usb300_vbus_en>; |
| 82 | enable-active-high; |
| 83 | }; |
| 84 | |
| 85 | usb301_vbus_reg: regulator-usb301 { |
| 86 | compatible = "regulator-fixed"; |
| 87 | regulator-name = "P5.0V_USB3CON1"; |
| 88 | regulator-min-microvolt = <5000000>; |
| 89 | regulator-max-microvolt = <5000000>; |
| 90 | gpio = <&gph0 1 0>; |
| 91 | pinctrl-names = "default"; |
| 92 | pinctrl-0 = <&usb301_vbus_en>; |
| 93 | enable-active-high; |
| 94 | }; |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 95 | |
| 96 | vbat: fixed-regulator { |
| 97 | compatible = "regulator-fixed"; |
| 98 | regulator-name = "vbat-supply"; |
| 99 | regulator-boot-on; |
| 100 | regulator-always-on; |
| 101 | }; |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 102 | }; |
| 103 | |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 104 | &dp { |
| 105 | status = "okay"; |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&dp_hpd_gpio>; |
| 108 | samsung,color-space = <0>; |
| 109 | samsung,dynamic-range = <0>; |
| 110 | samsung,ycbcr-coeff = <0>; |
| 111 | samsung,color-depth = <1>; |
| 112 | samsung,link-rate = <0x0a>; |
| 113 | samsung,lane-count = <2>; |
| 114 | samsung,hpd-gpio = <&gpx2 6 0>; |
| 115 | |
| 116 | display-timings { |
| 117 | native-mode = <&timing1>; |
| 118 | |
| 119 | timing1: timing@1 { |
| 120 | clock-frequency = <150660000>; |
| 121 | hactive = <1920>; |
| 122 | vactive = <1080>; |
| 123 | hfront-porch = <60>; |
| 124 | hback-porch = <172>; |
| 125 | hsync-len = <80>; |
| 126 | vback-porch = <25>; |
| 127 | vfront-porch = <10>; |
| 128 | vsync-len = <10>; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | &fimd { |
| 134 | status = "okay"; |
| 135 | samsung,invert-vclk; |
| 136 | }; |
| 137 | |
| 138 | &hdmi { |
| 139 | status = "okay"; |
| 140 | hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; |
| 141 | pinctrl-names = "default"; |
| 142 | pinctrl-0 = <&hdmi_hpd_irq>; |
| 143 | ddc = <&i2c_2>; |
Rahul Sharma | 1dcd48c | 2014-09-14 00:45:19 +0900 | [diff] [blame^] | 144 | |
| 145 | hdmi-en-supply = <&tps65090_fet7>; |
| 146 | vdd-supply = <&ldo8_reg>; |
| 147 | vdd_osc-supply = <&ldo10_reg>; |
| 148 | vdd_pll-supply = <&ldo8_reg>; |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 149 | }; |
| 150 | |
Javier Martinez Canillas | 064ac05 | 2014-09-14 00:45:15 +0900 | [diff] [blame] | 151 | &hsi2c_4 { |
| 152 | status = "okay"; |
| 153 | clock-frequency = <400000>; |
| 154 | |
| 155 | max77802-pmic@9 { |
| 156 | compatible = "maxim,max77802"; |
| 157 | interrupt-parent = <&gpx3>; |
| 158 | interrupts = <1 IRQ_TYPE_NONE>; |
| 159 | pinctrl-names = "default"; |
| 160 | pinctrl-0 = <&max77802_irq>, <&pmic_selb>, |
| 161 | <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>; |
| 162 | wakeup-source; |
| 163 | reg = <0x9>; |
| 164 | #clock-cells = <1>; |
| 165 | |
| 166 | inb1-supply = <&tps65090_dcdc2>; |
| 167 | inb2-supply = <&tps65090_dcdc1>; |
| 168 | inb3-supply = <&tps65090_dcdc2>; |
| 169 | inb4-supply = <&tps65090_dcdc2>; |
| 170 | inb5-supply = <&tps65090_dcdc1>; |
| 171 | inb6-supply = <&tps65090_dcdc2>; |
| 172 | inb7-supply = <&tps65090_dcdc1>; |
| 173 | inb8-supply = <&tps65090_dcdc1>; |
| 174 | inb9-supply = <&tps65090_dcdc1>; |
| 175 | inb10-supply = <&tps65090_dcdc1>; |
| 176 | |
| 177 | inl1-supply = <&buck5_reg>; |
| 178 | inl2-supply = <&buck7_reg>; |
| 179 | inl3-supply = <&buck9_reg>; |
| 180 | inl4-supply = <&buck9_reg>; |
| 181 | inl5-supply = <&buck9_reg>; |
| 182 | inl6-supply = <&tps65090_dcdc2>; |
| 183 | inl7-supply = <&buck9_reg>; |
| 184 | inl9-supply = <&tps65090_dcdc2>; |
| 185 | inl10-supply = <&buck7_reg>; |
| 186 | |
| 187 | regulators { |
| 188 | buck1_reg: BUCK1 { |
| 189 | regulator-name = "vdd_mif"; |
| 190 | regulator-min-microvolt = <800000>; |
| 191 | regulator-max-microvolt = <1300000>; |
| 192 | regulator-always-on; |
| 193 | regulator-boot-on; |
| 194 | regulator-ramp-delay = <12500>; |
| 195 | }; |
| 196 | |
| 197 | buck2_reg: BUCK2 { |
| 198 | regulator-name = "vdd_arm"; |
| 199 | regulator-min-microvolt = <800000>; |
| 200 | regulator-max-microvolt = <1500000>; |
| 201 | regulator-always-on; |
| 202 | regulator-boot-on; |
| 203 | regulator-ramp-delay = <12500>; |
| 204 | }; |
| 205 | |
| 206 | buck3_reg: BUCK3 { |
| 207 | regulator-name = "vdd_int"; |
| 208 | regulator-min-microvolt = <800000>; |
| 209 | regulator-max-microvolt = <1400000>; |
| 210 | regulator-always-on; |
| 211 | regulator-boot-on; |
| 212 | regulator-ramp-delay = <12500>; |
| 213 | }; |
| 214 | |
| 215 | buck4_reg: BUCK4 { |
| 216 | regulator-name = "vdd_g3d"; |
| 217 | regulator-min-microvolt = <700000>; |
| 218 | regulator-max-microvolt = <1400000>; |
| 219 | regulator-always-on; |
| 220 | regulator-boot-on; |
| 221 | regulator-ramp-delay = <12500>; |
| 222 | }; |
| 223 | |
| 224 | buck5_reg: BUCK5 { |
| 225 | regulator-name = "vdd_1v2"; |
| 226 | regulator-min-microvolt = <1200000>; |
| 227 | regulator-max-microvolt = <1200000>; |
| 228 | regulator-always-on; |
| 229 | regulator-boot-on; |
| 230 | }; |
| 231 | |
| 232 | buck6_reg: BUCK6 { |
| 233 | regulator-name = "vdd_kfc"; |
| 234 | regulator-min-microvolt = <800000>; |
| 235 | regulator-max-microvolt = <1500000>; |
| 236 | regulator-always-on; |
| 237 | regulator-boot-on; |
| 238 | regulator-ramp-delay = <12500>; |
| 239 | }; |
| 240 | |
| 241 | buck7_reg: BUCK7 { |
| 242 | regulator-name = "vdd_1v35"; |
| 243 | regulator-min-microvolt = <1350000>; |
| 244 | regulator-max-microvolt = <1350000>; |
| 245 | regulator-always-on; |
| 246 | regulator-boot-on; |
| 247 | }; |
| 248 | |
| 249 | buck8_reg: BUCK8 { |
| 250 | regulator-name = "vdd_emmc"; |
| 251 | regulator-min-microvolt = <2850000>; |
| 252 | regulator-max-microvolt = <2850000>; |
| 253 | regulator-always-on; |
| 254 | regulator-boot-on; |
| 255 | }; |
| 256 | |
| 257 | buck9_reg: BUCK9 { |
| 258 | regulator-name = "vdd_2v"; |
| 259 | regulator-min-microvolt = <2000000>; |
| 260 | regulator-max-microvolt = <2000000>; |
| 261 | regulator-always-on; |
| 262 | regulator-boot-on; |
| 263 | }; |
| 264 | |
| 265 | buck10_reg: BUCK10 { |
| 266 | regulator-name = "vdd_1v8"; |
| 267 | regulator-min-microvolt = <1800000>; |
| 268 | regulator-max-microvolt = <1800000>; |
| 269 | regulator-always-on; |
| 270 | regulator-boot-on; |
| 271 | }; |
| 272 | |
| 273 | ldo1_reg: LDO1 { |
| 274 | regulator-name = "vdd_1v0"; |
| 275 | regulator-min-microvolt = <1000000>; |
| 276 | regulator-max-microvolt = <1000000>; |
| 277 | regulator-always-on; |
| 278 | }; |
| 279 | |
| 280 | ldo2_reg: LDO2 { |
| 281 | regulator-name = "vdd_1v2_2"; |
| 282 | regulator-min-microvolt = <1200000>; |
| 283 | regulator-max-microvolt = <1200000>; |
| 284 | }; |
| 285 | |
| 286 | ldo3_reg: LDO3 { |
| 287 | regulator-name = "vdd_1v8_3"; |
| 288 | regulator-min-microvolt = <1800000>; |
| 289 | regulator-max-microvolt = <1800000>; |
| 290 | regulator-always-on; |
| 291 | }; |
| 292 | |
| 293 | vqmmc_sdcard: ldo4_reg: LDO4 { |
| 294 | regulator-name = "vdd_sd"; |
| 295 | regulator-min-microvolt = <1800000>; |
| 296 | regulator-max-microvolt = <2800000>; |
| 297 | regulator-always-on; |
| 298 | }; |
| 299 | |
| 300 | ldo5_reg: LDO5 { |
| 301 | regulator-name = "vdd_1v8_5"; |
| 302 | regulator-min-microvolt = <1800000>; |
| 303 | regulator-max-microvolt = <1800000>; |
| 304 | regulator-always-on; |
| 305 | }; |
| 306 | |
| 307 | ldo6_reg: LDO6 { |
| 308 | regulator-name = "vdd_1v8_6"; |
| 309 | regulator-min-microvolt = <1800000>; |
| 310 | regulator-max-microvolt = <1800000>; |
| 311 | regulator-always-on; |
| 312 | }; |
| 313 | |
| 314 | ldo7_reg: LDO7 { |
| 315 | regulator-name = "vdd_1v8_7"; |
| 316 | regulator-min-microvolt = <1800000>; |
| 317 | regulator-max-microvolt = <1800000>; |
| 318 | }; |
| 319 | |
| 320 | ldo8_reg: LDO8 { |
| 321 | regulator-name = "vdd_ldo8"; |
| 322 | regulator-min-microvolt = <1000000>; |
| 323 | regulator-max-microvolt = <1000000>; |
| 324 | regulator-always-on; |
| 325 | }; |
| 326 | |
| 327 | ldo9_reg: LDO9 { |
| 328 | regulator-name = "vdd_ldo9"; |
| 329 | regulator-min-microvolt = <1800000>; |
| 330 | regulator-max-microvolt = <1800000>; |
| 331 | regulator-always-on; |
| 332 | }; |
| 333 | |
| 334 | ldo10_reg: LDO10 { |
| 335 | regulator-name = "vdd_ldo10"; |
| 336 | regulator-min-microvolt = <1800000>; |
| 337 | regulator-max-microvolt = <1800000>; |
| 338 | regulator-always-on; |
| 339 | }; |
| 340 | |
| 341 | ldo11_reg: LDO11 { |
| 342 | regulator-name = "vdd_ldo11"; |
| 343 | regulator-min-microvolt = <1800000>; |
| 344 | regulator-max-microvolt = <1800000>; |
| 345 | regulator-always-on; |
| 346 | }; |
| 347 | |
| 348 | ldo12_reg: LDO12 { |
| 349 | regulator-name = "vdd_ldo12"; |
| 350 | regulator-min-microvolt = <3000000>; |
| 351 | regulator-max-microvolt = <3000000>; |
| 352 | regulator-always-on; |
| 353 | }; |
| 354 | |
| 355 | ldo13_reg: LDO13 { |
| 356 | regulator-name = "vdd_ldo13"; |
| 357 | regulator-min-microvolt = <1800000>; |
| 358 | regulator-max-microvolt = <1800000>; |
| 359 | regulator-always-on; |
| 360 | }; |
| 361 | |
| 362 | ldo14_reg: LDO14 { |
| 363 | regulator-name = "vdd_ldo14"; |
| 364 | regulator-min-microvolt = <1800000>; |
| 365 | regulator-max-microvolt = <1800000>; |
| 366 | regulator-always-on; |
| 367 | }; |
| 368 | |
| 369 | ldo15_reg: LDO15 { |
| 370 | regulator-name = "vdd_ldo15"; |
| 371 | regulator-min-microvolt = <1000000>; |
| 372 | regulator-max-microvolt = <1000000>; |
| 373 | regulator-always-on; |
| 374 | }; |
| 375 | |
| 376 | ldo17_reg: LDO17 { |
| 377 | regulator-name = "vdd_g3ds"; |
| 378 | regulator-min-microvolt = <900000>; |
| 379 | regulator-max-microvolt = <1400000>; |
| 380 | regulator-always-on; |
| 381 | }; |
| 382 | |
| 383 | ldo18_reg: LDO18 { |
| 384 | regulator-name = "ldo_18"; |
| 385 | regulator-min-microvolt = <1800000>; |
| 386 | regulator-max-microvolt = <1800000>; |
| 387 | }; |
| 388 | |
| 389 | ldo19_reg: LDO19 { |
| 390 | regulator-name = "ldo_19"; |
| 391 | regulator-min-microvolt = <1800000>; |
| 392 | regulator-max-microvolt = <1800000>; |
| 393 | }; |
| 394 | |
| 395 | ldo20_reg: LDO20 { |
| 396 | regulator-name = "ldo_20"; |
| 397 | regulator-min-microvolt = <1800000>; |
| 398 | regulator-max-microvolt = <1800000>; |
| 399 | regulator-always-on; |
| 400 | }; |
| 401 | |
| 402 | ldo21_reg: LDO21 { |
| 403 | regulator-name = "ldo_21"; |
| 404 | regulator-min-microvolt = <2800000>; |
| 405 | regulator-max-microvolt = <2800000>; |
| 406 | }; |
| 407 | |
| 408 | ldo23_reg: LDO23 { |
| 409 | regulator-name = "ldo_23"; |
| 410 | regulator-min-microvolt = <3300000>; |
| 411 | regulator-max-microvolt = <3300000>; |
| 412 | }; |
| 413 | ldo24_reg: LDO24 { |
| 414 | regulator-name = "ldo_24"; |
| 415 | regulator-min-microvolt = <2800000>; |
| 416 | regulator-max-microvolt = <2800000>; |
| 417 | }; |
| 418 | |
| 419 | ldo25_reg: LDO25 { |
| 420 | regulator-name = "ldo_25"; |
| 421 | regulator-min-microvolt = <3300000>; |
| 422 | regulator-max-microvolt = <3300000>; |
| 423 | }; |
| 424 | |
| 425 | ldo26_reg: LDO26 { |
| 426 | regulator-name = "ldo_26"; |
| 427 | regulator-min-microvolt = <1200000>; |
| 428 | regulator-max-microvolt = <1200000>; |
| 429 | }; |
| 430 | |
| 431 | ldo27_reg: LDO27 { |
| 432 | regulator-name = "ldo_27"; |
| 433 | regulator-min-microvolt = <1200000>; |
| 434 | regulator-max-microvolt = <1200000>; |
| 435 | }; |
| 436 | |
| 437 | ldo28_reg: LDO28 { |
| 438 | regulator-name = "ldo_28"; |
| 439 | regulator-min-microvolt = <1800000>; |
| 440 | regulator-max-microvolt = <1800000>; |
| 441 | }; |
| 442 | |
| 443 | ldo29_reg: LDO29 { |
| 444 | regulator-name = "ldo_29"; |
| 445 | regulator-min-microvolt = <1800000>; |
| 446 | regulator-max-microvolt = <1800000>; |
| 447 | }; |
| 448 | |
| 449 | ldo30_reg: LDO30 { |
| 450 | regulator-name = "vdd_mifs"; |
| 451 | regulator-min-microvolt = <1000000>; |
| 452 | regulator-max-microvolt = <1000000>; |
| 453 | regulator-always-on; |
| 454 | }; |
| 455 | |
| 456 | ldo32_reg: LDO32 { |
| 457 | regulator-name = "ldo_32"; |
| 458 | regulator-min-microvolt = <3000000>; |
| 459 | regulator-max-microvolt = <3000000>; |
| 460 | }; |
| 461 | |
| 462 | ldo33_reg: LDO33 { |
| 463 | regulator-name = "ldo_33"; |
| 464 | regulator-min-microvolt = <2800000>; |
| 465 | regulator-max-microvolt = <2800000>; |
| 466 | }; |
| 467 | |
| 468 | ldo34_reg: LDO34 { |
| 469 | regulator-name = "ldo_34"; |
| 470 | regulator-min-microvolt = <3000000>; |
| 471 | regulator-max-microvolt = <3000000>; |
| 472 | }; |
| 473 | |
| 474 | ldo35_reg: LDO35 { |
| 475 | regulator-name = "ldo_35"; |
| 476 | regulator-min-microvolt = <1200000>; |
| 477 | regulator-max-microvolt = <1200000>; |
| 478 | }; |
| 479 | }; |
| 480 | }; |
| 481 | }; |
| 482 | |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 483 | &hsi2c_7 { |
| 484 | status = "okay"; |
| 485 | |
| 486 | max98091: codec@10 { |
| 487 | compatible = "maxim,max98091"; |
| 488 | reg = <0x10>; |
| 489 | interrupts = <2 0>; |
| 490 | interrupt-parent = <&gpx0>; |
| 491 | pinctrl-names = "default"; |
| 492 | pinctrl-0 = <&max98091_irq>; |
| 493 | }; |
| 494 | }; |
| 495 | |
| 496 | &hsi2c_9 { |
| 497 | status = "okay"; |
| 498 | clock-frequency = <400000>; |
| 499 | |
| 500 | tpm@20 { |
| 501 | compatible = "infineon,slb9645tt"; |
| 502 | reg = <0x20>; |
| 503 | |
| 504 | /* Unused irq; but still need to configure the pins */ |
| 505 | pinctrl-names = "default"; |
| 506 | pinctrl-0 = <&tpm_irq>; |
| 507 | }; |
| 508 | }; |
| 509 | |
| 510 | &i2c_2 { |
| 511 | status = "okay"; |
| 512 | samsung,i2c-sda-delay = <100>; |
| 513 | samsung,i2c-max-bus-freq = <66000>; |
| 514 | samsung,i2c-slave-addr = <0x50>; |
| 515 | }; |
| 516 | |
| 517 | &i2s0 { |
| 518 | status = "okay"; |
| 519 | }; |
| 520 | |
| 521 | &mmc_0 { |
| 522 | status = "okay"; |
| 523 | num-slots = <1>; |
| 524 | broken-cd; |
| 525 | caps2-mmc-hs200-1_8v; |
Jaehoon Chung | aaa25a5 | 2014-08-18 11:55:32 -0500 | [diff] [blame] | 526 | cap-mmc-highspeed; |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 527 | non-removable; |
| 528 | card-detect-delay = <200>; |
| 529 | clock-frequency = <400000000>; |
| 530 | samsung,dw-mshc-ciu-div = <3>; |
| 531 | samsung,dw-mshc-sdr-timing = <0 4>; |
| 532 | samsung,dw-mshc-ddr-timing = <0 2>; |
| 533 | pinctrl-names = "default"; |
| 534 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; |
Jaehoon Chung | aaa25a5 | 2014-08-18 11:55:32 -0500 | [diff] [blame] | 535 | bus-width = <8>; |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 536 | }; |
| 537 | |
| 538 | &mmc_2 { |
| 539 | status = "okay"; |
| 540 | num-slots = <1>; |
Jaehoon Chung | aaa25a5 | 2014-08-18 11:55:32 -0500 | [diff] [blame] | 541 | cap-sd-highspeed; |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 542 | card-detect-delay = <200>; |
| 543 | clock-frequency = <400000000>; |
| 544 | samsung,dw-mshc-ciu-div = <3>; |
| 545 | samsung,dw-mshc-sdr-timing = <2 3>; |
| 546 | samsung,dw-mshc-ddr-timing = <1 2>; |
| 547 | pinctrl-names = "default"; |
| 548 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; |
Jaehoon Chung | aaa25a5 | 2014-08-18 11:55:32 -0500 | [diff] [blame] | 549 | bus-width = <4>; |
Tushar Behera | 522c8ff | 2014-06-21 21:50:17 +0900 | [diff] [blame] | 550 | }; |
| 551 | |
| 552 | |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 553 | &pinctrl_0 { |
Vikas Sajjan | 73a9bb2 | 2014-07-16 02:38:44 +0900 | [diff] [blame] | 554 | pinctrl-names = "default"; |
| 555 | pinctrl-0 = <&mask_tpm_reset>; |
| 556 | |
Tushar Behera | db91fb2 | 2014-06-21 21:50:14 +0900 | [diff] [blame] | 557 | max98091_irq: max98091-irq { |
| 558 | samsung,pins = "gpx0-2"; |
| 559 | samsung,pin-function = <0>; |
| 560 | samsung,pin-pud = <0>; |
| 561 | samsung,pin-drv = <0>; |
| 562 | }; |
| 563 | |
Vikas Sajjan | 73a9bb2 | 2014-07-16 02:38:44 +0900 | [diff] [blame] | 564 | /* We need GPX0_6 to be low at sleep time; just keep it low always */ |
| 565 | mask_tpm_reset: mask-tpm-reset { |
| 566 | samsung,pins = "gpx0-6"; |
| 567 | samsung,pin-function = <1>; |
| 568 | samsung,pin-pud = <0>; |
| 569 | samsung,pin-drv = <0>; |
| 570 | samsung,pin-val = <0>; |
| 571 | }; |
| 572 | |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 573 | tpm_irq: tpm-irq { |
| 574 | samsung,pins = "gpx1-0"; |
| 575 | samsung,pin-function = <0>; |
| 576 | samsung,pin-pud = <0>; |
| 577 | samsung,pin-drv = <0>; |
| 578 | }; |
| 579 | |
| 580 | power_key_irq: power-key-irq { |
| 581 | samsung,pins = "gpx1-2"; |
| 582 | samsung,pin-function = <0>; |
| 583 | samsung,pin-pud = <0>; |
| 584 | samsung,pin-drv = <0>; |
| 585 | }; |
Rahul Sharma | 6a7da0d | 2014-05-16 05:06:34 +0900 | [diff] [blame] | 586 | |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 587 | ec_irq: ec-irq { |
| 588 | samsung,pins = "gpx1-5"; |
| 589 | samsung,pin-function = <0>; |
| 590 | samsung,pin-pud = <0>; |
| 591 | samsung,pin-drv = <0>; |
| 592 | }; |
| 593 | |
| 594 | tps65090_irq: tps65090-irq { |
| 595 | samsung,pins = "gpx2-5"; |
| 596 | samsung,pin-function = <0>; |
| 597 | samsung,pin-pud = <0>; |
| 598 | samsung,pin-drv = <0>; |
| 599 | }; |
| 600 | |
Rahul Sharma | 8b2f837 | 2014-05-17 07:51:33 +0900 | [diff] [blame] | 601 | dp_hpd_gpio: dp_hpd_gpio { |
| 602 | samsung,pins = "gpx2-6"; |
| 603 | samsung,pin-function = <0>; |
| 604 | samsung,pin-pud = <3>; |
| 605 | samsung,pin-drv = <0>; |
| 606 | }; |
| 607 | |
Javier Martinez Canillas | 064ac05 | 2014-09-14 00:45:15 +0900 | [diff] [blame] | 608 | max77802_irq: max77802-irq { |
| 609 | samsung,pins = "gpx3-1"; |
| 610 | samsung,pin-function = <0>; |
| 611 | samsung,pin-pud = <0>; |
| 612 | samsung,pin-drv = <0>; |
| 613 | }; |
| 614 | |
Rahul Sharma | 6a7da0d | 2014-05-16 05:06:34 +0900 | [diff] [blame] | 615 | hdmi_hpd_irq: hdmi-hpd-irq { |
| 616 | samsung,pins = "gpx3-7"; |
| 617 | samsung,pin-function = <0>; |
| 618 | samsung,pin-pud = <1>; |
| 619 | samsung,pin-drv = <0>; |
| 620 | }; |
Javier Martinez Canillas | 064ac05 | 2014-09-14 00:45:15 +0900 | [diff] [blame] | 621 | |
| 622 | pmic_dvs_1: pmic-dvs-1 { |
| 623 | samsung,pins = "gpy7-6"; |
| 624 | samsung,pin-function = <1>; |
| 625 | samsung,pin-pud = <0>; |
| 626 | samsung,pin-drv = <0>; |
| 627 | }; |
| 628 | }; |
| 629 | |
| 630 | &pinctrl_2 { |
| 631 | pmic_dvs_2: pmic-dvs-2 { |
| 632 | samsung,pins = "gpj4-2"; |
| 633 | samsung,pin-function = <1>; |
| 634 | samsung,pin-pud = <0>; |
| 635 | samsung,pin-drv = <0>; |
| 636 | }; |
| 637 | |
| 638 | pmic_dvs_3: pmic-dvs-3 { |
| 639 | samsung,pins = "gpj4-3"; |
| 640 | samsung,pin-function = <1>; |
| 641 | samsung,pin-pud = <0>; |
| 642 | samsung,pin-drv = <0>; |
| 643 | }; |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 644 | }; |
| 645 | |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 646 | &pinctrl_3 { |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 647 | /* Drive SPI lines at x2 for better integrity */ |
| 648 | spi2-bus { |
| 649 | samsung,pin-drv = <2>; |
| 650 | }; |
| 651 | |
| 652 | /* Drive SPI chip select at x2 for better integrity */ |
| 653 | ec_spi_cs: ec-spi-cs { |
| 654 | samsung,pins = "gpb1-2"; |
| 655 | samsung,pin-function = <1>; |
| 656 | samsung,pin-pud = <0>; |
| 657 | samsung,pin-drv = <2>; |
| 658 | }; |
| 659 | |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 660 | usb300_vbus_en: usb300-vbus-en { |
| 661 | samsung,pins = "gph0-0"; |
| 662 | samsung,pin-function = <1>; |
| 663 | samsung,pin-pud = <0>; |
| 664 | samsung,pin-drv = <0>; |
| 665 | }; |
| 666 | |
| 667 | usb301_vbus_en: usb301-vbus-en { |
| 668 | samsung,pins = "gph0-1"; |
| 669 | samsung,pin-function = <1>; |
| 670 | samsung,pin-pud = <0>; |
| 671 | samsung,pin-drv = <0>; |
| 672 | }; |
Javier Martinez Canillas | 064ac05 | 2014-09-14 00:45:15 +0900 | [diff] [blame] | 673 | |
| 674 | pmic_selb: pmic-selb { |
| 675 | samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5", |
| 676 | "gph0-6"; |
| 677 | samsung,pin-function = <1>; |
| 678 | samsung,pin-pud = <0>; |
| 679 | samsung,pin-drv = <0>; |
| 680 | }; |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 681 | }; |
| 682 | |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 683 | &rtc { |
| 684 | status = "okay"; |
| 685 | }; |
| 686 | |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 687 | &spi_2 { |
| 688 | status = "okay"; |
| 689 | num-cs = <1>; |
| 690 | samsung,spi-src-clk = <0>; |
| 691 | cs-gpios = <&gpb1 2 0>; |
| 692 | |
| 693 | cros_ec: cros-ec@0 { |
| 694 | compatible = "google,cros-ec-spi"; |
| 695 | interrupt-parent = <&gpx1>; |
| 696 | interrupts = <5 0>; |
| 697 | pinctrl-names = "default"; |
| 698 | pinctrl-0 = <&ec_spi_cs &ec_irq>; |
| 699 | reg = <0>; |
| 700 | spi-max-frequency = <3125000>; |
| 701 | |
| 702 | controller-data { |
| 703 | samsung,spi-feedback-delay = <1>; |
| 704 | }; |
| 705 | |
| 706 | i2c-tunnel { |
| 707 | compatible = "google,cros-ec-i2c-tunnel"; |
| 708 | #address-cells = <1>; |
| 709 | #size-cells = <0>; |
| 710 | google,remote-bus = <0>; |
| 711 | |
| 712 | battery: sbs-battery@b { |
| 713 | compatible = "sbs,sbs-battery"; |
| 714 | reg = <0xb>; |
| 715 | sbs,poll-retry-count = <1>; |
| 716 | sbs,i2c-retry-count = <2>; |
| 717 | }; |
| 718 | |
| 719 | power-regulator@48 { |
| 720 | compatible = "ti,tps65090"; |
| 721 | reg = <0x48>; |
| 722 | |
| 723 | /* |
| 724 | * Config irq to disable internal pulls |
| 725 | * even though we run in polling mode. |
| 726 | */ |
| 727 | pinctrl-names = "default"; |
| 728 | pinctrl-0 = <&tps65090_irq>; |
| 729 | |
| 730 | vsys1-supply = <&vbat>; |
| 731 | vsys2-supply = <&vbat>; |
| 732 | vsys3-supply = <&vbat>; |
| 733 | infet1-supply = <&vbat>; |
Javier Martinez Canillas | a130548 | 2014-08-18 13:26:51 -0500 | [diff] [blame] | 734 | infet2-supply = <&tps65090_dcdc1>; |
| 735 | infet3-supply = <&tps65090_dcdc2>; |
| 736 | infet4-supply = <&tps65090_dcdc2>; |
| 737 | infet5-supply = <&tps65090_dcdc2>; |
| 738 | infet6-supply = <&tps65090_dcdc2>; |
| 739 | infet7-supply = <&tps65090_dcdc1>; |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 740 | vsys-l1-supply = <&vbat>; |
| 741 | vsys-l2-supply = <&vbat>; |
| 742 | |
| 743 | regulators { |
| 744 | tps65090_dcdc1: dcdc1 { |
| 745 | ti,enable-ext-control; |
| 746 | }; |
| 747 | tps65090_dcdc2: dcdc2 { |
| 748 | ti,enable-ext-control; |
| 749 | }; |
| 750 | tps65090_dcdc3: dcdc3 { |
| 751 | ti,enable-ext-control; |
| 752 | }; |
| 753 | tps65090_fet1: fet1 { |
| 754 | regulator-name = "vcd_led"; |
| 755 | }; |
| 756 | tps65090_fet2: fet2 { |
| 757 | regulator-name = "video_mid"; |
| 758 | regulator-always-on; |
| 759 | }; |
| 760 | tps65090_fet3: fet3 { |
| 761 | regulator-name = "wwan_r"; |
| 762 | regulator-always-on; |
| 763 | }; |
| 764 | tps65090_fet4: fet4 { |
| 765 | regulator-name = "sdcard"; |
| 766 | regulator-always-on; |
| 767 | }; |
| 768 | tps65090_fet5: fet5 { |
| 769 | regulator-name = "camout"; |
| 770 | }; |
| 771 | tps65090_fet6: fet6 { |
| 772 | regulator-name = "lcd_vdd"; |
| 773 | }; |
| 774 | tps65090_fet7: fet7 { |
| 775 | regulator-name = "video_mid_1a"; |
| 776 | regulator-always-on; |
| 777 | }; |
| 778 | tps65090_ldo1: ldo1 { |
| 779 | }; |
| 780 | tps65090_ldo2: ldo2 { |
| 781 | }; |
| 782 | }; |
| 783 | |
| 784 | charger { |
| 785 | compatible = "ti,tps65090-charger"; |
| 786 | }; |
| 787 | }; |
| 788 | }; |
| 789 | }; |
| 790 | }; |
| 791 | |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 792 | &uart_3 { |
| 793 | status = "okay"; |
| 794 | }; |
| 795 | |
Arun Kumar K | 2c3b655 | 2014-05-31 02:11:42 +0900 | [diff] [blame] | 796 | &usbdrd_phy0 { |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 797 | vbus-supply = <&usb300_vbus_reg>; |
| 798 | }; |
| 799 | |
Arun Kumar K | 2c3b655 | 2014-05-31 02:11:42 +0900 | [diff] [blame] | 800 | &usbdrd_phy1 { |
Vivek Gautam | d334315 | 2014-05-19 22:32:11 +0900 | [diff] [blame] | 801 | vbus-supply = <&usb301_vbus_reg>; |
| 802 | }; |
| 803 | |
Arun Kumar K | 853d269 | 2014-05-12 07:56:34 +0900 | [diff] [blame] | 804 | /* |
| 805 | * Use longest HW watchdog in SoC (32 seconds) since the hardware |
| 806 | * watchdog provides no debugging information (compared to soft/hard |
| 807 | * lockup detectors) and so should be last resort. |
| 808 | */ |
| 809 | &watchdog { |
| 810 | timeout-sec = <32>; |
| 811 | }; |
Tushar Behera | db91fb2 | 2014-06-21 21:50:14 +0900 | [diff] [blame] | 812 | |
Doug Anderson | 8060098b | 2014-07-19 04:09:15 +0900 | [diff] [blame] | 813 | #include "cros-ec-keyboard.dtsi" |