ARM64: dts: rk3399-box-rev2: enable hdmi uboot logo display
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3368-evb-act8846.dts
1 /*
2  * Copyright (c) 2015 Caesar Wang <wxt@rock-chips.com>
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 /dts-v1/;
44 #include "rk3368-evb.dtsi"
45
46 / {
47         model = "Rockchip RK3368 EVB with ACT8846 pmic";
48         compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368";
49 };
50
51 &i2c0 {
52         clock-frequency = <400000>;
53
54         vdd_cpu: syr827@40 {
55                 compatible = "silergy,syr827";
56                 reg = <0x40>;
57                 fcs,suspend-voltage-selector = <1>;
58                 regulator-name = "vdd_cpu";
59                 regulator-min-microvolt = <850000>;
60                 regulator-max-microvolt = <1350000>;
61                 regulator-always-on;
62                 regulator-boot-on;
63                 vin-supply = <&vcc_sys>;
64         };
65
66         vdd_gpu: syr828@41 {
67                 compatible = "silergy,syr828";
68                 reg = <0x41>;
69                 fcs,suspend-voltage-selector = <1>;
70                 regulator-name = "vdd_gpu";
71                 regulator-min-microvolt = <850000>;
72                 regulator-max-microvolt = <1350000>;
73                 regulator-always-on;
74                 vin-supply = <&vcc_sys>;
75         };
76
77         act8846: act8846@5a {
78                 compatible = "active-semi,act8846";
79                 reg = <0x5a>;
80                 status = "okay";
81
82                 vp1-supply = <&vcc_sys>;
83                 vp2-supply = <&vcc_sys>;
84                 vp3-supply = <&vcc_sys>;
85                 vp4-supply = <&vcc_sys>;
86                 inl1-supply = <&vcc_io>;
87                 inl2-supply = <&vcc_sys>;
88                 inl3-supply = <&vcc_20>;
89
90                 regulators {
91                         vcc_ddr: REG1 {
92                                 regulator-name = "VCC_DDR";
93                                 regulator-min-microvolt = <1200000>;
94                                 regulator-max-microvolt = <1200000>;
95                                 regulator-always-on;
96                         };
97
98                         vcc_io: REG2 {
99                                 regulator-name = "VCC_IO";
100                                 regulator-min-microvolt = <3300000>;
101                                 regulator-max-microvolt = <3300000>;
102                                 regulator-always-on;
103                         };
104
105                         vdd_log: REG3 {
106                                 regulator-name = "VDD_LOG";
107                                 regulator-min-microvolt = <700000>;
108                                 regulator-max-microvolt = <1500000>;
109                                 regulator-always-on;
110                         };
111
112                         vcc_20: REG4 {
113                                 regulator-name = "VCC_20";
114                                 regulator-min-microvolt = <2000000>;
115                                 regulator-max-microvolt = <2000000>;
116                                 regulator-always-on;
117                         };
118
119                         vccio_sd: REG5 {
120                                 regulator-name = "VCCIO_SD";
121                                 regulator-min-microvolt = <1800000>;
122                                 regulator-max-microvolt = <3300000>;
123                                 regulator-always-on;
124                         };
125
126                         vdd10_lcd: REG6 {
127                                 regulator-name = "VDD10_LCD";
128                                 regulator-min-microvolt = <1000000>;
129                                 regulator-max-microvolt = <1000000>;
130                                 regulator-always-on;
131                         };
132
133                         vcca_codec: REG7 {
134                                 regulator-name = "VCCA_CODEC";
135                                 regulator-min-microvolt = <3300000>;
136                                 regulator-max-microvolt = <3300000>;
137                                 regulator-always-on;
138                         };
139
140                         vcca_tp: REG8 {
141                                 regulator-name = "VCCA_TP";
142                                 regulator-min-microvolt = <3300000>;
143                                 regulator-max-microvolt = <3300000>;
144                                 regulator-always-on;
145                         };
146
147                         vccio_pmu: REG9 {
148                                 regulator-name = "VCCIO_PMU";
149                                 regulator-min-microvolt = <3300000>;
150                                 regulator-max-microvolt = <3300000>;
151                                 regulator-always-on;
152                         };
153
154                         vdd_10: REG10 {
155                                 regulator-name = "VDD_10";
156                                 regulator-min-microvolt = <1000000>;
157                                 regulator-max-microvolt = <1000000>;
158                                 regulator-always-on;
159                         };
160
161                         vcc_18: REG11 {
162                                 regulator-name = "VCC_18";
163                                 regulator-min-microvolt = <1800000>;
164                                 regulator-max-microvolt = <1800000>;
165                                 regulator-always-on;
166                         };
167
168                         vcc18_lcd: REG12 {
169                                 regulator-name = "VCC18_LCD";
170                                 regulator-min-microvolt = <1800000>;
171                                 regulator-max-microvolt = <1800000>;
172                                 regulator-always-on;
173                         };
174                 };
175         };
176 };