Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Samsung's Exynos3250 based Rinato board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2014 Samsung Electronics Co., Ltd. |
| 5 | * http://www.samsung.com |
| 6 | * |
| 7 | * Device tree source file for Samsung's Rinato board which is based on |
| 8 | * Samsung Exynos3250 SoC. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License version 2 as |
| 12 | * published by the Free Software Foundation. |
| 13 | */ |
| 14 | |
| 15 | /dts-v1/; |
| 16 | #include "exynos3250.dtsi" |
| 17 | #include <dt-bindings/input/input.h> |
Beomho Seo | 13b9b64 | 2015-01-12 18:00:15 +0900 | [diff] [blame] | 18 | #include <dt-bindings/gpio/gpio.h> |
Krzysztof Kozlowski | 9f80293 | 2015-03-30 17:15:52 +0200 | [diff] [blame] | 19 | #include <dt-bindings/clock/samsung,s2mps11.h> |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 20 | |
| 21 | / { |
| 22 | model = "Samsung Rinato board"; |
| 23 | compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3"; |
| 24 | |
| 25 | aliases { |
| 26 | i2c7 = &i2c_max77836; |
| 27 | }; |
| 28 | |
| 29 | memory { |
| 30 | reg = <0x40000000 0x1ff00000>; |
| 31 | }; |
| 32 | |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 33 | firmware@0205F000 { |
| 34 | compatible = "samsung,secure-firmware"; |
| 35 | reg = <0x0205F000 0x1000>; |
| 36 | }; |
| 37 | |
| 38 | gpio_keys { |
| 39 | compatible = "gpio-keys"; |
| 40 | |
| 41 | power_key { |
Beomho Seo | 13b9b64 | 2015-01-12 18:00:15 +0900 | [diff] [blame] | 42 | gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 43 | linux,code = <KEY_POWER>; |
| 44 | label = "power key"; |
| 45 | debounce-interval = <10>; |
| 46 | gpio-key,wakeup; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | i2c_max77836: i2c-gpio-0 { |
| 51 | compatible = "i2c-gpio"; |
Javier Martinez Canillas | de77e52 | 2015-10-08 07:39:57 +0900 | [diff] [blame^] | 52 | gpios = <&gpd0 2 GPIO_ACTIVE_HIGH>, <&gpd0 3 GPIO_ACTIVE_HIGH>; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
| 55 | |
| 56 | max77836: subpmic@25 { |
| 57 | compatible = "maxim,max77836"; |
| 58 | interrupt-parent = <&gpx1>; |
| 59 | interrupts = <5 0>; |
| 60 | reg = <0x25>; |
| 61 | wakeup; |
| 62 | |
| 63 | muic: max77836-muic { |
| 64 | compatible = "maxim,max77836-muic"; |
| 65 | }; |
| 66 | |
| 67 | regulators { |
| 68 | compatible = "maxim,max77836-regulator"; |
| 69 | safeout_reg: SAFEOUT { |
| 70 | regulator-name = "SAFEOUT"; |
| 71 | }; |
| 72 | |
| 73 | charger_reg: CHARGER { |
| 74 | regulator-name = "CHARGER"; |
| 75 | regulator-min-microamp = <45000>; |
| 76 | regulator-max-microamp = <475000>; |
| 77 | regulator-boot-on; |
| 78 | }; |
| 79 | |
| 80 | motor_reg: LDO1 { |
| 81 | regulator-name = "MOT_2.7V"; |
| 82 | regulator-min-microvolt = <1100000>; |
| 83 | regulator-max-microvolt = <2700000>; |
| 84 | }; |
| 85 | |
| 86 | LDO2 { |
| 87 | regulator-name = "UNUSED_LDO2"; |
| 88 | regulator-min-microvolt = <800000>; |
| 89 | regulator-max-microvolt = <3950000>; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | charger { |
| 94 | compatible = "maxim,max77836-charger"; |
| 95 | |
| 96 | maxim,constant-uvolt = <4350000>; |
| 97 | maxim,fast-charge-uamp = <225000>; |
| 98 | maxim,eoc-uamp = <7500>; |
| 99 | maxim,ovp-uvolt = <6500000>; |
| 100 | }; |
| 101 | }; |
| 102 | }; |
Jaewon Kim | c0276bc | 2015-01-24 13:13:58 +0900 | [diff] [blame] | 103 | |
| 104 | haptics { |
| 105 | compatible = "regulator-haptic"; |
| 106 | haptic-supply = <&motor_reg>; |
| 107 | min-microvolt = <1100000>; |
| 108 | max-microvolt = <2700000>; |
| 109 | }; |
Chanwoo Choi | 5600f8c | 2015-07-30 23:02:22 +0900 | [diff] [blame] | 110 | |
| 111 | thermal-zones { |
| 112 | cpu_thermal: cpu-thermal { |
| 113 | cooling-maps { |
| 114 | map0 { |
| 115 | /* Corresponds to 500MHz */ |
| 116 | cooling-device = <&cpu0 5 5>; |
| 117 | }; |
| 118 | map1 { |
| 119 | /* Corresponds to 200MHz */ |
| 120 | cooling-device = <&cpu0 8 8>; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | &adc { |
| 128 | vdd-supply = <&ldo3_reg>; |
| 129 | status = "okay"; |
| 130 | assigned-clocks = <&cmu CLK_SCLK_TSADC>; |
| 131 | assigned-clock-rates = <6000000>; |
| 132 | |
| 133 | thermistor-ap { |
| 134 | compatible = "ntc,ncp15wb473"; |
| 135 | pullup-uv = <1800000>; |
| 136 | pullup-ohm = <100000>; |
| 137 | pulldown-ohm = <100000>; |
| 138 | io-channels = <&adc 0>; |
| 139 | }; |
| 140 | |
| 141 | thermistor-battery { |
| 142 | compatible = "ntc,ncp15wb473"; |
| 143 | pullup-uv = <1800000>; |
| 144 | pullup-ohm = <100000>; |
| 145 | pulldown-ohm = <100000>; |
| 146 | io-channels = <&adc 1>; |
| 147 | }; |
| 148 | }; |
| 149 | |
Chanwoo Choi | 48816af | 2015-07-24 12:55:21 +0900 | [diff] [blame] | 150 | &cpu0 { |
| 151 | cpu0-supply = <&buck2_reg>; |
| 152 | }; |
| 153 | |
Jaewon Kim | cdc3866 | 2015-01-12 17:54:54 +0900 | [diff] [blame] | 154 | &exynos_usbphy { |
| 155 | status = "okay"; |
| 156 | }; |
| 157 | |
| 158 | &hsotg { |
| 159 | vusb_d-supply = <&ldo15_reg>; |
| 160 | vusb_a-supply = <&ldo12_reg>; |
Marek Szyprowski | 32f144f | 2015-01-24 13:12:03 +0900 | [diff] [blame] | 161 | dr_mode = "peripheral"; |
Jaewon Kim | cdc3866 | 2015-01-12 17:54:54 +0900 | [diff] [blame] | 162 | status = "okay"; |
| 163 | }; |
| 164 | |
Inki Dae | 2ea2473 | 2015-01-12 18:10:27 +0900 | [diff] [blame] | 165 | &dsi_0 { |
| 166 | vddcore-supply = <&ldo6_reg>; |
| 167 | vddio-supply = <&ldo6_reg>; |
| 168 | samsung,pll-clock-frequency = <24000000>; |
| 169 | status = "okay"; |
| 170 | |
| 171 | ports { |
| 172 | #address-cells = <1>; |
| 173 | #size-cells = <0>; |
| 174 | |
| 175 | port@1 { |
| 176 | reg = <1>; |
| 177 | |
| 178 | dsi_out: endpoint { |
| 179 | remote-endpoint = <&dsi_in>; |
| 180 | samsung,burst-clock-frequency = <250000000>; |
| 181 | samsung,esc-clock-frequency = <20000000>; |
| 182 | }; |
| 183 | }; |
| 184 | }; |
| 185 | |
| 186 | panel@0 { |
| 187 | compatible = "samsung,s6e63j0x03"; |
| 188 | reg = <0>; |
| 189 | vdd3-supply = <&ldo16_reg>; |
| 190 | vci-supply = <&ldo20_reg>; |
Javier Martinez Canillas | de77e52 | 2015-10-08 07:39:57 +0900 | [diff] [blame^] | 191 | reset-gpios = <&gpe0 1 GPIO_ACTIVE_HIGH>; |
| 192 | te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>; |
Inki Dae | 2ea2473 | 2015-01-12 18:10:27 +0900 | [diff] [blame] | 193 | power-on-delay= <30>; |
| 194 | power-off-delay= <120>; |
| 195 | reset-delay = <5>; |
| 196 | init-delay = <100>; |
| 197 | flip-horizontal; |
| 198 | flip-vertical; |
| 199 | panel-width-mm = <29>; |
| 200 | panel-height-mm = <29>; |
| 201 | |
| 202 | display-timings { |
| 203 | timing-0 { |
Hyungwon Hwang | 65e3293 | 2015-06-15 13:03:17 +0900 | [diff] [blame] | 204 | clock-frequency = <4600000>; |
Inki Dae | 2ea2473 | 2015-01-12 18:10:27 +0900 | [diff] [blame] | 205 | hactive = <320>; |
| 206 | vactive = <320>; |
| 207 | hfront-porch = <1>; |
| 208 | hback-porch = <1>; |
| 209 | hsync-len = <1>; |
| 210 | vfront-porch = <150>; |
| 211 | vback-porch = <1>; |
| 212 | vsync-len = <2>; |
| 213 | }; |
| 214 | }; |
| 215 | |
| 216 | port { |
| 217 | dsi_in: endpoint { |
| 218 | remote-endpoint = <&dsi_out>; |
| 219 | }; |
| 220 | }; |
| 221 | }; |
| 222 | }; |
| 223 | |
Inki Dae | b59b3af | 2015-01-12 18:08:37 +0900 | [diff] [blame] | 224 | &fimd { |
| 225 | status = "okay"; |
| 226 | |
| 227 | i80-if-timings { |
| 228 | cs-setup = <0>; |
| 229 | wr-setup = <0>; |
| 230 | wr-act = <1>; |
| 231 | wr-hold = <0>; |
| 232 | }; |
| 233 | }; |
| 234 | |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 235 | &i2c_0 { |
| 236 | #address-cells = <1>; |
| 237 | #size-cells = <0>; |
| 238 | samsung,i2c-sda-delay = <100>; |
| 239 | samsung,i2c-slave-addr = <0x10>; |
| 240 | samsung,i2c-max-bus-freq = <100000>; |
| 241 | status = "okay"; |
| 242 | |
| 243 | s2mps14_pmic@66 { |
| 244 | compatible = "samsung,s2mps14-pmic"; |
| 245 | interrupt-parent = <&gpx0>; |
| 246 | interrupts = <7 0>; |
| 247 | reg = <0x66>; |
| 248 | wakeup; |
| 249 | |
| 250 | s2mps14_osc: clocks { |
| 251 | compatible = "samsung,s2mps14-clk"; |
| 252 | #clock-cells = <1>; |
| 253 | clock-output-names = "s2mps14_ap", "unused", |
| 254 | "s2mps14_bt"; |
| 255 | }; |
| 256 | |
| 257 | regulators { |
| 258 | ldo1_reg: LDO1 { |
| 259 | regulator-name = "VAP_ALIVE_1.0V"; |
| 260 | regulator-min-microvolt = <1000000>; |
| 261 | regulator-max-microvolt = <1000000>; |
| 262 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 263 | |
| 264 | regulator-state-mem { |
| 265 | regulator-on-in-suspend; |
| 266 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | ldo2_reg: LDO2 { |
| 270 | regulator-name = "VAP_M1_1.2V"; |
| 271 | regulator-min-microvolt = <1200000>; |
| 272 | regulator-max-microvolt = <1200000>; |
| 273 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 274 | |
| 275 | regulator-state-mem { |
| 276 | regulator-off-in-suspend; |
| 277 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 278 | }; |
| 279 | |
| 280 | ldo3_reg: LDO3 { |
| 281 | regulator-name = "VCC_AP_1.8V"; |
| 282 | regulator-min-microvolt = <1800000>; |
| 283 | regulator-max-microvolt = <1800000>; |
| 284 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 285 | |
| 286 | regulator-state-mem { |
| 287 | regulator-off-in-suspend; |
| 288 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 289 | }; |
| 290 | |
| 291 | ldo4_reg: LDO4 { |
| 292 | regulator-name = "VAP_AVDD_PLL1"; |
| 293 | regulator-min-microvolt = <1800000>; |
| 294 | regulator-max-microvolt = <1800000>; |
| 295 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 296 | |
| 297 | regulator-state-mem { |
| 298 | regulator-off-in-suspend; |
| 299 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 300 | }; |
| 301 | |
| 302 | ldo5_reg: LDO5 { |
| 303 | regulator-name = "VAP_PLL_ISO_1.0V"; |
| 304 | regulator-min-microvolt = <1000000>; |
| 305 | regulator-max-microvolt = <1000000>; |
| 306 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 307 | |
| 308 | regulator-state-mem { |
| 309 | regulator-off-in-suspend; |
| 310 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 311 | }; |
| 312 | |
| 313 | ldo6_reg: LDO6 { |
| 314 | regulator-name = "VAP_VMIPI_1.0V"; |
| 315 | regulator-min-microvolt = <1000000>; |
| 316 | regulator-max-microvolt = <1000000>; |
| 317 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 318 | |
| 319 | regulator-state-mem { |
| 320 | regulator-off-in-suspend; |
| 321 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 322 | }; |
| 323 | |
| 324 | ldo7_reg: LDO7 { |
| 325 | regulator-name = "VAP_AVDD_1.8V"; |
| 326 | regulator-min-microvolt = <1800000>; |
| 327 | regulator-max-microvolt = <1800000>; |
| 328 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 329 | |
| 330 | regulator-state-mem { |
| 331 | regulator-off-in-suspend; |
| 332 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 333 | }; |
| 334 | |
| 335 | ldo8_reg: LDO8 { |
| 336 | regulator-name = "VAP_USB_3.0V"; |
| 337 | regulator-min-microvolt = <3000000>; |
| 338 | regulator-max-microvolt = <3000000>; |
| 339 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 340 | |
| 341 | regulator-state-mem { |
| 342 | regulator-off-in-suspend; |
| 343 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 344 | }; |
| 345 | |
| 346 | ldo9_reg: LDO9 { |
| 347 | regulator-name = "V_LPDDR_1.2V"; |
| 348 | regulator-min-microvolt = <1200000>; |
| 349 | regulator-max-microvolt = <1200000>; |
| 350 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 351 | |
| 352 | regulator-state-mem { |
| 353 | regulator-on-in-suspend; |
| 354 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 355 | }; |
| 356 | |
| 357 | ldo10_reg: LDO10 { |
| 358 | regulator-name = "UNUSED_LDO10"; |
| 359 | regulator-min-microvolt = <1000000>; |
| 360 | regulator-max-microvolt = <1000000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 361 | |
| 362 | regulator-state-mem { |
| 363 | regulator-off-in-suspend; |
| 364 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 365 | }; |
| 366 | |
| 367 | ldo11_reg: LDO11 { |
| 368 | regulator-name = "V_EMMC_1.8V"; |
| 369 | regulator-min-microvolt = <1800000>; |
| 370 | regulator-max-microvolt = <1800000>; |
Javier Martinez Canillas | de77e52 | 2015-10-08 07:39:57 +0900 | [diff] [blame^] | 371 | samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 372 | }; |
| 373 | |
| 374 | ldo12_reg: LDO12 { |
| 375 | regulator-name = "V_EMMC_2.8V"; |
| 376 | regulator-min-microvolt = <2800000>; |
| 377 | regulator-max-microvolt = <2800000>; |
Javier Martinez Canillas | de77e52 | 2015-10-08 07:39:57 +0900 | [diff] [blame^] | 378 | samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 379 | }; |
| 380 | |
| 381 | ldo13_reg: LDO13 { |
| 382 | regulator-name = "CAM_AVDD_2.8V"; |
| 383 | regulator-min-microvolt = <2800000>; |
| 384 | regulator-max-microvolt = <2800000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 385 | |
| 386 | regulator-state-mem { |
| 387 | regulator-off-in-suspend; |
| 388 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 389 | }; |
| 390 | |
| 391 | ldo14_reg: LDO14 { |
| 392 | regulator-name = "UNUSED_LDO14"; |
| 393 | regulator-min-microvolt = <2700000>; |
| 394 | regulator-max-microvolt = <2700000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 395 | |
| 396 | regulator-state-mem { |
| 397 | regulator-off-in-suspend; |
| 398 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 399 | }; |
| 400 | |
| 401 | ldo15_reg: LDO15 { |
| 402 | regulator-name = "TSP_AVDD_3.3V"; |
| 403 | regulator-min-microvolt = <3300000>; |
| 404 | regulator-max-microvolt = <3300000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 405 | |
| 406 | regulator-state-mem { |
| 407 | regulator-off-in-suspend; |
| 408 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 409 | }; |
| 410 | |
| 411 | ldo16_reg: LDO16 { |
| 412 | regulator-name = "LCD_VDD_3.3V"; |
| 413 | regulator-min-microvolt = <3300000>; |
| 414 | regulator-max-microvolt = <3300000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 415 | |
| 416 | regulator-state-mem { |
| 417 | regulator-off-in-suspend; |
| 418 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 419 | }; |
| 420 | |
| 421 | ldo17_reg: LDO17 { |
| 422 | regulator-name = "V_IRLED_3.3V"; |
| 423 | regulator-min-microvolt = <3300000>; |
| 424 | regulator-max-microvolt = <3300000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 425 | |
| 426 | regulator-state-mem { |
| 427 | regulator-off-in-suspend; |
| 428 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 429 | }; |
| 430 | |
| 431 | ldo18_reg: LDO18 { |
| 432 | regulator-name = "CAM_AF_2.8V"; |
| 433 | regulator-min-microvolt = <2800000>; |
| 434 | regulator-max-microvolt = <2800000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 435 | |
| 436 | regulator-state-mem { |
| 437 | regulator-off-in-suspend; |
| 438 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 439 | }; |
| 440 | |
| 441 | ldo19_reg: LDO19 { |
| 442 | regulator-name = "TSP_VDD_1.8V"; |
| 443 | regulator-min-microvolt = <1800000>; |
| 444 | regulator-max-microvolt = <1800000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 445 | |
| 446 | regulator-state-mem { |
| 447 | regulator-off-in-suspend; |
| 448 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 449 | }; |
| 450 | |
| 451 | ldo20_reg: LDO20 { |
| 452 | regulator-name = "LCD_VDD_1.8V"; |
| 453 | regulator-min-microvolt = <1800000>; |
| 454 | regulator-max-microvolt = <1800000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 455 | |
| 456 | regulator-state-mem { |
| 457 | regulator-off-in-suspend; |
| 458 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 459 | }; |
| 460 | |
| 461 | ldo21_reg: LDO21 { |
| 462 | regulator-name = "CAM_IO_1.8V"; |
| 463 | regulator-min-microvolt = <1800000>; |
| 464 | regulator-max-microvolt = <1800000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 465 | |
| 466 | regulator-state-mem { |
| 467 | regulator-off-in-suspend; |
| 468 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 469 | }; |
| 470 | |
| 471 | ldo22_reg: LDO22 { |
| 472 | regulator-name = "CAM_DVDD_1.2V"; |
| 473 | regulator-min-microvolt = <1200000>; |
| 474 | regulator-max-microvolt = <1200000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 475 | |
| 476 | regulator-state-mem { |
| 477 | regulator-off-in-suspend; |
| 478 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 479 | }; |
| 480 | |
| 481 | ldo23_reg: LDO23 { |
| 482 | regulator-name = "HRM_VCC_1.8V"; |
| 483 | regulator-min-microvolt = <1800000>; |
| 484 | regulator-max-microvolt = <1800000>; |
| 485 | regulator-always-on; |
| 486 | }; |
| 487 | |
| 488 | ldo24_reg: LDO24 { |
| 489 | regulator-name = "HRM_VCC_3.3V"; |
| 490 | regulator-min-microvolt = <3000000>; |
| 491 | regulator-max-microvolt = <3000000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 492 | |
| 493 | regulator-state-mem { |
| 494 | regulator-off-in-suspend; |
| 495 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 496 | }; |
| 497 | |
| 498 | ldo25_reg: LDO25 { |
| 499 | regulator-name = "UNUSED_LDO25"; |
| 500 | regulator-min-microvolt = <3000000>; |
| 501 | regulator-max-microvolt = <3000000>; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 502 | |
| 503 | regulator-state-mem { |
| 504 | regulator-off-in-suspend; |
| 505 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 506 | }; |
| 507 | |
| 508 | buck1_reg: BUCK1 { |
| 509 | regulator-name = "VAP_MIF_1.0V"; |
| 510 | regulator-min-microvolt = <800000>; |
| 511 | regulator-max-microvolt = <900000>; |
| 512 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 513 | |
| 514 | regulator-state-mem { |
| 515 | regulator-off-in-suspend; |
| 516 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 517 | }; |
| 518 | |
| 519 | buck2_reg: BUCK2 { |
| 520 | regulator-name = "VAP_ARM_1.0V"; |
| 521 | regulator-min-microvolt = <850000>; |
| 522 | regulator-max-microvolt = <1150000>; |
| 523 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 524 | |
| 525 | regulator-state-mem { |
| 526 | regulator-off-in-suspend; |
| 527 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 528 | }; |
| 529 | |
| 530 | buck3_reg: BUCK3 { |
| 531 | regulator-name = "VAP_INT3D_1.0V"; |
| 532 | regulator-min-microvolt = <850000>; |
| 533 | regulator-max-microvolt = <1000000>; |
| 534 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 535 | |
| 536 | regulator-state-mem { |
| 537 | regulator-off-in-suspend; |
| 538 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 539 | }; |
| 540 | |
| 541 | buck4_reg: BUCK4 { |
| 542 | regulator-name = "VCC_SUB_1.95V"; |
| 543 | regulator-min-microvolt = <1950000>; |
| 544 | regulator-max-microvolt = <1950000>; |
| 545 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 546 | |
| 547 | regulator-state-mem { |
| 548 | regulator-on-in-suspend; |
| 549 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 550 | }; |
| 551 | |
| 552 | buck5_reg: BUCK5 { |
| 553 | regulator-name = "VCC_SUB_1.35V"; |
| 554 | regulator-min-microvolt = <1350000>; |
| 555 | regulator-max-microvolt = <1350000>; |
| 556 | regulator-always-on; |
Chanwoo Choi | b9d7fda | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 557 | |
| 558 | regulator-state-mem { |
| 559 | regulator-on-in-suspend; |
| 560 | }; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 561 | }; |
| 562 | }; |
| 563 | }; |
| 564 | }; |
| 565 | |
| 566 | &i2c_1 { |
| 567 | #address-cells = <1>; |
| 568 | #size-cells = <0>; |
| 569 | samsung,i2c-sda-delay = <100>; |
| 570 | samsung,i2c-slave-addr = <0x10>; |
| 571 | samsung,i2c-max-bus-freq = <400000>; |
| 572 | status = "okay"; |
| 573 | |
| 574 | fuelgauge@36 { |
| 575 | compatible = "maxim,max77836-battery"; |
| 576 | interrupt-parent = <&gpx1>; |
| 577 | interrupts = <2 8>; |
| 578 | reg = <0x36>; |
| 579 | }; |
| 580 | }; |
| 581 | |
| 582 | &i2s2 { |
| 583 | status = "okay"; |
| 584 | }; |
| 585 | |
| 586 | &mfc { |
| 587 | status = "okay"; |
| 588 | }; |
| 589 | |
Jacek Anaszewski | a1c0013 | 2015-01-23 16:39:57 +0100 | [diff] [blame] | 590 | &jpeg { |
| 591 | status = "okay"; |
| 592 | }; |
| 593 | |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 594 | &mshc_0 { |
| 595 | #address-cells = <1>; |
| 596 | #size-cells = <0>; |
| 597 | num-slots = <1>; |
| 598 | broken-cd; |
| 599 | non-removable; |
| 600 | cap-mmc-highspeed; |
| 601 | desc-num = <4>; |
| 602 | mmc-hs200-1_8v; |
| 603 | card-detect-delay = <200>; |
| 604 | vmmc-supply = <&ldo12_reg>; |
| 605 | clock-frequency = <100000000>; |
| 606 | clock-freq-min-max = <400000 100000000>; |
| 607 | samsung,dw-mshc-ciu-div = <1>; |
| 608 | samsung,dw-mshc-sdr-timing = <0 1>; |
| 609 | samsung,dw-mshc-ddr-timing = <1 2>; |
| 610 | pinctrl-names = "default"; |
| 611 | pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>; |
| 612 | bus-width = <8>; |
| 613 | status = "okay"; |
| 614 | }; |
| 615 | |
| 616 | &serial_0 { |
| 617 | assigned-clocks = <&cmu CLK_SCLK_UART0>; |
| 618 | assigned-clock-rates = <100000000>; |
| 619 | status = "okay"; |
| 620 | }; |
| 621 | |
| 622 | &serial_1 { |
| 623 | status = "okay"; |
| 624 | }; |
| 625 | |
| 626 | &tmu { |
| 627 | vtmu-supply = <&ldo7_reg>; |
| 628 | status = "okay"; |
| 629 | }; |
| 630 | |
| 631 | &rtc { |
Krzysztof Kozlowski | 9f80293 | 2015-03-30 17:15:52 +0200 | [diff] [blame] | 632 | clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>; |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 633 | clock-names = "rtc", "rtc_src"; |
| 634 | status = "okay"; |
| 635 | }; |
| 636 | |
Chanwoo Choi | 8d6b9b4 | 2015-02-04 08:10:58 +0900 | [diff] [blame] | 637 | &ppmu_dmc0 { |
| 638 | status = "okay"; |
| 639 | |
| 640 | events { |
| 641 | ppmu_dmc0_3: ppmu-event3-dmc0 { |
| 642 | event-name = "ppmu-event3-dmc0"; |
| 643 | }; |
| 644 | }; |
| 645 | }; |
| 646 | |
| 647 | &ppmu_dmc1 { |
| 648 | status = "okay"; |
| 649 | |
| 650 | events { |
| 651 | ppmu_dmc1_3: ppmu-event3-dmc1 { |
| 652 | event-name = "ppmu-event3-dmc1"; |
| 653 | }; |
| 654 | }; |
| 655 | }; |
| 656 | |
| 657 | &ppmu_leftbus { |
| 658 | status = "okay"; |
| 659 | |
| 660 | events { |
| 661 | ppmu_leftbus_3: ppmu-event3-leftbus { |
| 662 | event-name = "ppmu-event3-leftbus"; |
| 663 | }; |
| 664 | }; |
| 665 | }; |
| 666 | |
| 667 | &ppmu_rightbus { |
| 668 | status = "okay"; |
| 669 | |
| 670 | events { |
| 671 | ppmu_rightbus_3: ppmu-event3-rightbus { |
| 672 | event-name = "ppmu-event3-rightbus"; |
| 673 | }; |
| 674 | }; |
| 675 | }; |
| 676 | |
Chanwoo Choi | faaf348 | 2014-11-07 08:10:12 +0900 | [diff] [blame] | 677 | &xusbxti { |
| 678 | clock-frequency = <24000000>; |
| 679 | }; |
Chanwoo Choi | 18073d6 | 2014-11-07 08:10:13 +0900 | [diff] [blame] | 680 | |
| 681 | &pinctrl_0 { |
| 682 | pinctrl-names = "default"; |
| 683 | pinctrl-0 = <&sleep0>; |
| 684 | |
| 685 | sleep0: sleep-state { |
| 686 | PIN_SLP(gpa0-0, INPUT, DOWN); |
| 687 | PIN_SLP(gpa0-1, INPUT, DOWN); |
| 688 | PIN_SLP(gpa0-2, INPUT, DOWN); |
| 689 | PIN_SLP(gpa0-3, INPUT, DOWN); |
| 690 | PIN_SLP(gpa0-4, INPUT, DOWN); |
| 691 | PIN_SLP(gpa0-5, INPUT, DOWN); |
| 692 | PIN_SLP(gpa0-6, INPUT, DOWN); |
| 693 | PIN_SLP(gpa0-7, INPUT, DOWN); |
| 694 | |
| 695 | PIN_SLP(gpa1-0, INPUT, DOWN); |
| 696 | PIN_SLP(gpa1-1, INPUT, DOWN); |
| 697 | PIN_SLP(gpa1-2, INPUT, DOWN); |
| 698 | PIN_SLP(gpa1-3, INPUT, DOWN); |
| 699 | PIN_SLP(gpa1-4, INPUT, DOWN); |
| 700 | PIN_SLP(gpa1-5, INPUT, DOWN); |
| 701 | |
| 702 | PIN_SLP(gpb-0, PREV, NONE); |
| 703 | PIN_SLP(gpb-1, PREV, NONE); |
| 704 | PIN_SLP(gpb-2, PREV, NONE); |
| 705 | PIN_SLP(gpb-3, PREV, NONE); |
| 706 | PIN_SLP(gpb-4, INPUT, DOWN); |
| 707 | PIN_SLP(gpb-5, INPUT, DOWN); |
| 708 | PIN_SLP(gpb-6, INPUT, DOWN); |
| 709 | PIN_SLP(gpb-7, INPUT, DOWN); |
| 710 | |
| 711 | PIN_SLP(gpc0-0, INPUT, DOWN); |
| 712 | PIN_SLP(gpc0-1, INPUT, DOWN); |
| 713 | PIN_SLP(gpc0-2, INPUT, DOWN); |
| 714 | PIN_SLP(gpc0-3, INPUT, DOWN); |
| 715 | PIN_SLP(gpc0-4, INPUT, DOWN); |
| 716 | |
| 717 | PIN_SLP(gpc1-0, INPUT, DOWN); |
| 718 | PIN_SLP(gpc1-1, INPUT, DOWN); |
| 719 | PIN_SLP(gpc1-2, INPUT, DOWN); |
| 720 | PIN_SLP(gpc1-3, INPUT, DOWN); |
| 721 | PIN_SLP(gpc1-4, INPUT, DOWN); |
| 722 | |
| 723 | PIN_SLP(gpd0-0, INPUT, DOWN); |
| 724 | PIN_SLP(gpd0-1, INPUT, DOWN); |
| 725 | PIN_SLP(gpd0-2, INPUT, NONE); |
| 726 | PIN_SLP(gpd0-3, INPUT, NONE); |
| 727 | |
| 728 | PIN_SLP(gpd1-0, INPUT, NONE); |
| 729 | PIN_SLP(gpd1-1, INPUT, NONE); |
| 730 | PIN_SLP(gpd1-2, INPUT, NONE); |
| 731 | PIN_SLP(gpd1-3, INPUT, NONE); |
| 732 | }; |
| 733 | }; |
| 734 | |
| 735 | &pinctrl_1 { |
| 736 | pinctrl-names = "default"; |
| 737 | pinctrl-0 = <&sleep1>; |
| 738 | |
| 739 | sleep1: sleep-state { |
| 740 | PIN_SLP(gpe0-0, PREV, NONE); |
| 741 | PIN_SLP(gpe0-1, PREV, NONE); |
| 742 | PIN_SLP(gpe0-2, INPUT, DOWN); |
| 743 | PIN_SLP(gpe0-3, INPUT, UP); |
| 744 | PIN_SLP(gpe0-4, INPUT, DOWN); |
| 745 | PIN_SLP(gpe0-5, INPUT, DOWN); |
| 746 | PIN_SLP(gpe0-6, INPUT, DOWN); |
| 747 | PIN_SLP(gpe0-7, INPUT, DOWN); |
| 748 | |
| 749 | PIN_SLP(gpe1-0, INPUT, DOWN); |
| 750 | PIN_SLP(gpe1-1, PREV, NONE); |
| 751 | PIN_SLP(gpe1-2, INPUT, DOWN); |
| 752 | PIN_SLP(gpe1-3, INPUT, DOWN); |
| 753 | PIN_SLP(gpe1-4, INPUT, DOWN); |
| 754 | PIN_SLP(gpe1-5, INPUT, DOWN); |
| 755 | PIN_SLP(gpe1-6, INPUT, DOWN); |
| 756 | PIN_SLP(gpe1-7, INPUT, NONE); |
| 757 | |
| 758 | PIN_SLP(gpe2-0, INPUT, NONE); |
| 759 | PIN_SLP(gpe2-1, INPUT, NONE); |
| 760 | PIN_SLP(gpe2-2, INPUT, NONE); |
| 761 | |
| 762 | PIN_SLP(gpk0-0, INPUT, DOWN); |
| 763 | PIN_SLP(gpk0-1, INPUT, DOWN); |
| 764 | PIN_SLP(gpk0-2, OUT0, NONE); |
| 765 | PIN_SLP(gpk0-3, INPUT, DOWN); |
| 766 | PIN_SLP(gpk0-4, INPUT, DOWN); |
| 767 | PIN_SLP(gpk0-5, INPUT, DOWN); |
| 768 | PIN_SLP(gpk0-6, INPUT, DOWN); |
| 769 | PIN_SLP(gpk0-7, INPUT, DOWN); |
| 770 | |
| 771 | PIN_SLP(gpk1-0, INPUT, DOWN); |
| 772 | PIN_SLP(gpk1-1, INPUT, DOWN); |
| 773 | PIN_SLP(gpk1-2, INPUT, DOWN); |
| 774 | PIN_SLP(gpk1-3, INPUT, DOWN); |
| 775 | PIN_SLP(gpk1-4, INPUT, DOWN); |
| 776 | PIN_SLP(gpk1-5, INPUT, DOWN); |
| 777 | PIN_SLP(gpk1-6, INPUT, DOWN); |
| 778 | |
| 779 | PIN_SLP(gpk2-0, INPUT, DOWN); |
| 780 | PIN_SLP(gpk2-1, INPUT, DOWN); |
| 781 | PIN_SLP(gpk2-2, INPUT, DOWN); |
| 782 | PIN_SLP(gpk2-3, INPUT, DOWN); |
| 783 | PIN_SLP(gpk2-4, INPUT, DOWN); |
| 784 | PIN_SLP(gpk2-5, INPUT, DOWN); |
| 785 | PIN_SLP(gpk2-6, INPUT, DOWN); |
| 786 | |
| 787 | PIN_SLP(gpl0-0, INPUT, DOWN); |
| 788 | PIN_SLP(gpl0-1, INPUT, DOWN); |
| 789 | PIN_SLP(gpl0-2, INPUT, DOWN); |
| 790 | PIN_SLP(gpl0-3, INPUT, DOWN); |
| 791 | |
| 792 | PIN_SLP(gpm0-0, INPUT, DOWN); |
| 793 | PIN_SLP(gpm0-1, INPUT, DOWN); |
| 794 | PIN_SLP(gpm0-2, INPUT, DOWN); |
| 795 | PIN_SLP(gpm0-3, INPUT, DOWN); |
| 796 | PIN_SLP(gpm0-4, INPUT, DOWN); |
| 797 | PIN_SLP(gpm0-5, INPUT, DOWN); |
| 798 | PIN_SLP(gpm0-6, INPUT, DOWN); |
| 799 | PIN_SLP(gpm0-7, INPUT, DOWN); |
| 800 | |
| 801 | PIN_SLP(gpm1-0, INPUT, DOWN); |
| 802 | PIN_SLP(gpm1-1, INPUT, DOWN); |
| 803 | PIN_SLP(gpm1-2, INPUT, DOWN); |
| 804 | PIN_SLP(gpm1-3, INPUT, DOWN); |
| 805 | PIN_SLP(gpm1-4, INPUT, DOWN); |
| 806 | PIN_SLP(gpm1-5, INPUT, DOWN); |
| 807 | PIN_SLP(gpm1-6, INPUT, DOWN); |
| 808 | |
| 809 | PIN_SLP(gpm2-0, INPUT, DOWN); |
| 810 | PIN_SLP(gpm2-1, INPUT, DOWN); |
| 811 | PIN_SLP(gpm2-2, INPUT, DOWN); |
| 812 | PIN_SLP(gpm2-3, INPUT, DOWN); |
| 813 | PIN_SLP(gpm2-4, INPUT, DOWN); |
| 814 | |
| 815 | PIN_SLP(gpm3-0, INPUT, DOWN); |
| 816 | PIN_SLP(gpm3-1, INPUT, DOWN); |
| 817 | PIN_SLP(gpm3-2, INPUT, DOWN); |
| 818 | PIN_SLP(gpm3-3, INPUT, DOWN); |
| 819 | PIN_SLP(gpm3-4, INPUT, DOWN); |
| 820 | PIN_SLP(gpm3-5, INPUT, DOWN); |
| 821 | PIN_SLP(gpm3-6, INPUT, DOWN); |
| 822 | PIN_SLP(gpm3-7, INPUT, DOWN); |
| 823 | |
| 824 | PIN_SLP(gpm4-0, INPUT, DOWN); |
| 825 | PIN_SLP(gpm4-1, INPUT, DOWN); |
| 826 | PIN_SLP(gpm4-2, INPUT, DOWN); |
| 827 | PIN_SLP(gpm4-3, INPUT, DOWN); |
| 828 | PIN_SLP(gpm4-4, INPUT, DOWN); |
| 829 | PIN_SLP(gpm4-5, INPUT, DOWN); |
| 830 | PIN_SLP(gpm4-6, INPUT, DOWN); |
| 831 | PIN_SLP(gpm4-7, INPUT, DOWN); |
| 832 | }; |
| 833 | }; |