ARM: dts: rockchip: housekeeping off i2c0 on rk3288-evb boards
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-evb-rk808.dts
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  */
12
13 /dts-v1/;
14 #include "rk3288-evb.dtsi"
15
16 / {
17         compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
18 };
19
20 &cpu0 {
21         cpu0-supply = <&vdd_cpu>;
22 };
23
24 &i2c0 {
25         clock-frequency = <400000>;
26
27         rk808: pmic@1b {
28                 compatible = "rockchip,rk808";
29                 reg = <0x1b>;
30                 interrupt-parent = <&gpio0>;
31                 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
32                 pinctrl-names = "default";
33                 pinctrl-0 = <&pmic_int &global_pwroff>;
34                 rockchip,system-power-controller;
35                 wakeup-source;
36                 #clock-cells = <1>;
37                 clock-output-names = "xin32k", "rk808-clkout2";
38
39                 vcc8-supply = <&vcc_18>;
40                 vcc9-supply = <&vcc_io>;
41                 vcc10-supply = <&vcc_io>;
42                 vcc12-supply = <&vcc_io>;
43                 vddio-supply = <&vccio_pmu>;
44
45                 regulators {
46                         vdd_cpu: DCDC_REG1 {
47                                 regulator-always-on;
48                                 regulator-boot-on;
49                                 regulator-min-microvolt = <750000>;
50                                 regulator-max-microvolt = <1350000>;
51                                 regulator-name = "vdd_arm";
52                                 regulator-state-mem {
53                                         regulator-off-in-suspend;
54                                 };
55                         };
56
57                         vdd_gpu: DCDC_REG2 {
58                                 regulator-always-on;
59                                 regulator-boot-on;
60                                 regulator-min-microvolt = <850000>;
61                                 regulator-max-microvolt = <1250000>;
62                                 regulator-name = "vdd_gpu";
63                                 regulator-state-mem {
64                                         regulator-on-in-suspend;
65                                         regulator-suspend-microvolt = <1000000>;
66                                 };
67                         };
68
69                         vcc_ddr: DCDC_REG3 {
70                                 regulator-always-on;
71                                 regulator-boot-on;
72                                 regulator-name = "vcc_ddr";
73                                 regulator-state-mem {
74                                         regulator-on-in-suspend;
75                                 };
76                         };
77
78                         vcc_io: DCDC_REG4 {
79                                 regulator-always-on;
80                                 regulator-boot-on;
81                                 regulator-min-microvolt = <3300000>;
82                                 regulator-max-microvolt = <3300000>;
83                                 regulator-name = "vcc_io";
84                                 regulator-state-mem {
85                                         regulator-on-in-suspend;
86                                         regulator-suspend-microvolt = <3300000>;
87                                 };
88                         };
89
90                         vccio_pmu: LDO_REG1 {
91                                 regulator-always-on;
92                                 regulator-boot-on;
93                                 regulator-min-microvolt = <3300000>;
94                                 regulator-max-microvolt = <3300000>;
95                                 regulator-name = "vccio_pmu";
96                                 regulator-state-mem {
97                                         regulator-on-in-suspend;
98                                         regulator-suspend-microvolt = <3300000>;
99                                 };
100                         };
101
102                         vcc_tp: LDO_REG2 {
103                                 regulator-always-on;
104                                 regulator-boot-on;
105                                 regulator-min-microvolt = <3300000>;
106                                 regulator-max-microvolt = <3300000>;
107                                 regulator-name = "vcc_tp";
108                                 regulator-state-mem {
109                                         regulator-off-in-suspend;
110                                 };
111                         };
112
113                         vdd_10: LDO_REG3 {
114                                 regulator-always-on;
115                                 regulator-boot-on;
116                                 regulator-min-microvolt = <1000000>;
117                                 regulator-max-microvolt = <1000000>;
118                                 regulator-name = "vdd_10";
119                                 regulator-state-mem {
120                                         regulator-on-in-suspend;
121                                         regulator-suspend-microvolt = <1000000>;
122                                 };
123                         };
124
125                         vcc18_lcd: LDO_REG4 {
126                                 regulator-always-on;
127                                 regulator-boot-on;
128                                 regulator-min-microvolt = <1800000>;
129                                 regulator-max-microvolt = <1800000>;
130                                 regulator-name = "vcc18_lcd";
131                                 regulator-state-mem {
132                                         regulator-on-in-suspend;
133                                         regulator-suspend-microvolt = <1800000>;
134                                 };
135                         };
136
137                         vccio_sd: LDO_REG5 {
138                                 regulator-always-on;
139                                 regulator-boot-on;
140                                 regulator-min-microvolt = <1800000>;
141                                 regulator-max-microvolt = <3300000>;
142                                 regulator-name = "vccio_sd";
143                                 regulator-state-mem {
144                                         regulator-on-in-suspend;
145                                         regulator-suspend-microvolt = <3300000>;
146                                 };
147                         };
148
149                         vdd10_lcd: LDO_REG6 {
150                                 regulator-always-on;
151                                 regulator-boot-on;
152                                 regulator-min-microvolt = <1000000>;
153                                 regulator-max-microvolt = <1000000>;
154                                 regulator-name = "vdd10_lcd";
155                                 regulator-state-mem {
156                                         regulator-on-in-suspend;
157                                         regulator-suspend-microvolt = <1000000>;
158                                 };
159                         };
160
161                         vcc_18: LDO_REG7 {
162                                 regulator-always-on;
163                                 regulator-boot-on;
164                                 regulator-min-microvolt = <1800000>;
165                                 regulator-max-microvolt = <1800000>;
166                                 regulator-name = "vcc_18";
167                                 regulator-state-mem {
168                                         regulator-on-in-suspend;
169                                         regulator-suspend-microvolt = <1800000>;
170                                 };
171                         };
172
173                         vcca_codec: LDO_REG8 {
174                                 regulator-always-on;
175                                 regulator-boot-on;
176                                 regulator-min-microvolt = <3300000>;
177                                 regulator-max-microvolt = <3300000>;
178                                 regulator-name = "vcca_codec";
179                                 regulator-state-mem {
180                                         regulator-on-in-suspend;
181                                         regulator-suspend-microvolt = <3300000>;
182                                 };
183                         };
184
185                         vcc_wl: SWITCH_REG1 {
186                                 regulator-always-on;
187                                 regulator-boot-on;
188                                 regulator-name = "vcc_wl";
189                                 regulator-state-mem {
190                                         regulator-on-in-suspend;
191                                 };
192                         };
193
194                         vcc_lcd: SWITCH_REG2 {
195                                 regulator-always-on;
196                                 regulator-boot-on;
197                                 regulator-name = "vcc_lcd";
198                                 regulator-state-mem {
199                                         regulator-on-in-suspend;
200                                 };
201                         };
202                 };
203         };
204 };