Merge tag 'fpga-fixes-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf...
[linux-2.6-microblaze.git] / arch / arm / boot / dts / rk3229-xms6.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 /dts-v1/;
4
5 #include <dt-bindings/input/input.h>
6 #include "rk3229.dtsi"
7
8 / {
9         model = "Mecer Xtreme Mini S6";
10         compatible = "mecer,xms6", "rockchip,rk3229";
11
12         memory@60000000 {
13                 device_type = "memory";
14                 reg = <0x60000000 0x40000000>;
15         };
16
17         dc_12v: dc-12v-regulator {
18                 compatible = "regulator-fixed";
19                 regulator-name = "dc_12v";
20                 regulator-always-on;
21                 regulator-boot-on;
22                 regulator-min-microvolt = <12000000>;
23                 regulator-max-microvolt = <12000000>;
24         };
25
26         ext_gmac: ext_gmac {
27                 compatible = "fixed-clock";
28                 clock-frequency = <125000000>;
29                 clock-output-names = "ext_gmac";
30                 #clock-cells = <0>;
31         };
32
33         power-led {
34                 compatible = "gpio-leds";
35
36                 blue_led: led-0 {
37                         gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
38                         default-state = "on";
39                 };
40         };
41
42         sdio_pwrseq: sdio-pwrseq {
43                 compatible = "mmc-pwrseq-simple";
44                 reset-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>,
45                               <&gpio2 29 GPIO_ACTIVE_LOW>;
46         };
47
48         vcc_host: vcc-host-regulator {
49                 compatible = "regulator-fixed";
50                 enable-active-high;
51                 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
52                 pinctrl-names = "default";
53                 pinctrl-0 = <&host_vbus_drv>;
54                 regulator-name = "vcc_host";
55                 regulator-always-on;
56                 regulator-boot-on;
57                 vin-supply = <&vcc_sys>;
58         };
59
60         vcc_phy: vcc-phy-regulator {
61                 compatible = "regulator-fixed";
62                 enable-active-high;
63                 regulator-name = "vcc_phy";
64                 regulator-min-microvolt = <1800000>;
65                 regulator-max-microvolt = <1800000>;
66                 regulator-always-on;
67                 regulator-boot-on;
68                 vin-supply = <&vccio_1v8>;
69         };
70
71         vcc_sys: vcc-sys-regulator {
72                 compatible = "regulator-fixed";
73                 regulator-name = "vcc_sys";
74                 regulator-always-on;
75                 regulator-boot-on;
76                 regulator-min-microvolt = <5000000>;
77                 regulator-max-microvolt = <5000000>;
78                 vin-supply = <&dc_12v>;
79         };
80
81         vccio_1v8: vccio-1v8-regulator {
82                 compatible = "regulator-fixed";
83                 regulator-name = "vccio_1v8";
84                 regulator-min-microvolt = <1800000>;
85                 regulator-max-microvolt = <1800000>;
86                 regulator-always-on;
87                 vin-supply = <&vcc_sys>;
88         };
89
90         vccio_3v3: vccio-3v3-regulator {
91                 compatible = "regulator-fixed";
92                 regulator-name = "vccio_3v3";
93                 regulator-min-microvolt = <3300000>;
94                 regulator-max-microvolt = <3300000>;
95                 regulator-always-on;
96                 vin-supply = <&vcc_sys>;
97         };
98
99         vdd_arm: vdd-arm-regulator {
100                 compatible = "pwm-regulator";
101                 pwms = <&pwm1 0 25000 1>;
102                 pwm-supply = <&vcc_sys>;
103                 regulator-name = "vdd_arm";
104                 regulator-min-microvolt = <950000>;
105                 regulator-max-microvolt = <1400000>;
106                 regulator-always-on;
107                 regulator-boot-on;
108         };
109
110         vdd_log: vdd-log-regulator {
111                 compatible = "pwm-regulator";
112                 pwms = <&pwm2 0 25000 1>;
113                 pwm-supply = <&vcc_sys>;
114                 regulator-name = "vdd_log";
115                 regulator-min-microvolt = <1000000>;
116                 regulator-max-microvolt = <1300000>;
117                 regulator-always-on;
118                 regulator-boot-on;
119         };
120 };
121
122 &cpu0 {
123         cpu-supply = <&vdd_arm>;
124 };
125
126 &cpu1 {
127         cpu-supply = <&vdd_arm>;
128 };
129
130 &cpu2 {
131         cpu-supply = <&vdd_arm>;
132 };
133
134 &cpu3 {
135         cpu-supply = <&vdd_arm>;
136 };
137
138 &emmc {
139         cap-mmc-highspeed;
140         non-removable;
141         status = "okay";
142 };
143
144 &gmac {
145         assigned-clocks = <&cru SCLK_MAC_SRC>;
146         assigned-clock-rates = <50000000>;
147         clock_in_out = "output";
148         phy-handle = <&phy>;
149         phy-mode = "rmii";
150         phy-supply = <&vcc_phy>;
151         status = "okay";
152
153         mdio {
154                 compatible = "snps,dwmac-mdio";
155                 #address-cells = <1>;
156                 #size-cells = <0>;
157
158                 phy: ethernet-phy@0 {
159                         compatible = "ethernet-phy-id1234.d400",
160                                      "ethernet-phy-ieee802.3-c22";
161                         reg = <0>;
162                         clocks = <&cru SCLK_MAC_PHY>;
163                         phy-is-integrated;
164                         resets = <&cru SRST_MACPHY>;
165                 };
166         };
167 };
168
169 &gpu {
170         mali-supply = <&vdd_log>;
171         status = "okay";
172 };
173
174 &hdmi {
175         status = "okay";
176 };
177
178 &hdmi_phy {
179         status = "okay";
180 };
181
182 &iep_mmu {
183         status = "okay";
184 };
185
186 &io_domains {
187         status = "okay";
188
189         vccio1-supply = <&vccio_3v3>;
190         vccio2-supply = <&vccio_1v8>;
191         vccio4-supply = <&vccio_3v3>;
192 };
193
194 &pinctrl {
195         usb {
196                 host_vbus_drv: host-vbus-drv {
197                         rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
198                 };
199         };
200 };
201
202 &pwm1 {
203         status = "okay";
204 };
205
206 &pwm2 {
207         status = "okay";
208 };
209
210 &sdio {
211         bus-width = <4>;
212         cap-sd-highspeed;
213         cap-sdio-irq;
214         mmc-pwrseq = <&sdio_pwrseq>;
215         non-removable;
216         vqmmc-supply = <&vccio_1v8>;
217         status = "okay";
218 };
219
220 &sdmmc {
221         cap-mmc-highspeed;
222         disable-wp;
223         status = "okay";
224 };
225
226 &tsadc {
227         rockchip,hw-tshut-mode = <0>;
228         status = "okay";
229 };
230
231 &u2phy0 {
232         status = "okay";
233
234         u2phy0_host: host-port {
235                 phy-supply = <&vcc_host>;
236                 status = "okay";
237         };
238
239         u2phy0_otg: otg-port {
240                 phy-supply = <&vcc_host>;
241                 status = "okay";
242         };
243 };
244
245 &u2phy1 {
246         status = "okay";
247
248         u2phy1_host: host-port {
249                 phy-supply = <&vcc_host>;
250                 status = "okay";
251         };
252
253         u2phy1_otg: otg-port {
254                 phy-supply = <&vcc_host>;
255                 status = "okay";
256         };
257 };
258
259 &uart2 {
260         pinctrl-0 = <&uart21_xfer>;
261         status = "okay";
262 };
263
264 &usb_host0_ehci {
265         status = "okay";
266 };
267
268 &usb_host0_ohci {
269         status = "okay";
270 };
271
272 &usb_host1_ehci {
273         status = "okay";
274 };
275
276 &usb_host1_ohci {
277         status = "okay";
278 };
279
280 &usb_host2_ehci {
281         status = "okay";
282 };
283
284 &usb_host2_ohci {
285         status = "okay";
286 };
287
288 &usb_otg {
289         status = "okay";
290 };
291
292 &vop {
293         status = "okay";
294 };
295
296 &vop_mmu {
297         status = "okay";
298 };