ARM: ux500: move GPIO217/218 config to device tree
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / boot / dts / ste-hrefprev60.dtsi
1 /*
2  * Copyright 2012 ST-Ericsson AB
3  *
4  * The code contained herein is licensed under the GNU General Public
5  * License. You may obtain a copy of the GNU General Public License
6  * Version 2 or later at the following locations:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  *
11  * Device Tree for the HREF+ prior to the v60 variant.
12  */
13
14 #include "ste-dbx5x0.dtsi"
15 #include "ste-href.dtsi"
16
17 / {
18         gpio_keys {
19                 button@1 {
20                         gpios = <&tc3589x_gpio 7 0x4>;
21                 };
22         };
23
24         soc {
25                 i2c@80004000 {
26                         tps61052@33 {
27                                 compatible = "tps61052";
28                                 reg = <0x33>;
29                         };
30
31                         tc35892@42 {
32                                 compatible = "toshiba,tc35892";
33                                 reg = <0x42>;
34                                 interrupt-parent = <&gpio6>;
35                                 interrupts = <25 IRQ_TYPE_EDGE_RISING>;
36                                 pinctrl-names = "default";
37                                 pinctrl-0 = <&tc35892_hrefprev60_mode>;
38
39                                 interrupt-controller;
40                                 #interrupt-cells = <1>;
41
42                                 tc3589x_gpio: tc3589x_gpio {
43                                         compatible = "tc3589x-gpio";
44                                         interrupts = <0>;
45
46                                         interrupt-controller;
47                                         #interrupt-cells = <2>;
48                                         gpio-controller;
49                                         #gpio-cells = <2>;
50                                 };
51                         };
52                 };
53
54                 vmmci: regulator-gpio {
55                         gpios = <&tc3589x_gpio 18 0x4>;
56                         enable-gpio = <&tc3589x_gpio 17 0x4>;
57
58                         status = "okay";
59                 };
60
61                 pinctrl {
62                         sdi0 {
63                                 /* This additional pin needed on early MOP500 and HREFs previous to v60 */
64                                 sdi0_default_mode: sdi0_default {
65                                         hrefprev60_mux {
66                                                 ste,function = "mc0";
67                                                 ste,pins = "mc0dat31dir_a_1";
68                                         };
69                                         hrefprev60_cfg1 {
70                                                 ste,pins = "GPIO21_AB3"; /* DAT31DIR */
71                                                 ste,config = <&out_hi>;
72                                         };
73
74                                 };
75                         };
76                         tc35892 {
77                                 tc35892_hrefprev60_mode: tc35892_hrefprev60 {
78                                         hrefprev60_cfg {
79                                                 ste,pins = "GPIO217_AH12";
80                                                 ste,config = <&gpio_in_pu>;
81                                         };
82                                 };
83                         };
84                 };
85         };
86 };