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