blob: d453ddd4b476bb1bc09127ab17ca2acba4fc1eb6 [file] [log] [blame]
Heiko Stuebner6ce05622014-07-15 20:09:44 +02001/*
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};
Doug Anderson60c20782014-08-26 10:28:43 -070019
Heiko Stuebner3adb1322014-09-13 00:34:30 +020020&cpu0 {
21 cpu0-supply = <&vdd_cpu>;
22};
23
Doug Anderson60c20782014-08-26 10:28:43 -070024&i2c0 {
Doug Anderson0f4fc382014-09-10 21:30:15 -070025 clock-frequency = <400000>;
Doug Anderson60c20782014-08-26 10:28:43 -070026 status = "okay";
27
28 rk808: pmic@1b {
29 compatible = "rockchip,rk808";
30 reg = <0x1b>;
31 interrupt-parent = <&gpio0>;
32 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
33 pinctrl-names = "default";
Chris Zhong5963e102014-12-01 16:52:20 +080034 pinctrl-0 = <&pmic_int &global_pwroff>;
Doug Anderson60c20782014-08-26 10:28:43 -070035 rockchip,system-power-controller;
36 wakeup-source;
37 #clock-cells = <1>;
38 clock-output-names = "xin32k", "rk808-clkout2";
39
40 vcc8-supply = <&vcc_18>;
41 vcc9-supply = <&vcc_io>;
42 vcc10-supply = <&vcc_io>;
43 vcc12-supply = <&vcc_io>;
44 vddio-supply = <&vccio_pmu>;
45
46 regulators {
47 vdd_cpu: DCDC_REG1 {
48 regulator-always-on;
49 regulator-boot-on;
50 regulator-min-microvolt = <750000>;
Heiko Stuebner3adb1322014-09-13 00:34:30 +020051 regulator-max-microvolt = <1350000>;
Doug Anderson60c20782014-08-26 10:28:43 -070052 regulator-name = "vdd_arm";
Chris Zhong5963e102014-12-01 16:52:20 +080053 regulator-state-mem {
54 regulator-off-in-suspend;
55 };
Doug Anderson60c20782014-08-26 10:28:43 -070056 };
57
58 vdd_gpu: DCDC_REG2 {
59 regulator-always-on;
60 regulator-boot-on;
61 regulator-min-microvolt = <850000>;
62 regulator-max-microvolt = <1250000>;
63 regulator-name = "vdd_gpu";
Chris Zhong5963e102014-12-01 16:52:20 +080064 regulator-state-mem {
65 regulator-on-in-suspend;
66 regulator-suspend-microvolt = <1000000>;
67 };
Doug Anderson60c20782014-08-26 10:28:43 -070068 };
69
70 vcc_ddr: DCDC_REG3 {
71 regulator-always-on;
72 regulator-boot-on;
73 regulator-name = "vcc_ddr";
Chris Zhong5963e102014-12-01 16:52:20 +080074 regulator-state-mem {
75 regulator-on-in-suspend;
76 };
Doug Anderson60c20782014-08-26 10:28:43 -070077 };
78
79 vcc_io: DCDC_REG4 {
80 regulator-always-on;
81 regulator-boot-on;
82 regulator-min-microvolt = <3300000>;
83 regulator-max-microvolt = <3300000>;
84 regulator-name = "vcc_io";
Chris Zhong5963e102014-12-01 16:52:20 +080085 regulator-state-mem {
86 regulator-on-in-suspend;
87 regulator-suspend-microvolt = <3300000>;
88 };
Doug Anderson60c20782014-08-26 10:28:43 -070089 };
90
91 vccio_pmu: LDO_REG1 {
92 regulator-always-on;
93 regulator-boot-on;
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 regulator-name = "vccio_pmu";
Chris Zhong5963e102014-12-01 16:52:20 +080097 regulator-state-mem {
98 regulator-on-in-suspend;
99 regulator-suspend-microvolt = <3300000>;
100 };
Doug Anderson60c20782014-08-26 10:28:43 -0700101 };
102
103 vcc_tp: LDO_REG2 {
104 regulator-always-on;
105 regulator-boot-on;
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
108 regulator-name = "vcc_tp";
Chris Zhong5963e102014-12-01 16:52:20 +0800109 regulator-state-mem {
110 regulator-off-in-suspend;
111 };
Doug Anderson60c20782014-08-26 10:28:43 -0700112 };
113
114 vdd_10: LDO_REG3 {
115 regulator-always-on;
116 regulator-boot-on;
117 regulator-min-microvolt = <1000000>;
118 regulator-max-microvolt = <1000000>;
119 regulator-name = "vdd_10";
Chris Zhong5963e102014-12-01 16:52:20 +0800120 regulator-state-mem {
121 regulator-on-in-suspend;
122 regulator-suspend-microvolt = <1000000>;
123 };
Doug Anderson60c20782014-08-26 10:28:43 -0700124 };
125
126 vcc18_lcd: LDO_REG4 {
127 regulator-always-on;
128 regulator-boot-on;
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <1800000>;
131 regulator-name = "vcc18_lcd";
Chris Zhong5963e102014-12-01 16:52:20 +0800132 regulator-state-mem {
133 regulator-on-in-suspend;
134 regulator-suspend-microvolt = <1800000>;
135 };
Doug Anderson60c20782014-08-26 10:28:43 -0700136 };
137
138 vccio_sd: LDO_REG5 {
139 regulator-always-on;
140 regulator-boot-on;
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <3300000>;
143 regulator-name = "vccio_sd";
Chris Zhong5963e102014-12-01 16:52:20 +0800144 regulator-state-mem {
145 regulator-on-in-suspend;
146 regulator-suspend-microvolt = <3300000>;
147 };
Doug Anderson60c20782014-08-26 10:28:43 -0700148 };
149
150 vdd10_lcd: LDO_REG6 {
151 regulator-always-on;
152 regulator-boot-on;
153 regulator-min-microvolt = <1000000>;
154 regulator-max-microvolt = <1000000>;
155 regulator-name = "vdd10_lcd";
Chris Zhong5963e102014-12-01 16:52:20 +0800156 regulator-state-mem {
157 regulator-on-in-suspend;
158 regulator-suspend-microvolt = <1000000>;
159 };
Doug Anderson60c20782014-08-26 10:28:43 -0700160 };
161
162 vcc_18: LDO_REG7 {
163 regulator-always-on;
164 regulator-boot-on;
165 regulator-min-microvolt = <1800000>;
166 regulator-max-microvolt = <1800000>;
167 regulator-name = "vcc_18";
Chris Zhong5963e102014-12-01 16:52:20 +0800168 regulator-state-mem {
169 regulator-on-in-suspend;
170 regulator-suspend-microvolt = <1800000>;
171 };
Doug Anderson60c20782014-08-26 10:28:43 -0700172 };
173
174 vcca_codec: LDO_REG8 {
175 regulator-always-on;
176 regulator-boot-on;
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-name = "vcca_codec";
Chris Zhong5963e102014-12-01 16:52:20 +0800180 regulator-state-mem {
181 regulator-on-in-suspend;
182 regulator-suspend-microvolt = <3300000>;
183 };
Doug Anderson60c20782014-08-26 10:28:43 -0700184 };
185
186 vcc_wl: SWITCH_REG1 {
187 regulator-always-on;
188 regulator-boot-on;
189 regulator-name = "vcc_wl";
Chris Zhong5963e102014-12-01 16:52:20 +0800190 regulator-state-mem {
191 regulator-on-in-suspend;
192 };
Doug Anderson60c20782014-08-26 10:28:43 -0700193 };
194
195 vcc_lcd: SWITCH_REG2 {
196 regulator-always-on;
197 regulator-boot-on;
198 regulator-name = "vcc_lcd";
Chris Zhong5963e102014-12-01 16:52:20 +0800199 regulator-state-mem {
200 regulator-on-in-suspend;
201 };
Doug Anderson60c20782014-08-26 10:28:43 -0700202 };
203 };
204 };
205};