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