ARM: dts: rk3288: add missing regulator-ramp-delay for act8846
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-evb-act8846.dts
1 /*
2  * This file is dual-licensed: you can use it either under the terms
3  * of the GPL or the X11 license, at your option. Note that this dual
4  * licensing only applies to this file, and not this project as a
5  * whole.
6  *
7  *  a) This file is free software; you can redistribute it and/or
8  *     modify it under the terms of the GNU General Public License as
9  *     published by the Free Software Foundation; either version 2 of the
10  *     License, or (at your option) any later version.
11  *
12  *     This file is distributed in the hope that it will be useful,
13  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *     GNU General Public License for more details.
16  *
17  * Or, alternatively,
18  *
19  *  b) Permission is hereby granted, free of charge, to any person
20  *     obtaining a copy of this software and associated documentation
21  *     files (the "Software"), to deal in the Software without
22  *     restriction, including without limitation the rights to use,
23  *     copy, modify, merge, publish, distribute, sublicense, and/or
24  *     sell copies of the Software, and to permit persons to whom the
25  *     Software is furnished to do so, subject to the following
26  *     conditions:
27  *
28  *     The above copyright notice and this permission notice shall be
29  *     included in all copies or substantial portions of the Software.
30  *
31  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38  *     OTHER DEALINGS IN THE SOFTWARE.
39  */
40
41 /dts-v1/;
42 #include "rk3288-evb.dtsi"
43
44 / {
45         compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288";
46
47         vcc_lcd: vcc-lcd {
48                 compatible = "regulator-fixed";
49                 enable-active-high;
50                 gpio = <&gpio7 3 GPIO_ACTIVE_HIGH>;
51                 pinctrl-names = "default";
52                 pinctrl-0 = <&lcd_en>;
53                 regulator-name = "vcc_lcd";
54                 vin-supply = <&vcc_io>;
55         };
56
57         vcc_wl: vcc-wl {
58                 compatible = "regulator-fixed";
59                 enable-active-high;
60                 gpio = <&gpio7 9 GPIO_ACTIVE_HIGH>;
61                 pinctrl-names = "default";
62                 pinctrl-0 = <&wifi_pwr>;
63                 regulator-name = "vcc_wl";
64                 vin-supply = <&vcc_18>;
65         };
66 };
67
68 &cpu0 {
69         cpu0-supply = <&vdd_cpu>;
70 };
71
72 &gpu {
73         status = "okay";
74         mali-supply = <&vdd_gpu>;
75 };
76
77 &i2c0 {
78         clock-frequency = <400000>;
79
80         vdd_cpu: syr827@40 {
81                 compatible = "silergy,syr827";
82                 fcs,suspend-voltage-selector = <1>;
83                 reg = <0x40>;
84                 regulator-name = "vdd_cpu";
85                 regulator-min-microvolt = <850000>;
86                 regulator-max-microvolt = <1350000>;
87                 regulator-always-on;
88                 regulator-boot-on;
89                 regulator-enable-ramp-delay = <300>;
90                 regulator-ramp-delay = <8000>;
91                 vin-supply = <&vcc_sys>;
92         };
93
94         vdd_gpu: syr828@41 {
95                 compatible = "silergy,syr828";
96                 fcs,suspend-voltage-selector = <1>;
97                 reg = <0x41>;
98                 regulator-name = "vdd_gpu";
99                 regulator-min-microvolt = <850000>;
100                 regulator-max-microvolt = <1350000>;
101                 regulator-always-on;
102                 vin-supply = <&vcc_sys>;
103         };
104
105         hym8563@51 {
106                 compatible = "haoyu,hym8563";
107                 reg = <0x51>;
108
109                 interrupt-parent = <&gpio0>;
110                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
111
112                 pinctrl-names = "default";
113                 pinctrl-0 = <&pmic_int>;
114
115                 #clock-cells = <0>;
116                 clock-output-names = "xin32k";
117         };
118
119         act8846: act8846@5a {
120                 compatible = "active-semi,act8846";
121                 reg = <0x5a>;
122                 status = "okay";
123
124                 vp1-supply = <&vcc_sys>;
125                 vp2-supply = <&vcc_sys>;
126                 vp3-supply = <&vcc_sys>;
127                 vp4-supply = <&vcc_sys>;
128                 inl1-supply = <&vcc_io>;
129                 inl2-supply = <&vcc_sys>;
130                 inl3-supply = <&vcc_20>;
131
132                 regulators {
133                         vcc_ddr: REG1 {
134                                 regulator-name = "VCC_DDR";
135                                 regulator-min-microvolt = <1200000>;
136                                 regulator-max-microvolt = <1200000>;
137                                 regulator-always-on;
138                         };
139
140                         vcc_io: REG2 {
141                                 regulator-name = "VCC_IO";
142                                 regulator-min-microvolt = <3300000>;
143                                 regulator-max-microvolt = <3300000>;
144                                 regulator-always-on;
145                         };
146
147                         vdd_log: REG3 {
148                                 regulator-name = "VDD_LOG";
149                                 regulator-min-microvolt = <1000000>;
150                                 regulator-max-microvolt = <1000000>;
151                                 regulator-always-on;
152                         };
153
154                         vcc_20: REG4 {
155                                 regulator-name = "VCC_20";
156                                 regulator-min-microvolt = <2000000>;
157                                 regulator-max-microvolt = <2000000>;
158                                 regulator-always-on;
159                         };
160
161                         vccio_sd: REG5 {
162                                 regulator-name = "VCCIO_SD";
163                                 regulator-min-microvolt = <3300000>;
164                                 regulator-max-microvolt = <3300000>;
165                                 regulator-always-on;
166                         };
167
168                         vdd10_lcd: REG6 {
169                                 regulator-name = "VDD10_LCD";
170                                 regulator-min-microvolt = <1000000>;
171                                 regulator-max-microvolt = <1000000>;
172                                 regulator-always-on;
173                         };
174
175                         vcca_codec: REG7 {
176                                 regulator-name = "VCCA_CODEC";
177                                 regulator-min-microvolt = <3300000>;
178                                 regulator-max-microvolt = <3300000>;
179                                 regulator-always-on;
180                         };
181
182                         vcca_tp: REG8 {
183                                 regulator-name = "VCCA_TP";
184                                 regulator-min-microvolt = <3300000>;
185                                 regulator-max-microvolt = <3300000>;
186                                 regulator-always-on;
187                         };
188
189                         vccio_pmu: REG9 {
190                                 regulator-name = "VCCIO_PMU";
191                                 regulator-min-microvolt = <3300000>;
192                                 regulator-max-microvolt = <3300000>;
193                                 regulator-always-on;
194                         };
195
196                         vdd_10: REG10 {
197                                 regulator-name = "VDD_10";
198                                 regulator-min-microvolt = <1000000>;
199                                 regulator-max-microvolt = <1000000>;
200                                 regulator-always-on;
201                         };
202
203                         vcc_18: REG11 {
204                                 regulator-name = "VCC_18";
205                                 regulator-min-microvolt = <1800000>;
206                                 regulator-max-microvolt = <1800000>;
207                                 regulator-always-on;
208                         };
209
210                         vcc18_lcd: REG12 {
211                                 regulator-name = "VCC18_LCD";
212                                 regulator-min-microvolt = <1800000>;
213                                 regulator-max-microvolt = <1800000>;
214                                 regulator-always-on;
215                         };
216                 };
217         };
218 };
219
220 &lvds_panel {
221         power-supply = <&vcc_lcd>;
222 };
223
224 &panel {
225         power-supply = <&vcc_lcd>;
226 };
227
228 &pinctrl {
229         lcd {
230                 lcd_en: lcd-en  {
231                         rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>;
232                 };
233         };
234
235         wifi {
236                 wifi_pwr: wifi-pwr {
237                         rockchip,pins = <7 9 RK_FUNC_GPIO &pcfg_pull_none>;
238                 };
239         };
240 };