Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk312x-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-rk312x.h>
5
6 / { 
7         pinctrl: pinctrl@20008000 {
8                 compatible = "rockchip,rk312x-pinctrl";
9                 reg = <0x20008000 0xA8>,
10                       <0x200080A8 0x4C>,
11                       <0x20008118 0x20>,
12                       <0x20008100 0x04>;
13                 reg-names = "base", "mux", "pull", "drv";
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16                 ranges;
17
18                 gpio0: gpio0@2007c000 {
19                         compatible = "rockchip,gpio-bank";
20                         reg = <0x2007c000 0x100>;
21                         interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
22                         clocks = <&clk_gates8 9>;
23
24                         gpio-controller;
25                         #gpio-cells = <2>;
26
27                         interrupt-controller;
28                         #interrupt-cells = <2>;
29                 };
30
31                 gpio1: gpio1@20080000 {
32                         compatible = "rockchip,gpio-bank";
33                         reg = <0x20080000 0x100>;
34                         interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
35                         clocks = <&clk_gates8 10>;
36
37                         gpio-controller;
38                         #gpio-cells = <2>;
39
40                         interrupt-controller;
41                         #interrupt-cells = <2>;
42                 };
43
44                 gpio2: gpio2@20084000 {
45                         compatible = "rockchip,gpio-bank";
46                         reg = <0x20084000 0x100>;
47                         interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
48                         clocks = <&clk_gates8 11>;
49
50                         gpio-controller;
51                         #gpio-cells = <2>;
52
53                         interrupt-controller;
54                         #interrupt-cells = <2>;
55                 };
56
57                 gpio3: gpio3@20088000 {
58                         compatible = "rockchip,gpio-bank";
59                         reg = <0x20088000 0x100>;
60                         interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
61                         clocks = <&clk_gates8 12>;
62
63                         gpio-controller;
64                         #gpio-cells = <2>;
65
66                         interrupt-controller;
67                         #interrupt-cells = <2>;
68                 };
69
70                 gpio15: gpio15@2008A000 {
71                         compatible = "rockchip,gpio-bank";
72                         reg = <0x20086000 0x100>;
73                         interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;//127 = 160-32-1
74                         clocks = <&clk_gates8 12>;
75
76                         gpio-controller;
77                         #gpio-cells = <2>;
78
79                         interrupt-controller;
80                         #interrupt-cells = <2>;
81                 };
82
83                 pcfg_pull_up: pcfg_pull_up {
84                         bias-pull-up;
85                 };
86
87                 pcfg_pull_down: pcfg_pull_down {
88                         bias-pull-down;
89                 };
90
91                 pcfg_pull_none: pcfg_pull_none {
92                         bias-disable;
93                 };
94
95                 gpio0_uart0 {
96                         uart0_xfer: uart0-xfer {
97                                 rockchip,pins = <UART0_SIN>,
98                                                 <UART0_SOUT>;
99                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
100                                 
101                                 
102                         };
103
104                         uart0_cts: uart0-cts {
105                                 rockchip,pins = <UART0_CTSN>;
106                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
107                                 
108                                 
109                         };
110
111                         uart0_rts: uart0-rts {
112                                 rockchip,pins = <UART0_RTSN>;
113                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
114                                 
115                                 
116                         };
117
118                         uart0_rts_gpio: uart0-rts-gpio {
119                                 rockchip,pins = <FUNC_TO_GPIO(UART0_RTSN)>;
120                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
121                                 
122                         };
123                 };
124
125                 gpio1_uart1 {
126                         uart1_xfer: uart1-xfer {
127                                 rockchip,pins = <UART1_SIN>,
128                                                 <UART1_SOUT>;
129                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
130                                 
131                                 
132                         };
133
134                         uart1_cts: uart1-cts {
135                                 rockchip,pins = <UART1_CTSN>;
136                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
137                                 
138                                 
139                         };
140
141                         uart1_rts: uart1-rts {
142                                 rockchip,pins = <UART1_RTSN>;
143                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
144                                 
145                                 
146                         };
147
148                         uart1_rts_gpio: uart1-rts-gpio {
149                                 rockchip,pins = <FUNC_TO_GPIO(UART1_RTSN)>;
150                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
151                                 
152                         };
153                 };
154                 
155                 gpio1_uart2 {
156                         uart2_xfer: uart2-xfer {
157                                 rockchip,pins = <UART2_SIN>,
158                                                 <UART2_SOUT>;
159                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
160                                 
161                                 
162                         };
163
164                         uart2_cts: uart2-cts {
165                                 rockchip,pins = <UART2_CTSN>;
166                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
167                                 
168                                 
169                         };
170
171                         uart2_rts: uart2-rts {
172                                 rockchip,pins = <UART2_RTSN>;
173                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
174                                 
175                                 
176                         };
177
178                         uart2_rts_gpio: uart2-rts-gpio {
179                                 rockchip,pins = <FUNC_TO_GPIO(UART2_RTSN)>;
180                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
181                                 
182                         };
183                 };
184
185
186                 gpio0_i2c0 {
187                         i2c0_sda:i2c0-sda {
188                                 rockchip,pins = <I2C0_SDA>;
189                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
190                                 
191                                 
192                         };
193
194                         i2c0_scl:i2c0-scl {
195                                 rockchip,pins = <I2C0_SCL>;
196                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
197                                 
198                                 
199                         };
200
201                         i2c0_gpio: i2c0-gpio {
202                                 rockchip,pins = <FUNC_TO_GPIO(I2C0_SDA)>, <FUNC_TO_GPIO(I2C0_SCL)>;
203                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
204                                 
205                         };
206                 };
207
208                 gpio0_i2c1 {
209                         i2c1_sda:i2c1-sda {
210                                 rockchip,pins = <I2C1_SDA>;
211                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
212                                 
213                                 
214                         };
215
216                         i2c1_scl:i2c1-scl {
217                                 rockchip,pins = <I2C1_SCL>;
218                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
219                                 
220                                 
221                         };
222
223                         i2c1_gpio: i2c1-gpio {
224                                 rockchip,pins = <FUNC_TO_GPIO(I2C1_SDA)>, <FUNC_TO_GPIO(I2C1_SCL)>;
225                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
226                                 
227                         };
228                 };
229
230                 gpio1_i2c2 {
231                         i2c2_sda:i2c2-sda {
232                                 rockchip,pins = <I2C2_SDA>;
233                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
234                                 
235                                 
236                         };
237
238                         i2c2_scl:i2c2-scl {
239                                 rockchip,pins = <I2C2_SCL>;
240                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
241                                 
242                                 
243                         };
244
245                         i2c2_gpio: i2c2-gpio {
246                                 rockchip,pins = <FUNC_TO_GPIO(I2C2_SDA)>, <FUNC_TO_GPIO(I2C2_SCL)>;
247                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
248                                 
249                         };
250                 };
251
252
253                 gpio0_i2c3 {
254                         i2c3_sda:i2c3-sda {
255                                 rockchip,pins = <I2C3_SDA>;
256                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
257                                 
258                                 
259                         };
260
261                         i2c3_scl:i2c3-scl {
262                                 rockchip,pins = <I2C3_SCL>;
263                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
264                                 
265                                 
266                         };
267
268                         i2c3_gpio: i2c3-gpio {
269                                 rockchip,pins = <FUNC_TO_GPIO(I2C3_SDA)>, <FUNC_TO_GPIO(I2C3_SCL)>;
270                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
271                                 
272                         };
273                 };
274
275                 
276
277                 gpio1_spi0 {
278                         spi0_txd_mux0:spi0-txd-mux0 {
279                                 rockchip,pins = <SPI0_TXD_MUX0>;
280                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
281                                 
282                         };
283
284                         spi0_rxd_mux0:spi0-rxd-mux0 {
285                                 rockchip,pins = <SPI0_RXD_MUX0>;
286                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
287                                 
288                         };
289
290                         spi0_clk_mux0:spi0-clk-mux0 {
291                                 rockchip,pins = <SPI0_CLK_MUX0>;
292                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
293                                 
294                         };
295
296                         spi0_cs0_mux0:spi0-cs0-mux0 {
297                                 rockchip,pins = <SPI0_CS0_MUX0>;
298                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
299                                 
300                         };
301
302                         spi0_cs1_mux0:spi0-cs1-mux0 {
303                                 rockchip,pins = <SPI0_CS1_MUX0>;
304                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
305                                 
306                         };
307
308
309
310                         spi0_txd_mux1:spi0-txd-mux1 {
311                                 rockchip,pins = <SPI0_TXD_MUX1>;
312                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
313                                 
314                         };
315
316                         spi0_rxd_mux1:spi0-rxd-mux1 {
317                                 rockchip,pins = <SPI0_RXD_MUX1>;
318                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
319                                 
320                         };
321
322                         spi0_clk_mux1:spi0-clk-mux1 {
323                                 rockchip,pins = <SPI0_CLK_MUX1>;
324                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
325                                 
326                         };
327
328                         spi0_cs0_mux1:spi0-cs0-mux1 {
329                                 rockchip,pins = <SPI0_CS0_MUX1>;
330                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
331                                 
332                         };
333
334                         spi0_cs1_mux1:spi0-cs1-mux1 {
335                                 rockchip,pins = <SPI0_CS1_MUX1>;
336                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
337                                 
338                         };
339
340
341                         
342                         spi0_txd_mux2:spi0-txd-mux2 {
343                                 rockchip,pins = <SPI0_TXD_MUX2>;
344                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
345                                 
346                         };
347
348                         spi0_rxd_mux2:spi0-rxd-mux2 {
349                                 rockchip,pins = <SPI0_RXD_MUX2>;
350                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
351                                 
352                         };
353
354                         spi0_clk_mux2:spi0-clk-mux2 {
355                                 rockchip,pins = <SPI0_CLK_MUX2>;
356                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
357                                 
358                         };
359
360                         spi0_cs0_mux2:spi0-cs0-mux2 {
361                                 rockchip,pins = <SPI0_CS0_MUX2>;
362                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
363                                 
364                         };
365
366                 };
367
368                 gpio1_hdmi {
369                         hdmi_cec:hdmi-cec {
370                                 rockchip,pins = <HDMI_CEC>;
371                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
372                                 //rockchip,drive = <VALUE_DRV_DEFAULT>;
373                         };
374
375                         hdmi_sda:hdmi-sda {
376                                 rockchip,pins = <HDMI_DSDA>;
377                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
378                                 //rockchip,drive = <VALUE_DRV_DEFAULT>;
379                         };
380
381                         hdmi_scl:hdmi-scl {
382                                 rockchip,pins = <HDMI_DSCL>;
383                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
384                                 //rockchip,drive = <VALUE_DRV_DEFAULT>;
385                         };
386
387                         hdmi_hpd:hdmi-hpd {
388                                 rockchip,pins = <HDMI_HPD>;
389                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
390                                 //rockchip,drive = <VALUE_DRV_DEFAULT>;
391
392                         };
393
394                         hdmi_gpio: hdmi-gpio {
395                                 rockchip,pins = <FUNC_TO_GPIO(HDMI_CEC)>, <FUNC_TO_GPIO(HDMI_DSDA)>, <FUNC_TO_GPIO(HDMI_DSCL)>, <FUNC_TO_GPIO(HDMI_HPD)>;
396                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
397                                 //rockchip,drive = <VALUE_DRV_DEFAULT>;                         
398                         };
399                 };              
400
401                 gpio1_i2s0 {
402                         i2s0_mclk_mux0:i2s0-mclk-mux0 {
403                                 rockchip,pins = <I2S0_MCLK_MUX0>;
404                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
405                                 
406                         };
407
408                         i2s0_sclk_mux0:i2s0-sclk-mux0 {
409                                 rockchip,pins = <I2S0_SCLK_MUX0>;
410                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
411                                 
412                         };
413
414                         i2s0_lrckrx_mux0:i2s0-lrckrx-mux0 {
415                                 rockchip,pins = <I2S0_LRCKRX_MUX0>;
416                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
417                                 
418                         };
419
420                         i2s0_lrcktx_mux0:i2s0-lrcktx-mux0 {
421                                 rockchip,pins = <I2S0_LRCKTX_MUX0>;
422                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
423                                 
424                         };
425
426                         i2s0_sdo_mux0:i2s0-sdo-mux0 {
427                                 rockchip,pins = <I2S0_SDO_MUX0>;
428                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
429                                 
430                         };
431
432                         i2s0_sdi_mux0:i2s0-sdi-mux0 {
433                                 rockchip,pins = <I2S0_SDI_MUX0>;
434                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
435                                 
436                         };
437
438                         i2s0_gpio_mux0: i2s0-gpio-mux0 {
439                                 rockchip,pins = <FUNC_TO_GPIO(I2S0_MCLK_MUX0)>,
440                                                 <FUNC_TO_GPIO(I2S0_SCLK_MUX0)>,
441                                                 <FUNC_TO_GPIO(I2S0_LRCKRX_MUX0)>,
442                                                 <FUNC_TO_GPIO(I2S0_LRCKTX_MUX0)>,
443                                                 <FUNC_TO_GPIO(I2S0_SDO_MUX0)>,
444                                                 <FUNC_TO_GPIO(I2S0_SDI_MUX0)>;
445                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
446                                 
447                         };
448
449
450                         i2s0_mclk_mux1:i2s0-mclk-mux1 {
451                                 rockchip,pins = <I2S0_MCLK_MUX1>;
452                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
453                                 
454                         };
455
456                         i2s0_sclk_mux1:i2s0-sclk-mux1 {
457                                 rockchip,pins = <I2S0_SCLK_MUX1>;
458                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
459                                 
460                         };
461
462                         i2s0_lrckrx_mux1:i2s0-lrckrx-mux1 {
463                                 rockchip,pins = <I2S0_LRCKRX_MUX1>;
464                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
465                                 
466                         };
467
468                         i2s0_lrcktx_mux1:i2s0-lrcktx-mux1 {
469                                 rockchip,pins = <I2S0_LRCKTX_MUX1>;
470                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
471                                 
472                         };
473
474                         i2s0_sdo_mux1:i2s0-sdo-mux1 {
475                                 rockchip,pins = <I2S0_SDO_MUX1>;
476                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
477                                 
478                         };
479
480                         i2s0_sdi_mux1:i2s0-sdi-mux1 {
481                                 rockchip,pins = <I2S0_SDI_MUX1>;
482                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
483                                 
484                         };
485
486                         i2s0_gpio_mux1: i2s0-gpio-mux1 {
487                                 rockchip,pins = <FUNC_TO_GPIO(I2S0_MCLK_MUX1)>,
488                                                 <FUNC_TO_GPIO(I2S0_SCLK_MUX1)>,
489                                                 <FUNC_TO_GPIO(I2S0_LRCKRX_MUX1)>,
490                                                 <FUNC_TO_GPIO(I2S0_LRCKTX_MUX1)>,
491                                                 <FUNC_TO_GPIO(I2S0_SDO_MUX1)>,
492                                                 <FUNC_TO_GPIO(I2S0_SDI_MUX1)>;
493                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
494                                 
495                         };
496
497                 };
498
499                 gpio0_spdif {
500                         spdif_tx: spdif-tx {
501                                 rockchip,pins = <SPDIF_TX>;
502                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
503                                 
504                         };
505                 };
506                 
507                 gpio0_emmc0 {
508                         emmc0_clk: emmc0-clk {
509                                 rockchip,pins = <EMMC_CLKOUT>;
510                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
511                                 
512
513                         };
514
515                         emmc0_cmd_mux0: emmc0-cmd-mux0 {
516                                 rockchip,pins = <EMMC_CMD_MUX0>;
517                                 rockchip,pull = <VALUE_PULL_UP>;
518                                 
519
520                         };
521
522                         emmc0_cmd_mux1: emmc0-cmd-mux1 {
523                                 rockchip,pins = <EMMC_CMD_MUX1>;
524                                 rockchip,pull = <VALUE_PULL_UP>;
525                                 
526
527                         };
528
529
530                         emmc0_bus1: emmc0-bus-width1 {
531                                 rockchip,pins = <EMMC_D0>;
532                                 rockchip,pull = <VALUE_PULL_UP>;
533                                 
534
535                         };
536
537                         emmc0_bus4: emmc0-bus-width4 {
538                                 rockchip,pins = <EMMC_D0>,
539                                                 <EMMC_D1>,
540                                                 <EMMC_D2 >,
541                                                 <EMMC_D3>;
542                                 rockchip,pull = <VALUE_PULL_UP>;
543                                 
544
545                         };
546                 };
547
548                 gpio1_sdmmc0 {
549                         sdmmc0_clk: sdmmc0-clk {
550                                 rockchip,pins = <MMC0_CLKOUT>;
551                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
552                                 
553
554                         };
555
556                         sdmmc0_cmd: sdmmc0-cmd {
557                                 rockchip,pins = <MMC0_CMD>;
558                                 rockchip,pull = <VALUE_PULL_UP>;
559                                 
560                         };
561
562                         sdmmc0_dectn: sdmmc0-dectn{
563                                 rockchip,pins = <MMC0_DETN>;
564                                 rockchip,pull = <VALUE_PULL_UP>;
565                                 
566
567                         };
568
569                         sdmmc0_pwren: sdmmc0-pwren{
570                                 rockchip,pins = <MMC0_PWREN>;
571                                 rockchip,pull = <VALUE_PULL_UP>;
572                         };
573
574                         sdmmc0_bus1: sdmmc0-bus-width1 {
575                                 rockchip,pins = <MMC0_D0>;
576                                 rockchip,pull = <VALUE_PULL_UP>;
577                                 
578
579                         };
580
581                         sdmmc0_bus4: sdmmc0-bus-width4 {
582                                 rockchip,pins = <MMC0_D0>,
583                                                 <MMC0_D1>,
584                                                 <MMC0_D2>,
585                                                 <MMC0_D3>;
586                                 rockchip,pull = <VALUE_PULL_UP>;
587                                 
588
589                         };
590
591                         sdmmc0_gpio: sdmmc0_gpio{
592                                 rockchip,pins =
593                                         <GPIO1_B7>,  //CMD
594                                         <GPIO1_C0>,  //CLK
595                                         <GPIO1_C1>,  //DET
596                                         <GPIO1_B6>,  //PWREN
597                                         <GPIO1_C2>,  //D0
598                                         <GPIO1_C3>,  //D1
599                                         <GPIO1_C4>,  //D2
600                                         <GPIO1_C5>;  //D3
601                                 rockchip,pull = <VALUE_PULL_UP>;
602                                 
603
604                         };
605
606                 };
607
608                 gpio2_nandc {
609                         nandc_ale:nandc-ale {
610                                 rockchip,pins = <NAND_ALE>;
611                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
612                         };
613
614                         nandc_cle:nandc-cle {
615                                 rockchip,pins = <NAND_CLE>;
616                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
617                         };
618
619                         nandc_wrn:nandc-wrn {
620                                 rockchip,pins = <NAND_WRN>;
621                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
622                         };
623
624                         nandc_rdn:nandc-rdn {
625                                 rockchip,pins = <NAND_RDN>;
626                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
627                         };
628
629                         nandc_rdy:nandc-rdy {
630                                 rockchip,pins = <NAND_RDY>;
631                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
632                         };
633
634                         nandc_cs0:nandc-cs0 {
635                                 rockchip,pins = <NAND_CS0>;
636                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
637                         };
638
639
640                         nandc_data: nandc-data {
641                                 rockchip,pins = <NAND_D0>,
642                                                 <NAND_D1>,
643                                                 <NAND_D2>,
644                                                 <NAND_D3>,
645                                                 <NAND_D4>,
646                                                 <NAND_D5>,
647                                                 <NAND_D6>,
648                                                 <NAND_D7>;
649                                 rockchip,pull = <VALUE_PULL_DEFAULT>;   
650
651                         };
652
653                 };
654
655                 gpio0_sdio0 {
656                         sdio0_pwren: sdio0_pwren {
657                                 rockchip,pins = <MMC1_PWREN>;
658                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
659                                 
660
661                         };
662
663                         sdio0_cmd: sdio0_cmd {
664                                 rockchip,pins = <MMC1_CMD>;
665                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
666                         };
667                         sdio0_clk: sdio0_clk {
668                                 rockchip,pins = <SDMMC_CLKOUT>;
669                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
670                         };
671                         sdio0_bus1: sdio0-bus-width1 {
672                                 rockchip,pins = <SDMMC_DATA0>;
673                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
674                         };
675                         sdio0_bus4: sdio0-bus-width4 {
676                                 rockchip,pins = <SDMMC_DATA0>,
677                                                 <SDMMC_DATA1>,
678                                                 <SDMMC_DATA2>,
679                                                 <SDMMC_DATA3>;
680                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
681                         };
682
683                         sdio0_gpio: sdio0_gpio{
684                                 rockchip,pins = <GPIO0_D6>, //pwren
685                                                 <GPIO0_A3>, //cmd
686                                                 <GPIO1_A0>, //clk
687                                                 <GPIO1_A1>, //data0
688                                                 <GPIO1_A2>, //data1
689                                                 <GPIO1_A4>, //data2
690                                                 <GPIO1_A5>; //data3
691                                 rockchip,pull = <VALUE_PULL_UPDOWN_DISABLE>;
692                         };
693
694                 };
695                 
696                 gpio0_pwm{
697                         pwm0_pin:pwm0 {
698                                 rockchip,pins = <PWM0>;
699                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
700                                 
701
702                         };
703
704                         pwm1_pin:pwm1 {
705                                 rockchip,pins = <PWM1>;
706                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
707                                 
708
709                         };
710
711                         pwm2_pin:pwm2 {
712                                 rockchip,pins = <PWM2>;
713                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
714                                 
715
716                         };
717
718                         pwm3_pin:pwm3 {
719                                 rockchip,pins = <PWM_IRIN>;
720                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
721                                 
722
723                         };
724                 };
725
726                 gpio2_gmac {
727                         gmac_rxdv:gmac-rxdv {
728                                 rockchip,pins = <GMAC_RXDV>;
729                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
730                         };
731                         
732                         gmac_txclk:gmac-txclk {
733                                 rockchip,pins = <GMAC_TXCLK>;
734                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
735                         };
736                         
737                         gmac_crs:gmac-crs {
738                                 rockchip,pins = <GMAC_CRS>;
739                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
740                         };
741                         
742                         gmac_rxclk:gmac-rxclk {
743                                 rockchip,pins = <GMAC_RXCLK>;
744                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
745                         };
746                         
747                         gmac_mdio:gmac-mdio {
748                                 rockchip,pins = <GMAC_MDIO>;
749                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
750                         };
751                         
752                         gmac_txen:gmac-txen {
753                                 rockchip,pins = <GMAC_TXEN>;
754                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
755                         };
756                         
757                         gmac_clk:gmac-clk {
758                                 rockchip,pins = <GMAC_CLK>;
759                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
760                         };
761                         gmac_rxer:gmac-rxer {
762                                 rockchip,pins = <GMAC_RXER>;
763                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
764                         };
765                         
766                         gmac_rxd1:gmac-rxd1 {
767                                 rockchip,pins = <GMAC_RXD1>;
768                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
769                         };
770                         
771                         gmac_rxd0:gmac-rxd0 {
772                                 rockchip,pins = <GMAC_RXD0>;
773                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
774                         };
775                         
776                         gmac_txd1:gmac-txd1 {
777                                 rockchip,pins = <GMAC_TXD1>;
778                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
779                         };
780                         
781                         gmac_txd0:gmac-txd0 {
782                                 rockchip,pins = <GMAC_TXD0>;
783                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
784                         };
785                         gmac_rxd3:gmac-rxd3 {
786                                 rockchip,pins = <GMAC_RXD3>;
787                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
788                         };
789                         
790                         gmac_rxd2:gmac-rxd2 {
791                                 rockchip,pins = <GMAC_RXD2>;
792                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
793                         };
794                         
795                         gmac_txd2:gmac-txd2 {
796                                 rockchip,pins = <GMAC_TXD2>;
797                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
798                         };
799                         
800                         gmac_txd3:gmac-txd3 {
801                                 rockchip,pins = <GMAC_TXD3>;
802                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
803                         };
804                         
805                         gmac_col:gmac-col {
806                                 rockchip,pins = <GMAC_COL>;
807                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
808                         };
809
810                         gmac_col_gpio:gmac-col-gpio {
811                                 rockchip,pins = <GPIO2_D0>;
812                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
813                         };
814                 
815                         gmac_mdc:gmac-mdc {
816                                 rockchip,pins = <GMAC_MDC>;
817                                 rockchip,pull = <VALUE_PULL_DEFAULT>;
818                         };
819
820
821                 };
822
823                 gpio2_lcdc0 {
824                         lcdc0_lcdc:lcdc0-lcdc {
825                                 rockchip,pins =
826                                                 <LCDC0_DCLK>,
827                                                 <LCDC0_DEN>,
828                                                 <LCDC0_HSYNC>,
829                                                 <LCDC0_VSYNC>;
830                                 rockchip,pull = <VALUE_PULL_DISABLE>;
831                         };
832
833                         lcdc0_gpio:lcdc0-gpio {
834                                 rockchip,pins =
835                                                 <FUNC_TO_GPIO(LCDC0_DCLK)>,
836                                                 <FUNC_TO_GPIO(LCDC0_DEN)>,
837                                                 <FUNC_TO_GPIO(LCDC0_HSYNC)>,
838                                                 <FUNC_TO_GPIO(LCDC0_VSYNC)>;
839                                 rockchip,pull = <VALUE_PULL_DISABLE>;
840                         };
841
842                 };
843
844                 gpio2_lcdc0_d {
845                         lcdc0_lcdc_d: lcdc0-lcdc_d {
846                                 rockchip,pins =
847                                                 <LCDC0_D10>,
848                                                 <LCDC0_D11>,
849                                                 <LCDC0_D12>,
850                                                 <LCDC0_D13>,
851                                                 <LCDC0_D14>,
852                                                 <LCDC0_D15>,
853                                                 <LCDC0_D16>,
854                                                 <LCDC0_D17>;
855                                                 /*
856                                                 <LCDC0_D18>,
857                                                 <LCDC0_D19>,
858                                                 <LCDC0_D20>,
859                                                 <LCDC0_D21>,
860                                                 <LCDC0_D22>,
861                                                 <LCDC0_D23>;
862                                                 */
863                                 rockchip,pull = <VALUE_PULL_DISABLE>;
864                         };
865
866                         lcdc0_lcdc_gpio: lcdc0-lcdc_gpio {
867                                 rockchip,pins =
868                                                 <FUNC_TO_GPIO(LCDC0_D10)>,
869                                                 <FUNC_TO_GPIO(LCDC0_D11)>,
870                                                 <FUNC_TO_GPIO(LCDC0_D12)>,
871                                                 <FUNC_TO_GPIO(LCDC0_D13)>,
872                                                 <FUNC_TO_GPIO(LCDC0_D14)>,
873                                                 <FUNC_TO_GPIO(LCDC0_D15)>,
874                                                 <FUNC_TO_GPIO(LCDC0_D16)>,
875                                                 <FUNC_TO_GPIO(LCDC0_D17)>;
876                                                 /*
877                                                 <FUNC_TO_GPIO(LCDC0_D18)>,
878                                                 <FUNC_TO_GPIO(LCDC0_D19)>,
879                                                 <FUNC_TO_GPIO(LCDC0_D20)>,
880                                                 <FUNC_TO_GPIO(LCDC0_D21)>,
881                                                 <FUNC_TO_GPIO(LCDC0_D22)>,
882                                                 <FUNC_TO_GPIO(LCDC0_D23)>;
883                                                 */
884                                 rockchip,pull = <VALUE_PULL_DOWN>;
885                         };
886
887                 };
888
889                 //to add 
890
891                 
892         };      
893
894 };