aad5972d4fcca117b5eba99c87691a70a63b8bb4
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188-pinctrl.dtsi
1 #include <dt-bindings/interrupt-controller/arm-gic.h>
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/pinctrl/rockchip.h>
4 #include <dt-bindings/pinctrl/rockchip-rk3188.h>
5
6 / { 
7         pinctrl@20008000 {
8                 compatible = "rockchip,rk3188-pinctrl";
9                 reg = <0x20008000 0xa0>,
10                       <0x20008164 0x1a0>;
11                 reg-names = "base", "pull";
12                 #address-cells = <1>;
13                 #size-cells = <1>;
14                 ranges;
15
16                 gpio0: gpio0@0x2000a000 {
17                         compatible = "rockchip,rk3188-gpio-bank0";
18                         reg = <0x2000a000 0x100>,
19                               <0x20004064 0x8>;
20                         interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
21                         clocks = <&clk_gates8 9>;
22
23                         gpio-controller;
24                         #gpio-cells = <2>;
25
26                         interrupt-controller;
27                         #interrupt-cells = <2>;
28                 };
29
30                 gpio1: gpio1@0x2003c000 {
31                         compatible = "rockchip,gpio-bank";
32                         reg = <0x2003c000 0x100>;
33                         interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
34                         clocks = <&clk_gates8 10>;
35
36                         gpio-controller;
37                         #gpio-cells = <2>;
38
39                         interrupt-controller;
40                         #interrupt-cells = <2>;
41                 };
42
43                 gpio2: gpio2@2003e000 {
44                         compatible = "rockchip,gpio-bank";
45                         reg = <0x2003e000 0x100>;
46                         interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
47                         clocks = <&clk_gates8 11>;
48
49                         gpio-controller;
50                         #gpio-cells = <2>;
51
52                         interrupt-controller;
53                         #interrupt-cells = <2>;
54                 };
55
56                 gpio3: gpio3@20080000 {
57                         compatible = "rockchip,gpio-bank";
58                         reg = <0x20080000 0x100>;
59                         interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
60                         clocks = <&clk_gates8 12>;
61
62                         gpio-controller;
63                         #gpio-cells = <2>;
64
65                         interrupt-controller;
66                         #interrupt-cells = <2>;
67                 };
68
69                 gpio15: gpio15@20082000 {
70                         compatible = "rockchip,gpio-bank";
71                         reg = <0x20082000 0x100>;
72                         interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
73
74                         gpio-controller;
75                         #gpio-cells = <2>;
76
77                         interrupt-controller;
78                         #interrupt-cells = <2>;
79                 };
80
81                 pcfg_pull_up: pcfg_pull_up {
82                         bias-pull-up;
83                 };
84
85                 pcfg_pull_down: pcfg_pull_down {
86                         bias-pull-down;
87                 };
88
89                 pcfg_pull_none: pcfg_pull_none {
90                         bias-disable;
91                 };
92
93                 gpio1_uart0 {
94                         uart0_xfer: uart0-xfer {
95                                 rockchip,pins = <UART0_SIN>,
96                                                 <UART0_SOUT>;
97                                 rockchip,pull = <VALUE_PULL_DISABLE>;
98                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
99                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
100                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
101                         };
102
103                         uart0_cts: uart0-cts {
104                                 rockchip,pins = <UART0_CTSN>;
105                                 rockchip,pull = <VALUE_PULL_DISABLE>;
106                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
107                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
108                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
109                         };
110
111                         uart0_rts: uart0-rts {
112                                 rockchip,pins = <UART0_RTSN>;
113                                 rockchip,pull = <VALUE_PULL_DISABLE>;
114                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
115                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
116                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
117                         };
118                 };
119
120                 gpio1_uart1 {
121                         uart1_xfer: uart1-xfer {
122                                 rockchip,pins = <UART1_SIN>,
123                                                 <UART1_SOUT>;
124                                 rockchip,pull = <VALUE_PULL_DISABLE>;
125                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
126                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
127                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
128                         };
129
130                         uart1_cts: uart1-cts {
131                                 rockchip,pins = <UART1_CTSN>;
132                                 rockchip,pull = <VALUE_PULL_DISABLE>;
133                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
134                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
135                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
136                         };
137
138                         uart1_rts: uart1-rts {
139                                 rockchip,pins = <UART1_RTSN>;
140                                 rockchip,pull = <VALUE_PULL_DISABLE>;
141                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
142                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
143                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
144                         };
145                 };
146
147                 gpio1_uart2 {
148                         uart2_xfer: uart2-xfer {
149                                 rockchip,pins = <UART2_SIN>,
150                                                 <UART2_SOUT>;
151                                 rockchip,pull = <VALUE_PULL_DISABLE>;
152                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
153                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
154                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
155                         };
156                         /* no rts / cts for uart2 */
157                 };
158
159                 gpio1_uart3 {
160                         uart3_xfer: uart3-xfer {
161                                 rockchip,pins = <UART3_SIN>,
162                                                 <UART3_SOUT>;
163                                 rockchip,pull = <VALUE_PULL_DISABLE>;
164                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
165                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
166                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
167                         };
168
169                         uart3_cts: uart3-cts {
170                                 rockchip,pins = <UART3_CTSN>;
171                                 rockchip,pull = <VALUE_PULL_DISABLE>;
172                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
173                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
174                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
175                         };
176
177                         uart3_rts: uart3-rts {
178                                 rockchip,pins = <UART3_RTSN>;
179                                 rockchip,pull = <VALUE_PULL_DISABLE>;
180                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
181                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
182                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
183                         };
184                 };
185
186                 gpio1_i2c0 {
187                         i2c0_sda:i2c0-sda {
188                                 rockchip,pins = <I2C0_SDA>;
189                                 rockchip,pull = <VALUE_PULL_DISABLE>;
190                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
191                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
192                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
193                         };
194
195                         i2c0_scl:i2c0-scl {
196                                 rockchip,pins = <I2C0_SCL>;
197                                 rockchip,pull = <VALUE_PULL_DISABLE>;
198                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
199                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
200                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
201                         };
202
203                         i2c0_gpio: i2c0-gpio {
204                                 rockchip,pins = <FUNC_TO_GPIO(I2C0_SDA)>, <FUNC_TO_GPIO(I2C0_SCL)>;
205                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
206                         };
207                 };
208
209                 gpio1_i2c1 {
210                         i2c1_sda:i2c1-sda {
211                                 rockchip,pins = <I2C1_SDA>;
212                                 rockchip,pull = <VALUE_PULL_DISABLE>;
213                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
214                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
215                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
216                         };
217
218                         i2c1_scl:i2c1-scl {
219                                 rockchip,pins = <I2C1_SCL>;
220                                 rockchip,pull = <VALUE_PULL_DISABLE>;
221                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
222                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
223                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
224                         };
225
226                         i2c1_gpio: i2c1-gpio {
227                                 rockchip,pins = <FUNC_TO_GPIO(I2C1_SDA)>, <FUNC_TO_GPIO(I2C1_SCL)>;
228                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
229                         };
230                 };
231
232                 gpio1_i2c2 {
233                         i2c2_sda:i2c2-sda {
234                                 rockchip,pins = <I2C2_SDA>;
235                                 rockchip,pull = <VALUE_PULL_DISABLE>;
236                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
237                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
238                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
239                         };
240
241                         i2c2_scl:i2c2-scl {
242                                 rockchip,pins = <I2C2_SCL>;
243                                 rockchip,pull = <VALUE_PULL_DISABLE>;
244                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
245                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
246                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
247                         };
248
249                         i2c2_gpio: i2c2-gpio {
250                                 rockchip,pins = <FUNC_TO_GPIO(I2C2_SDA)>, <FUNC_TO_GPIO(I2C2_SCL)>;
251                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
252                         };
253                 };
254
255                 gpio1_i2c3 {
256                         i2c3_sda:i2c3-sda {
257                                 rockchip,pins = <I2C3_SDA>;
258                                 rockchip,pull = <VALUE_PULL_DISABLE>;
259                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
260                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
261                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
262                         };
263
264                         i2c3_scl:i2c3-scl {
265                                 rockchip,pins = <I2C3_SCL>;
266                                 rockchip,pull = <VALUE_PULL_DISABLE>;
267                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
268                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
269                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
270                         };
271
272                         i2c3_gpio: i2c3-gpio {
273                                 rockchip,pins = <FUNC_TO_GPIO(I2C3_SDA)>, <FUNC_TO_GPIO(I2C3_SCL)>;
274                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
275                         };
276                 };
277
278                 gpio1_i2c4 {
279                         i2c4_sda:i2c4-sda {
280                                 rockchip,pins = <I2C4_SDA>;
281                                 rockchip,pull = <VALUE_PULL_DISABLE>;
282                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
283                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
284                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
285                         };
286
287                         i2c4_scl:i2c4-scl {
288                                 rockchip,pins = <I2C4_SCL>;
289                                 rockchip,pull = <VALUE_PULL_DISABLE>;
290                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
291                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
292                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
293                         };
294
295                         i2c4_gpio: i2c4-gpio {
296                                 rockchip,pins = <FUNC_TO_GPIO(I2C4_SDA)>, <FUNC_TO_GPIO(I2C4_SCL)>;
297                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
298                         };
299                 };
300
301                 gpio1_spi0 {
302                         spi0_txd:spi0-txd {
303                                 rockchip,pins = <SPI0_TXD>;
304                                 rockchip,pull = <VALUE_PULL_DISABLE>;
305                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
306                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
307                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
308                         };
309
310                         spi0_rxd:spi0-rxd {
311                                 rockchip,pins = <SPI0_RXD>;
312                                 rockchip,pull = <VALUE_PULL_DISABLE>;
313                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
314                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
315                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
316                         };
317
318                         spi0_clk:spi0-clk {
319                                 rockchip,pins = <SPI0_CLK>;
320                                 rockchip,pull = <VALUE_PULL_DISABLE>;
321                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
322                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
323                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
324                         };
325
326                         spi0_cs0:spi0-cs0 {
327                                 rockchip,pins = <SPI0_CS0>;
328                                 rockchip,pull = <VALUE_PULL_DISABLE>;
329                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
330                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
331                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
332                         };
333
334                         spi0_cs1:spi0-cs1 {
335                                 rockchip,pins = <SPI0_CS1>;
336                                 rockchip,pull = <VALUE_PULL_DISABLE>;
337                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
338                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
339                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
340                         };
341
342                 };
343
344                 gpio1_spi1 {
345                         spi1_txd:spi1-txd {
346                                 rockchip,pins = <SPI1_TXD>;
347                                 rockchip,pull = <VALUE_PULL_DISABLE>;
348                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
349                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
350                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
351                         };
352
353                         spi1_rxd:spi1-rxd {
354                                 rockchip,pins = <SPI1_RXD>;
355                                 rockchip,pull = <VALUE_PULL_DISABLE>;
356                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
357                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
358                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
359                         };
360
361                         spi1_clk:spi1-clk {
362                                 rockchip,pins = <SPI1_CLK>;
363                                 rockchip,pull = <VALUE_PULL_DISABLE>;
364                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
365                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
366                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
367                         };
368
369                         spi1_cs0:spi1-cs0 {
370                                 rockchip,pins = <SPI1_CS0>;
371                                 rockchip,pull = <VALUE_PULL_DISABLE>;
372                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
373                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
374                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
375                         };
376
377                         spi1_cs1:spi1-cs1 {
378                                 rockchip,pins = <SPI1_CS1>;
379                                 rockchip,pull = <VALUE_PULL_DISABLE>;
380                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
381                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
382                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
383                         };
384
385                 };
386
387                 gpio1_i2s0 {
388
389                         i2s0_mclk:i2s0-mclk {
390                                 rockchip,pins = <I2S0_MCLK>;
391                                 rockchip,pull = <VALUE_PULL_DISABLE>;
392                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
393                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
394                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
395
396                         };
397
398                         i2s0_sclk:i2s0-sclk {
399                                 rockchip,pins = <I2S0_SCLK>;
400                                 rockchip,pull = <VALUE_PULL_DISABLE>;
401                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
402                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
403                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
404
405                         };
406
407                         i2s0_lrckrx:i2s0-lrckrx {
408                                 rockchip,pins = <I2S0_LRCKRX>;
409                                 rockchip,pull = <VALUE_PULL_DISABLE>;
410                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
411                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
412                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
413
414                         };
415
416                         i2s0_lrcktx:i2s0-lrcktx {
417                                 rockchip,pins = <I2S0_LRCKTX>;
418                                 rockchip,pull = <VALUE_PULL_DISABLE>;
419                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
420                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
421                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
422
423                         };
424
425                         i2s0_sdo:i2s0-sdo {
426                                 rockchip,pins = <I2S0_SDO>;
427                                 rockchip,pull = <VALUE_PULL_DISABLE>;
428                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
429                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
430                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
431
432                         };
433
434                         i2s0_sdi:i2s0-sdi {
435                                 rockchip,pins = <I2S0_SDI>;
436                                 rockchip,pull = <VALUE_PULL_DISABLE>;
437                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
438                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
439                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
440
441                         };
442
443                 };
444         
445                 gpio2_lcdc1 {
446                         lcdc1_lcdc:lcdc1-lcdc {
447                                 rockchip,pins = <LCDC1_D0>,
448                                                 <LCDC1_D1>,
449                                                 <LCDC1_D2>,
450                                                 <LCDC1_D3>,
451                                                 <LCDC1_D4>,
452                                                 <LCDC1_D5>,
453                                                 <LCDC1_D6>,
454                                                 <LCDC1_D7>,
455                                                 <LCDC1_D8>,
456                                                 <LCDC1_D9>,
457                                                 <LCDC1_D10>,
458                                                 <LCDC1_D11>,
459                                                 <LCDC1_D12>,
460                                                 <LCDC1_D13>,
461                                                 <LCDC1_D14>,
462                                                 <LCDC1_D15>,
463                                                 <LCDC1_D16>,
464                                                 <LCDC1_D17>,
465                                                 <LCDC1_D18>,
466                                                 <LCDC1_D19>,
467                                                 <LCDC1_D20>,
468                                                 <LCDC1_D21>,
469                                                 <LCDC1_D22>,
470                                                 <LCDC1_D23>,
471                                                 <LCDC1_DCLK>,
472                                                 <LCDC1_DEN>,
473                                                 <LCDC1_HSYNC>,
474                                                 <LCDC1_VSYNC>;
475                                 rockchip,pull = <VALUE_PULL_DISABLE>;
476                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
477                         };
478                         
479                         lcdc1_gpio:lcdc1-gpio {
480                                 rockchip,pins = <FUNC_TO_GPIO(LCDC1_D0)>,
481                                                 <FUNC_TO_GPIO(LCDC1_D1)>,
482                                                 <FUNC_TO_GPIO(LCDC1_D2)>,
483                                                 <FUNC_TO_GPIO(LCDC1_D3)>,
484                                                 <FUNC_TO_GPIO(LCDC1_D4)>,
485                                                 <FUNC_TO_GPIO(LCDC1_D5)>,
486                                                 <FUNC_TO_GPIO(LCDC1_D6)>,
487                                                 <FUNC_TO_GPIO(LCDC1_D7)>,
488                                                 <FUNC_TO_GPIO(LCDC1_D8)>,
489                                                 <FUNC_TO_GPIO(LCDC1_D9)>,
490                                                 <FUNC_TO_GPIO(LCDC1_D10)>,
491                                                 <FUNC_TO_GPIO(LCDC1_D11)>,
492                                                 <FUNC_TO_GPIO(LCDC1_D12)>,
493                                                 <FUNC_TO_GPIO(LCDC1_D13)>,
494                                                 <FUNC_TO_GPIO(LCDC1_D14)>,
495                                                 <FUNC_TO_GPIO(LCDC1_D15)>,
496                                                 <FUNC_TO_GPIO(LCDC1_D16)>,
497                                                 <FUNC_TO_GPIO(LCDC1_D17)>,
498                                                 <FUNC_TO_GPIO(LCDC1_D18)>,
499                                                 <FUNC_TO_GPIO(LCDC1_D19)>,
500                                                 <FUNC_TO_GPIO(LCDC1_D20)>,
501                                                 <FUNC_TO_GPIO(LCDC1_D21)>,
502                                                 <FUNC_TO_GPIO(LCDC1_D22)>,
503                                                 <FUNC_TO_GPIO(LCDC1_D23)>,
504                                                 <FUNC_TO_GPIO(LCDC1_DCLK)>,
505                                                 <FUNC_TO_GPIO(LCDC1_DEN)>,
506                                                 <FUNC_TO_GPIO(LCDC1_HSYNC)>,
507                                                 <FUNC_TO_GPIO(LCDC1_VSYNC)>;
508                                 rockchip,pull = <VALUE_PULL_DISABLE>;
509                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
510                                 
511                         };
512                         
513                 };
514
515                 gpio1_spdif {
516                         spdif_tx: spdif-tx {
517                                 rockchip,pins = <SPDIF_TX>;
518                                 rockchip,pull = <VALUE_PULL_DISABLE>;
519                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
520                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
521                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
522
523                         };
524                 };
525
526                 gpio3_pwm {
527                         pwm0_pin:pwm0 {
528                                 rockchip,pins = <PWM0>;
529                                 rockchip,pull = <VALUE_PULL_DISABLE>;
530                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
531                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
532                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
533
534                         };
535
536
537                         pwm1_pin:pwm1 {
538                                 rockchip,pins = <PWM1>;
539                                 rockchip,pull = <VALUE_PULL_DISABLE>;
540                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
541                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
542                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
543                         };
544
545
546                         pwm2_pin:pwm2 {
547                                 rockchip,pins = <PWM2>;
548                                 rockchip,pull = <VALUE_PULL_DISABLE>;
549                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
550                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
551                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
552                         };
553
554
555                         pwm3_pin:pwm3 {
556                                 rockchip,pins = <PWM3>;
557                                 rockchip,pull = <VALUE_PULL_DISABLE>;
558                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
559                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
560                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
561                         };
562
563                 };
564
565                 
566                 gpio3_sdio {
567                         sd0_clk: sd0-clk {
568                                 rockchip,pins = <MMC0_CLKOUT>;
569                                 rockchip,pull = <VALUE_PULL_DISABLE>;
570                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
571                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
572                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
573                         };
574
575                         sd0_cmd: sd0-cmd {
576                                 rockchip,pins = <MMC0_CMD>;
577                                 rockchip,pull = <VALUE_PULL_DISABLE>;
578                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
579                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
580                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
581                         };
582
583                         sd0_cd: sd0-cd {
584                                 rockchip,pins = <MMC0_DETN>;
585                                 rockchip,pull = <VALUE_PULL_DISABLE>;
586                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
587                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
588                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
589                         };
590
591                         sd0_wp: sd0-wp {
592                                 rockchip,pins = <MMC0_WRPRT>;
593                                 rockchip,pull = <VALUE_PULL_DISABLE>;
594                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
595                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
596                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
597                         };
598
599                         sd0_pwr: sd0-pwr {
600                                 rockchip,pins = <MMC0_PWREN>;
601                                 rockchip,pull = <VALUE_PULL_DISABLE>;
602                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
603                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
604                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
605                         };
606
607                         sd0_bus1: sd0-bus-width1 {
608                                 rockchip,pins = <MMC0_D0>;
609                                 rockchip,pull = <VALUE_PULL_DISABLE>;
610                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
611                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
612                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
613                         };
614
615                         sd0_bus4: sd0-bus-width4 {
616                                 rockchip,pins = <MMC0_D0>,
617                                                 <MMC0_D1>,
618                                                 <MMC0_D2 >,
619                                                 <MMC0_D3>;
620                                 rockchip,pull = <VALUE_PULL_DISABLE>;
621                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
622                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
623                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
624                         };
625                 };
626
627                 gpio3_sdmmc {
628                         sd1_clk: sd1-clk {
629                                 rockchip,pins = <MMC1_CLKOUT>;
630                                 rockchip,pull = <VALUE_PULL_DISABLE>;
631                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
632                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
633                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
634                         };
635
636                         sd1_cmd: sd1-cmd {
637                                 rockchip,pins = <MMC1_CMD>;
638                                 rockchip,pull = <VALUE_PULL_DISABLE>;
639                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
640                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
641                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
642                         };
643
644                         sd1_cd: sd1-cd {
645                                 rockchip,pins = <MMC1_DETN>;
646                                 rockchip,pull = <VALUE_PULL_DISABLE>;
647                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
648                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
649                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
650                         };
651
652                         sd1_wp: sd1-wp {
653                                 rockchip,pins = <MMC1_WRPRT>;
654                                 rockchip,pull = <VALUE_PULL_DISABLE>;
655                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
656                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
657                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
658                         };
659
660                         sd1_bus1: sd1-bus-width1 {
661                                 rockchip,pins = <MMC1_D0>;
662                                 rockchip,pull = <VALUE_PULL_DISABLE>;
663                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
664                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
665                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
666                         };
667
668                         sd1_bus4: sd1-bus-width4 {
669                                 rockchip,pins = <MMC1_D0>,
670                                                 <MMC1_D1>,
671                                                 <MMC1_D2>,
672                                                 <MMC1_D3>;
673                                 rockchip,pull = <VALUE_PULL_DISABLE>;
674                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
675                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
676                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
677                         };
678                 };
679
680                 gps {
681                         gps_mag:gps-mag {
682                                 rockchip,pins = <GPS_MAG>;
683                                 rockchip,pull = <VALUE_PULL_DISABLE>;
684                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
685                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
686                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
687
688                         };
689
690                         gps_sig:gps-sig {
691                                 rockchip,pins = <GPS_SIG>;
692                                 rockchip,pull = <VALUE_PULL_DISABLE>;
693                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
694                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
695                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
696
697                         };
698
699
700                         gps_rfclk:gps-rfclk {
701                                 rockchip,pins = <GPS_RFCLK>;
702                                 rockchip,pull = <VALUE_PULL_DISABLE>;
703                                 //rockchip,voltage = <VALUE_VOL_DEFAULT>;
704                                 rockchip,drive = <VALUE_DRV_DEFAULT>;
705                                 //rockchip,tristate = <VALUE_TRI_DEFAULT>;
706
707                         };
708
709                 };
710
711                 vol_domain {
712                         ap0_vcc:ap0-vcc {
713                                 rockchip,pins = <VIRTUAL_PIN_FOR_AP0_VCC>;
714                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
715                         };
716                         
717                         ap1_vcc:ap1-vcc {
718                                 rockchip,pins = <VIRTUAL_PIN_FOR_AP1_VCC>;
719                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
720                         };
721                         
722                         cif_vcc:cif-vcc {
723                                 rockchip,pins = <VIRTUAL_PIN_FOR_CIF_VCC>;
724                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
725                         };
726
727                         flash_vcc:flash-vcc {
728                                 rockchip,pins = <VIRTUAL_PIN_FOR_FLASH_VCC>;
729                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
730                         };
731                         
732                         vccio0_vcc:vccio0-vcc {
733                                 rockchip,pins = <VIRTUAL_PIN_FOR_VCCIO0_VCC>;
734                                 rockchip,voltage = <VALUE_VOL_DEFAULT>; 
735                         };
736
737                         vccio1_vcc:vccio1-vcc {
738                                 rockchip,pins = <VIRTUAL_PIN_FOR_VCCIO1_VCC>;
739                                 rockchip,voltage = <VALUE_VOL_DEFAULT>; 
740                         };
741
742                         lcdc0_vcc:lcdc0-vcc {
743                                 rockchip,pins = <VIRTUAL_PIN_FOR_LCDC0_VCC>;
744                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
745                         };
746
747                         lcdc1_vcc:lcdc1-vcc {
748                                 rockchip,pins = <VIRTUAL_PIN_FOR_LCDC1_VCC>;
749                                 rockchip,voltage = <VALUE_VOL_DEFAULT>;
750                         };
751
752                 };
753
754                 //to add
755         };
756 };