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