Merge tag 'iwlwifi-next-for-kalle-2014-12-30' of https://git.kernel.org/pub/scm/linux...
[cascardo/linux.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         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         status = "okay";
34
35         rk808: pmic@1b {
36                 compatible = "rockchip,rk808";
37                 reg = <0x1b>;
38                 interrupt-parent = <&gpio0>;
39                 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
40                 pinctrl-names = "default";
41                 pinctrl-0 = <&pmic_int>;
42                 rockchip,system-power-controller;
43                 wakeup-source;
44                 #clock-cells = <1>;
45                 clock-output-names = "xin32k", "rk808-clkout2";
46
47                 vcc8-supply = <&vcc_18>;
48                 vcc9-supply = <&vcc_io>;
49                 vcc10-supply = <&vcc_io>;
50                 vcc12-supply = <&vcc_io>;
51                 vddio-supply = <&vccio_pmu>;
52
53                 regulators {
54                         vdd_cpu: DCDC_REG1 {
55                                 regulator-always-on;
56                                 regulator-boot-on;
57                                 regulator-min-microvolt = <750000>;
58                                 regulator-max-microvolt = <1350000>;
59                                 regulator-name = "vdd_arm";
60                         };
61
62                         vdd_gpu: DCDC_REG2 {
63                                 regulator-always-on;
64                                 regulator-boot-on;
65                                 regulator-min-microvolt = <850000>;
66                                 regulator-max-microvolt = <1250000>;
67                                 regulator-name = "vdd_gpu";
68                         };
69
70                         vcc_ddr: DCDC_REG3 {
71                                 regulator-always-on;
72                                 regulator-boot-on;
73                                 regulator-name = "vcc_ddr";
74                         };
75
76                         vcc_io: DCDC_REG4 {
77                                 regulator-always-on;
78                                 regulator-boot-on;
79                                 regulator-min-microvolt = <3300000>;
80                                 regulator-max-microvolt = <3300000>;
81                                 regulator-name = "vcc_io";
82                         };
83
84                         vccio_pmu: LDO_REG1 {
85                                 regulator-always-on;
86                                 regulator-boot-on;
87                                 regulator-min-microvolt = <3300000>;
88                                 regulator-max-microvolt = <3300000>;
89                                 regulator-name = "vccio_pmu";
90                         };
91
92                         vcc_tp: LDO_REG2 {
93                                 regulator-always-on;
94                                 regulator-boot-on;
95                                 regulator-min-microvolt = <3300000>;
96                                 regulator-max-microvolt = <3300000>;
97                                 regulator-name = "vcc_tp";
98                         };
99
100                         vdd_10: LDO_REG3 {
101                                 regulator-always-on;
102                                 regulator-boot-on;
103                                 regulator-min-microvolt = <1000000>;
104                                 regulator-max-microvolt = <1000000>;
105                                 regulator-name = "vdd_10";
106                         };
107
108                         vcc18_lcd: LDO_REG4 {
109                                 regulator-always-on;
110                                 regulator-boot-on;
111                                 regulator-min-microvolt = <1800000>;
112                                 regulator-max-microvolt = <1800000>;
113                                 regulator-name = "vcc18_lcd";
114                         };
115
116                         vccio_sd: LDO_REG5 {
117                                 regulator-always-on;
118                                 regulator-boot-on;
119                                 regulator-min-microvolt = <1800000>;
120                                 regulator-max-microvolt = <3300000>;
121                                 regulator-name = "vccio_sd";
122                         };
123
124                         vdd10_lcd: LDO_REG6 {
125                                 regulator-always-on;
126                                 regulator-boot-on;
127                                 regulator-min-microvolt = <1000000>;
128                                 regulator-max-microvolt = <1000000>;
129                                 regulator-name = "vdd10_lcd";
130                         };
131
132                         vcc_18: LDO_REG7 {
133                                 regulator-always-on;
134                                 regulator-boot-on;
135                                 regulator-min-microvolt = <1800000>;
136                                 regulator-max-microvolt = <1800000>;
137                                 regulator-name = "vcc_18";
138                         };
139
140                         vcca_codec: LDO_REG8 {
141                                 regulator-always-on;
142                                 regulator-boot-on;
143                                 regulator-min-microvolt = <3300000>;
144                                 regulator-max-microvolt = <3300000>;
145                                 regulator-name = "vcca_codec";
146                         };
147
148                         vcc_wl: SWITCH_REG1 {
149                                 regulator-always-on;
150                                 regulator-boot-on;
151                                 regulator-name = "vcc_wl";
152                         };
153
154                         vcc_lcd: SWITCH_REG2 {
155                                 regulator-always-on;
156                                 regulator-boot-on;
157                                 regulator-name = "vcc_lcd";
158                         };
159                 };
160         };
161 };
162
163 &gmac {
164         phy_regulator = "vcc_phy";
165         phy-mode = "rgmii";
166         clock_in_out = "input";
167         snps,reset-gpio = <&gpio4 7 0>;
168         snps,reset-active-low;
169         snps,reset-delays-us = <0 10000 1000000>;
170         assigned-clocks = <&cru SCLK_MAC>;
171         assigned-clock-parents = <&ext_gmac>;
172         pinctrl-names = "default";
173         pinctrl-0 = <&rgmii_pins>;
174         tx_delay = <0x30>;
175         rx_delay = <0x10>;
176         status = "ok";
177 };