| .. | .. |
|---|
| 11 | 11 | */ |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | /dts-v1/; |
|---|
| 14 | +#include <dt-bindings/gpio/gpio.h> |
|---|
| 14 | 15 | #include <dt-bindings/input/input.h> |
|---|
| 15 | 16 | #include "s5pv210.dtsi" |
|---|
| 16 | 17 | |
|---|
| .. | .. |
|---|
| 32 | 33 | 0x40000000 0x18000000>; |
|---|
| 33 | 34 | }; |
|---|
| 34 | 35 | |
|---|
| 35 | | - regulators { |
|---|
| 36 | | - compatible = "simple-bus"; |
|---|
| 37 | | - #address-cells = <1>; |
|---|
| 38 | | - #size-cells = <0>; |
|---|
| 36 | + pmic_ap_clk: clock-0 { |
|---|
| 37 | + /* Workaround for missing clock on PMIC */ |
|---|
| 38 | + compatible = "fixed-clock"; |
|---|
| 39 | + #clock-cells = <0>; |
|---|
| 40 | + clock-frequency = <32768>; |
|---|
| 41 | + }; |
|---|
| 39 | 42 | |
|---|
| 40 | | - vtf_reg: fixed-regulator@0 { |
|---|
| 41 | | - compatible = "regulator-fixed"; |
|---|
| 42 | | - reg = <0>; |
|---|
| 43 | | - regulator-name = "V_TF_2.8V"; |
|---|
| 44 | | - regulator-min-microvolt = <2800000>; |
|---|
| 45 | | - regulator-max-microvolt = <2800000>; |
|---|
| 46 | | - gpio = <&mp05 4 0>; |
|---|
| 47 | | - enable-active-high; |
|---|
| 48 | | - }; |
|---|
| 43 | + vtf_reg: regulator-0 { |
|---|
| 44 | + compatible = "regulator-fixed"; |
|---|
| 45 | + regulator-name = "V_TF_2.8V"; |
|---|
| 46 | + regulator-min-microvolt = <2800000>; |
|---|
| 47 | + regulator-max-microvolt = <2800000>; |
|---|
| 48 | + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; |
|---|
| 49 | + enable-active-high; |
|---|
| 50 | + }; |
|---|
| 49 | 51 | |
|---|
| 50 | | - pda_reg: fixed-regulator@1 { |
|---|
| 51 | | - compatible = "regulator-fixed"; |
|---|
| 52 | | - regulator-name = "VCC_1.8V_PDA"; |
|---|
| 53 | | - regulator-min-microvolt = <1800000>; |
|---|
| 54 | | - regulator-max-microvolt = <1800000>; |
|---|
| 55 | | - reg = <1>; |
|---|
| 56 | | - }; |
|---|
| 52 | + pda_reg: regulator-1 { |
|---|
| 53 | + compatible = "regulator-fixed"; |
|---|
| 54 | + regulator-name = "VCC_1.8V_PDA"; |
|---|
| 55 | + regulator-min-microvolt = <1800000>; |
|---|
| 56 | + regulator-max-microvolt = <1800000>; |
|---|
| 57 | + }; |
|---|
| 57 | 58 | |
|---|
| 58 | | - bat_reg: fixed-regulator@2 { |
|---|
| 59 | | - compatible = "regulator-fixed"; |
|---|
| 60 | | - regulator-name = "V_BAT"; |
|---|
| 61 | | - regulator-min-microvolt = <3700000>; |
|---|
| 62 | | - regulator-max-microvolt = <3700000>; |
|---|
| 63 | | - reg = <2>; |
|---|
| 64 | | - }; |
|---|
| 59 | + bat_reg: regulator-2 { |
|---|
| 60 | + compatible = "regulator-fixed"; |
|---|
| 61 | + regulator-name = "V_BAT"; |
|---|
| 62 | + regulator-min-microvolt = <3700000>; |
|---|
| 63 | + regulator-max-microvolt = <3700000>; |
|---|
| 65 | 64 | }; |
|---|
| 66 | 65 | |
|---|
| 67 | 66 | i2c_pmic: i2c-pmic { |
|---|
| 68 | 67 | compatible = "i2c-gpio"; |
|---|
| 69 | | - gpios = <&gpj4 0 0>, /* sda */ |
|---|
| 70 | | - <&gpj4 3 0>; /* scl */ |
|---|
| 68 | + sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>; |
|---|
| 69 | + scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>; |
|---|
| 71 | 70 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ |
|---|
| 72 | 71 | #address-cells = <1>; |
|---|
| 73 | 72 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 77 | 76 | reg = <0x66>; |
|---|
| 78 | 77 | |
|---|
| 79 | 78 | max8998,pmic-buck1-default-dvs-idx = <0>; |
|---|
| 80 | | - max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>, |
|---|
| 81 | | - <&gph0 4 0>; |
|---|
| 79 | + max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, |
|---|
| 80 | + <&gph0 4 GPIO_ACTIVE_HIGH>; |
|---|
| 82 | 81 | max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, |
|---|
| 83 | 82 | <1200000>, <1200000>; |
|---|
| 84 | 83 | |
|---|
| 85 | 84 | max8998,pmic-buck2-default-dvs-idx = <0>; |
|---|
| 86 | | - max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>; |
|---|
| 85 | + max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; |
|---|
| 87 | 86 | max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>; |
|---|
| 88 | 87 | |
|---|
| 89 | 88 | regulators { |
|---|
| .. | .. |
|---|
| 228 | 227 | regulator-always-on; |
|---|
| 229 | 228 | }; |
|---|
| 230 | 229 | |
|---|
| 230 | + ap32khz_reg: EN32KHz-AP { |
|---|
| 231 | + regulator-name = "32KHz AP"; |
|---|
| 232 | + regulator-always-on; |
|---|
| 233 | + }; |
|---|
| 234 | + |
|---|
| 231 | 235 | vichg_reg: ENVICHG { |
|---|
| 232 | 236 | regulator-name = "VICHG"; |
|---|
| 233 | 237 | }; |
|---|
| .. | .. |
|---|
| 273 | 277 | <&keypad_col0>, <&keypad_col1>, <&keypad_col2>; |
|---|
| 274 | 278 | status = "okay"; |
|---|
| 275 | 279 | |
|---|
| 276 | | - key_1 { |
|---|
| 280 | + key-1 { |
|---|
| 277 | 281 | keypad,row = <0>; |
|---|
| 278 | 282 | keypad,column = <1>; |
|---|
| 279 | 283 | linux,code = <KEY_CONNECT>; |
|---|
| 280 | 284 | }; |
|---|
| 281 | 285 | |
|---|
| 282 | | - key_2 { |
|---|
| 286 | + key-2 { |
|---|
| 283 | 287 | keypad,row = <0>; |
|---|
| 284 | 288 | keypad,column = <2>; |
|---|
| 285 | 289 | linux,code = <KEY_BACK>; |
|---|
| 286 | 290 | }; |
|---|
| 287 | 291 | |
|---|
| 288 | | - key_3 { |
|---|
| 292 | + key-3 { |
|---|
| 289 | 293 | keypad,row = <1>; |
|---|
| 290 | 294 | keypad,column = <1>; |
|---|
| 291 | 295 | linux,code = <KEY_CAMERA_FOCUS>; |
|---|
| 292 | 296 | }; |
|---|
| 293 | 297 | |
|---|
| 294 | | - key_4 { |
|---|
| 298 | + key-4 { |
|---|
| 295 | 299 | keypad,row = <1>; |
|---|
| 296 | 300 | keypad,column = <2>; |
|---|
| 297 | 301 | linux,code = <KEY_VOLUMEUP>; |
|---|
| 298 | 302 | }; |
|---|
| 299 | 303 | |
|---|
| 300 | | - key_5 { |
|---|
| 304 | + key-5 { |
|---|
| 301 | 305 | keypad,row = <2>; |
|---|
| 302 | 306 | keypad,column = <1>; |
|---|
| 303 | 307 | linux,code = <KEY_CAMERA>; |
|---|
| 304 | 308 | }; |
|---|
| 305 | 309 | |
|---|
| 306 | | - key_6 { |
|---|
| 310 | + key-6 { |
|---|
| 307 | 311 | keypad,row = <2>; |
|---|
| 308 | 312 | keypad,column = <2>; |
|---|
| 309 | 313 | linux,code = <KEY_VOLUMEDOWN>; |
|---|
| .. | .. |
|---|
| 326 | 330 | status = "okay"; |
|---|
| 327 | 331 | }; |
|---|
| 328 | 332 | |
|---|
| 333 | +&rtc { |
|---|
| 334 | + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; |
|---|
| 335 | + clock-names = "rtc", "rtc_src"; |
|---|
| 336 | +}; |
|---|
| 337 | + |
|---|
| 329 | 338 | &sdhci0 { |
|---|
| 330 | 339 | bus-width = <4>; |
|---|
| 331 | 340 | non-removable; |
|---|