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