]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/gnu/dts/arm/rk3288-evb-rk808.dts
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / gnu / dts / arm / 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         ext_gmac: external-gmac-clock {
20                 compatible = "fixed-clock";
21                 clock-frequency = <125000000>;
22                 clock-output-names = "ext_gmac";
23                 #clock-cells = <0>;
24         };
25 };
26
27 &cpu0 {
28         cpu0-supply = <&vdd_cpu>;
29 };
30
31 &i2c0 {
32         clock-frequency = <400000>;
33
34         rk808: pmic@1b {
35                 compatible = "rockchip,rk808";
36                 reg = <0x1b>;
37                 interrupt-parent = <&gpio0>;
38                 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
39                 pinctrl-names = "default";
40                 pinctrl-0 = <&pmic_int &global_pwroff>;
41                 rockchip,system-power-controller;
42                 wakeup-source;
43                 #clock-cells = <1>;
44                 clock-output-names = "xin32k", "rk808-clkout2";
45
46                 vcc8-supply = <&vcc_18>;
47                 vcc9-supply = <&vcc_io>;
48                 vcc10-supply = <&vcc_io>;
49                 vcc12-supply = <&vcc_io>;
50                 vddio-supply = <&vccio_pmu>;
51
52                 regulators {
53                         vdd_cpu: DCDC_REG1 {
54                                 regulator-always-on;
55                                 regulator-boot-on;
56                                 regulator-min-microvolt = <750000>;
57                                 regulator-max-microvolt = <1350000>;
58                                 regulator-name = "vdd_arm";
59                                 regulator-state-mem {
60                                         regulator-off-in-suspend;
61                                 };
62                         };
63
64                         vdd_gpu: DCDC_REG2 {
65                                 regulator-always-on;
66                                 regulator-boot-on;
67                                 regulator-min-microvolt = <850000>;
68                                 regulator-max-microvolt = <1250000>;
69                                 regulator-name = "vdd_gpu";
70                                 regulator-state-mem {
71                                         regulator-on-in-suspend;
72                                         regulator-suspend-microvolt = <1000000>;
73                                 };
74                         };
75
76                         vcc_ddr: DCDC_REG3 {
77                                 regulator-always-on;
78                                 regulator-boot-on;
79                                 regulator-name = "vcc_ddr";
80                                 regulator-state-mem {
81                                         regulator-on-in-suspend;
82                                 };
83                         };
84
85                         vcc_io: DCDC_REG4 {
86                                 regulator-always-on;
87                                 regulator-boot-on;
88                                 regulator-min-microvolt = <3300000>;
89                                 regulator-max-microvolt = <3300000>;
90                                 regulator-name = "vcc_io";
91                                 regulator-state-mem {
92                                         regulator-on-in-suspend;
93                                         regulator-suspend-microvolt = <3300000>;
94                                 };
95                         };
96
97                         vccio_pmu: LDO_REG1 {
98                                 regulator-always-on;
99                                 regulator-boot-on;
100                                 regulator-min-microvolt = <3300000>;
101                                 regulator-max-microvolt = <3300000>;
102                                 regulator-name = "vccio_pmu";
103                                 regulator-state-mem {
104                                         regulator-on-in-suspend;
105                                         regulator-suspend-microvolt = <3300000>;
106                                 };
107                         };
108
109                         vcc_tp: LDO_REG2 {
110                                 regulator-always-on;
111                                 regulator-boot-on;
112                                 regulator-min-microvolt = <3300000>;
113                                 regulator-max-microvolt = <3300000>;
114                                 regulator-name = "vcc_tp";
115                                 regulator-state-mem {
116                                         regulator-off-in-suspend;
117                                 };
118                         };
119
120                         vdd_10: LDO_REG3 {
121                                 regulator-always-on;
122                                 regulator-boot-on;
123                                 regulator-min-microvolt = <1000000>;
124                                 regulator-max-microvolt = <1000000>;
125                                 regulator-name = "vdd_10";
126                                 regulator-state-mem {
127                                         regulator-on-in-suspend;
128                                         regulator-suspend-microvolt = <1000000>;
129                                 };
130                         };
131
132                         vcc18_lcd: LDO_REG4 {
133                                 regulator-always-on;
134                                 regulator-boot-on;
135                                 regulator-min-microvolt = <1800000>;
136                                 regulator-max-microvolt = <1800000>;
137                                 regulator-name = "vcc18_lcd";
138                                 regulator-state-mem {
139                                         regulator-on-in-suspend;
140                                         regulator-suspend-microvolt = <1800000>;
141                                 };
142                         };
143
144                         vccio_sd: LDO_REG5 {
145                                 regulator-always-on;
146                                 regulator-boot-on;
147                                 regulator-min-microvolt = <1800000>;
148                                 regulator-max-microvolt = <3300000>;
149                                 regulator-name = "vccio_sd";
150                                 regulator-state-mem {
151                                         regulator-on-in-suspend;
152                                         regulator-suspend-microvolt = <3300000>;
153                                 };
154                         };
155
156                         vdd10_lcd: LDO_REG6 {
157                                 regulator-always-on;
158                                 regulator-boot-on;
159                                 regulator-min-microvolt = <1000000>;
160                                 regulator-max-microvolt = <1000000>;
161                                 regulator-name = "vdd10_lcd";
162                                 regulator-state-mem {
163                                         regulator-on-in-suspend;
164                                         regulator-suspend-microvolt = <1000000>;
165                                 };
166                         };
167
168                         vcc_18: LDO_REG7 {
169                                 regulator-always-on;
170                                 regulator-boot-on;
171                                 regulator-min-microvolt = <1800000>;
172                                 regulator-max-microvolt = <1800000>;
173                                 regulator-name = "vcc_18";
174                                 regulator-state-mem {
175                                         regulator-on-in-suspend;
176                                         regulator-suspend-microvolt = <1800000>;
177                                 };
178                         };
179
180                         vcca_codec: LDO_REG8 {
181                                 regulator-always-on;
182                                 regulator-boot-on;
183                                 regulator-min-microvolt = <3300000>;
184                                 regulator-max-microvolt = <3300000>;
185                                 regulator-name = "vcca_codec";
186                                 regulator-state-mem {
187                                         regulator-on-in-suspend;
188                                         regulator-suspend-microvolt = <3300000>;
189                                 };
190                         };
191
192                         vcc_wl: SWITCH_REG1 {
193                                 regulator-always-on;
194                                 regulator-boot-on;
195                                 regulator-name = "vcc_wl";
196                                 regulator-state-mem {
197                                         regulator-on-in-suspend;
198                                 };
199                         };
200
201                         vcc_lcd: SWITCH_REG2 {
202                                 regulator-always-on;
203                                 regulator-boot-on;
204                                 regulator-name = "vcc_lcd";
205                                 regulator-state-mem {
206                                         regulator-on-in-suspend;
207                                 };
208                         };
209                 };
210         };
211 };
212
213 &gmac {
214         phy-supply = <&vcc_phy>;
215         phy-mode = "rgmii";
216         clock_in_out = "input";
217         snps,reset-gpio = <&gpio4 7 0>;
218         snps,reset-active-low;
219         snps,reset-delays-us = <0 10000 1000000>;
220         assigned-clocks = <&cru SCLK_MAC>;
221         assigned-clock-parents = <&ext_gmac>;
222         pinctrl-names = "default";
223         pinctrl-0 = <&rgmii_pins>;
224         tx_delay = <0x30>;
225         rx_delay = <0x10>;
226         status = "ok";
227 };