• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
48&cpu0 {
49	cpu0-supply = <&vdd_cpu>;
50};
51
52&i2c0 {
53	clock-frequency = <400000>;
54
55	vdd_cpu: syr827@40 {
56		compatible = "silergy,syr827";
57		fcs,suspend-voltage-selector = <1>;
58		reg = <0x40>;
59		regulator-name = "vdd_cpu";
60		regulator-min-microvolt = <850000>;
61		regulator-max-microvolt = <1350000>;
62		regulator-always-on;
63		regulator-boot-on;
64		vin-supply = <&vcc_sys>;
65	};
66
67	vdd_gpu: syr828@41 {
68		compatible = "silergy,syr828";
69		fcs,suspend-voltage-selector = <1>;
70		reg = <0x41>;
71		regulator-name = "vdd_gpu";
72		regulator-min-microvolt = <850000>;
73		regulator-max-microvolt = <1350000>;
74		regulator-always-on;
75		vin-supply = <&vcc_sys>;
76	};
77
78	hym8563@51 {
79		compatible = "haoyu,hym8563";
80		reg = <0x51>;
81
82		interrupt-parent = <&gpio0>;
83		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
84
85		pinctrl-names = "default";
86		pinctrl-0 = <&pmic_int>;
87
88		#clock-cells = <0>;
89		clock-output-names = "xin32k";
90	};
91
92	act8846: act8846@5a {
93		compatible = "active-semi,act8846";
94		reg = <0x5a>;
95		status = "okay";
96
97		vp1-supply = <&vcc_sys>;
98		vp2-supply = <&vcc_sys>;
99		vp3-supply = <&vcc_sys>;
100		vp4-supply = <&vcc_sys>;
101		inl1-supply = <&vcc_io>;
102		inl2-supply = <&vcc_sys>;
103		inl3-supply = <&vcc_20>;
104
105		regulators {
106			vcc_ddr: REG1 {
107				regulator-name = "VCC_DDR";
108				regulator-min-microvolt = <1200000>;
109				regulator-max-microvolt = <1200000>;
110				regulator-always-on;
111			};
112
113			vcc_io: REG2 {
114				regulator-name = "VCC_IO";
115				regulator-min-microvolt = <3300000>;
116				regulator-max-microvolt = <3300000>;
117				regulator-always-on;
118			};
119
120			vdd_log: REG3 {
121				regulator-name = "VDD_LOG";
122				regulator-min-microvolt = <1000000>;
123				regulator-max-microvolt = <1000000>;
124				regulator-always-on;
125			};
126
127			vcc_20: REG4 {
128				regulator-name = "VCC_20";
129				regulator-min-microvolt = <2000000>;
130				regulator-max-microvolt = <2000000>;
131				regulator-always-on;
132			};
133
134			vccio_sd: REG5 {
135				regulator-name = "VCCIO_SD";
136				regulator-min-microvolt = <3300000>;
137				regulator-max-microvolt = <3300000>;
138				regulator-always-on;
139			};
140
141			vdd10_lcd: REG6 {
142				regulator-name = "VDD10_LCD";
143				regulator-min-microvolt = <1000000>;
144				regulator-max-microvolt = <1000000>;
145				regulator-always-on;
146			};
147
148			vcca_codec: REG7 {
149				regulator-name = "VCCA_CODEC";
150				regulator-min-microvolt = <3300000>;
151				regulator-max-microvolt = <3300000>;
152				regulator-always-on;
153			};
154
155			vcca_tp: REG8 {
156				regulator-name = "VCCA_TP";
157				regulator-min-microvolt = <3300000>;
158				regulator-max-microvolt = <3300000>;
159				regulator-always-on;
160			};
161
162			vccio_pmu: REG9 {
163				regulator-name = "VCCIO_PMU";
164				regulator-min-microvolt = <3300000>;
165				regulator-max-microvolt = <3300000>;
166				regulator-always-on;
167			};
168
169			vdd_10: REG10 {
170				regulator-name = "VDD_10";
171				regulator-min-microvolt = <1000000>;
172				regulator-max-microvolt = <1000000>;
173				regulator-always-on;
174			};
175
176			vcc_18: REG11 {
177				regulator-name = "VCC_18";
178				regulator-min-microvolt = <1800000>;
179				regulator-max-microvolt = <1800000>;
180				regulator-always-on;
181			};
182
183			vcc18_lcd: REG12 {
184				regulator-name = "VCC18_LCD";
185				regulator-min-microvolt = <1800000>;
186				regulator-max-microvolt = <1800000>;
187				regulator-always-on;
188			};
189		};
190	};
191};
192