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