.. | .. |
---|
11 | 11 | */ |
---|
12 | 12 | |
---|
13 | 13 | /dts-v1/; |
---|
| 14 | +#include <dt-bindings/gpio/gpio.h> |
---|
| 15 | +#include <dt-bindings/interrupt-controller/irq.h> |
---|
14 | 16 | #include <dt-bindings/input/input.h> |
---|
15 | 17 | #include "s5pv210.dtsi" |
---|
16 | 18 | |
---|
.. | .. |
---|
33 | 35 | 0x50000000 0x08000000>; |
---|
34 | 36 | }; |
---|
35 | 37 | |
---|
36 | | - regulators { |
---|
37 | | - compatible = "simple-bus"; |
---|
38 | | - #address-cells = <1>; |
---|
39 | | - #size-cells = <0>; |
---|
| 38 | + pmic_ap_clk: clock-0 { |
---|
| 39 | + /* Workaround for missing clock on PMIC */ |
---|
| 40 | + compatible = "fixed-clock"; |
---|
| 41 | + #clock-cells = <0>; |
---|
| 42 | + clock-frequency = <32768>; |
---|
| 43 | + }; |
---|
40 | 44 | |
---|
41 | | - vtf_reg: fixed-regulator@0 { |
---|
42 | | - compatible = "regulator-fixed"; |
---|
43 | | - regulator-name = "V_TF_2.8V"; |
---|
44 | | - regulator-min-microvolt = <2800000>; |
---|
45 | | - regulator-max-microvolt = <2800000>; |
---|
46 | | - reg = <0>; |
---|
47 | | - gpio = <&mp05 4 0>; |
---|
48 | | - enable-active-high; |
---|
49 | | - }; |
---|
| 45 | + vtf_reg: regulator-0 { |
---|
| 46 | + compatible = "regulator-fixed"; |
---|
| 47 | + regulator-name = "V_TF_2.8V"; |
---|
| 48 | + regulator-min-microvolt = <2800000>; |
---|
| 49 | + regulator-max-microvolt = <2800000>; |
---|
| 50 | + gpio = <&mp05 4 GPIO_ACTIVE_HIGH>; |
---|
| 51 | + enable-active-high; |
---|
| 52 | + }; |
---|
50 | 53 | |
---|
51 | | - pda_reg: fixed-regulator@1 { |
---|
52 | | - compatible = "regulator-fixed"; |
---|
53 | | - regulator-name = "VCC_1.8V_PDA"; |
---|
54 | | - regulator-min-microvolt = <1800000>; |
---|
55 | | - regulator-max-microvolt = <1800000>; |
---|
56 | | - reg = <1>; |
---|
57 | | - }; |
---|
| 54 | + pda_reg: regulator-1 { |
---|
| 55 | + compatible = "regulator-fixed"; |
---|
| 56 | + regulator-name = "VCC_1.8V_PDA"; |
---|
| 57 | + regulator-min-microvolt = <1800000>; |
---|
| 58 | + regulator-max-microvolt = <1800000>; |
---|
| 59 | + }; |
---|
58 | 60 | |
---|
59 | | - bat_reg: fixed-regulator@2 { |
---|
60 | | - compatible = "regulator-fixed"; |
---|
61 | | - regulator-name = "V_BAT"; |
---|
62 | | - regulator-min-microvolt = <3700000>; |
---|
63 | | - regulator-max-microvolt = <3700000>; |
---|
64 | | - reg = <2>; |
---|
65 | | - }; |
---|
| 61 | + bat_reg: regulator-2 { |
---|
| 62 | + compatible = "regulator-fixed"; |
---|
| 63 | + regulator-name = "V_BAT"; |
---|
| 64 | + regulator-min-microvolt = <3700000>; |
---|
| 65 | + regulator-max-microvolt = <3700000>; |
---|
| 66 | + }; |
---|
66 | 67 | |
---|
67 | | - tsp_reg: fixed-regulator@3 { |
---|
68 | | - compatible = "regulator-fixed"; |
---|
69 | | - regulator-name = "TSP_VDD"; |
---|
70 | | - regulator-min-microvolt = <2800000>; |
---|
71 | | - regulator-max-microvolt = <2800000>; |
---|
72 | | - reg = <3>; |
---|
73 | | - gpio = <&gpj1 3 0>; |
---|
74 | | - enable-active-high; |
---|
75 | | - }; |
---|
| 68 | + tsp_reg: regulator-3 { |
---|
| 69 | + compatible = "regulator-fixed"; |
---|
| 70 | + regulator-name = "TSP_VDD"; |
---|
| 71 | + regulator-min-microvolt = <2800000>; |
---|
| 72 | + regulator-max-microvolt = <2800000>; |
---|
| 73 | + gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>; |
---|
| 74 | + enable-active-high; |
---|
76 | 75 | }; |
---|
77 | 76 | |
---|
78 | 77 | i2c_pmic: i2c-pmic { |
---|
79 | 78 | compatible = "i2c-gpio"; |
---|
80 | | - gpios = <&gpj4 0 0>, /* sda */ |
---|
81 | | - <&gpj4 3 0>; /* scl */ |
---|
| 79 | + sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>; |
---|
| 80 | + scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>; |
---|
82 | 81 | i2c-gpio,delay-us = <2>; /* ~100 kHz */ |
---|
83 | 82 | #address-cells = <1>; |
---|
84 | 83 | #size-cells = <0>; |
---|
.. | .. |
---|
88 | 87 | reg = <0x66>; |
---|
89 | 88 | |
---|
90 | 89 | max8998,pmic-buck1-default-dvs-idx = <0>; |
---|
91 | | - max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>, |
---|
92 | | - <&gph0 4 0>; |
---|
| 90 | + max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>, |
---|
| 91 | + <&gph0 4 GPIO_ACTIVE_HIGH>; |
---|
93 | 92 | max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, |
---|
94 | 93 | <1200000>, <1200000>; |
---|
95 | 94 | |
---|
96 | 95 | max8998,pmic-buck2-default-dvs-idx = <0>; |
---|
97 | | - max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>; |
---|
| 96 | + max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>; |
---|
98 | 97 | max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>; |
---|
99 | 98 | |
---|
100 | 99 | regulators { |
---|
.. | .. |
---|
224 | 223 | regulator-max-microvolt = <1200000>; |
---|
225 | 224 | regulator-always-on; |
---|
226 | 225 | }; |
---|
| 226 | + |
---|
| 227 | + ap32khz_reg: EN32KHz-AP { |
---|
| 228 | + regulator-name = "32KHz AP"; |
---|
| 229 | + regulator-always-on; |
---|
| 230 | + }; |
---|
227 | 231 | }; |
---|
228 | 232 | }; |
---|
229 | 233 | }; |
---|
.. | .. |
---|
255 | 259 | <&keypad_col0>, <&keypad_col1>, <&keypad_col2>; |
---|
256 | 260 | status = "okay"; |
---|
257 | 261 | |
---|
258 | | - key_1 { |
---|
| 262 | + key-1 { |
---|
259 | 263 | keypad,row = <0>; |
---|
260 | 264 | keypad,column = <1>; |
---|
261 | 265 | linux,code = <KEY_CONNECT>; |
---|
262 | 266 | }; |
---|
263 | 267 | |
---|
264 | | - key_2 { |
---|
| 268 | + key-2 { |
---|
265 | 269 | keypad,row = <0>; |
---|
266 | 270 | keypad,column = <2>; |
---|
267 | 271 | linux,code = <KEY_BACK>; |
---|
268 | 272 | }; |
---|
269 | 273 | |
---|
270 | | - key_3 { |
---|
| 274 | + key-3 { |
---|
271 | 275 | keypad,row = <1>; |
---|
272 | 276 | keypad,column = <1>; |
---|
273 | 277 | linux,code = <KEY_CAMERA_FOCUS>; |
---|
274 | 278 | }; |
---|
275 | 279 | |
---|
276 | | - key_4 { |
---|
| 280 | + key-4 { |
---|
277 | 281 | keypad,row = <1>; |
---|
278 | 282 | keypad,column = <2>; |
---|
279 | 283 | linux,code = <KEY_VOLUMEUP>; |
---|
280 | 284 | }; |
---|
281 | 285 | |
---|
282 | | - key_5 { |
---|
| 286 | + key-5 { |
---|
283 | 287 | keypad,row = <2>; |
---|
284 | 288 | keypad,column = <1>; |
---|
285 | 289 | linux,code = <KEY_CAMERA>; |
---|
286 | 290 | }; |
---|
287 | 291 | |
---|
288 | | - key_6 { |
---|
| 292 | + key-6 { |
---|
289 | 293 | keypad,row = <2>; |
---|
290 | 294 | keypad,column = <2>; |
---|
291 | 295 | linux,code = <KEY_VOLUMEDOWN>; |
---|
.. | .. |
---|
306 | 310 | |
---|
307 | 311 | &uart3 { |
---|
308 | 312 | status = "okay"; |
---|
| 313 | +}; |
---|
| 314 | + |
---|
| 315 | +&rtc { |
---|
| 316 | + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; |
---|
| 317 | + clock-names = "rtc", "rtc_src"; |
---|
309 | 318 | }; |
---|
310 | 319 | |
---|
311 | 320 | &sdhci0 { |
---|
.. | .. |
---|
344 | 353 | samsung,i2c-slave-addr = <0x10>; |
---|
345 | 354 | status = "okay"; |
---|
346 | 355 | |
---|
347 | | - tsp@4a { |
---|
| 356 | + touchscreen@4a { |
---|
348 | 357 | compatible = "atmel,maxtouch"; |
---|
349 | 358 | reg = <0x4a>; |
---|
350 | 359 | interrupt-parent = <&gpj0>; |
---|
351 | | - interrupts = <5 2>; |
---|
| 360 | + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; |
---|
352 | 361 | |
---|
353 | 362 | atmel,x-line = <17>; |
---|
354 | 363 | atmel,y-line = <11>; |
---|
.. | .. |
---|
376 | 385 | vdd_core-supply = <&ldo14_reg>; |
---|
377 | 386 | |
---|
378 | 387 | clock-frequency = <16000000>; |
---|
379 | | - clocks = <&clock_cam 0>; |
---|
| 388 | + clocks = <&camera 0>; |
---|
380 | 389 | clock-names = "mclk"; |
---|
381 | | - nreset-gpios = <&gpb 2 0>; |
---|
382 | | - nstby-gpios = <&gpb 0 0>; |
---|
| 390 | + nreset-gpios = <&gpb 2 GPIO_ACTIVE_HIGH>; |
---|
| 391 | + nstby-gpios = <&gpb 0 GPIO_ACTIVE_HIGH>; |
---|
383 | 392 | |
---|
384 | 393 | port { |
---|
385 | 394 | noon010pc30_ep: endpoint { |
---|