Merge branch 'spi-5.3' into spi-linus
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / meson8b-mxq.dts
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2 /*
3  * Copyright 2015 Endless Mobile, Inc.
4  * Author: Carlo Caione <carlo@endlessm.com>
5  */
6
7 /dts-v1/;
8
9 #include <dt-bindings/gpio/gpio.h>
10
11 #include "meson8b.dtsi"
12
13 / {
14         model = "TRONFY MXQ S805";
15         compatible = "tronfy,mxq", "amlogic,meson8b";
16
17         aliases {
18                 serial0 = &uart_AO;
19         };
20
21         chosen {
22                 stdout-path = "serial0:115200n8";
23         };
24
25         memory {
26                 device_type = "memory";
27                 reg = <0x40000000 0x40000000>;
28         };
29
30         iio-hwmon {
31                 compatible = "iio-hwmon";
32                 io-channels = <&saradc 8>;
33         };
34
35         vcck: regulator-vcck {
36                 compatible = "pwm-regulator";
37
38                 regulator-name = "VCCK";
39                 regulator-min-microvolt = <860000>;
40                 regulator-max-microvolt = <1140000>;
41
42                 pwms = <&pwm_cd 0 1148 0>;
43                 pwm-dutycycle-range = <100 0>;
44
45                 regulator-boot-on;
46                 regulator-always-on;
47         };
48
49         vcc_1v8: regulator-vcc1v8 {
50                 compatible = "regulator-fixed";
51
52                 regulator-name = "VCC1V8";
53                 regulator-min-microvolt = <1800000>;
54                 regulator-max-microvolt = <1800000>;
55
56                 vin-supply = <&vcc_3v3>;
57         };
58
59         vcc_3v3: regulator-vcc3v3 {
60                 compatible = "regulator-fixed";
61
62                 regulator-name = "VCC3V3";
63                 regulator-min-microvolt = <3300000>;
64                 regulator-max-microvolt = <3300000>;
65
66                 vin-supply = <&vcc_5v>;
67         };
68
69         vcc_5v: regulator-vcc5v {
70                 compatible = "regulator-fixed";
71
72                 regulator-name = "VCC5V";
73                 regulator-min-microvolt = <5000000>;
74                 regulator-max-microvolt = <5000000>;
75
76                 regulator-boot-on;
77                 regulator-always-on;
78         };
79 };
80
81 &cpu0 {
82         cpu-supply = <&vcck>;
83 };
84
85 &ethmac {
86         status = "okay";
87
88         pinctrl-0 = <&eth_rmii_pins>;
89         pinctrl-names = "default";
90
91         phy-handle = <&eth_phy0>;
92         phy-mode = "rmii";
93
94         mdio {
95                 compatible = "snps,dwmac-mdio";
96                 #address-cells = <1>;
97                 #size-cells = <0>;
98
99                 eth_phy0: ethernet-phy@0 {
100                         /* IC Plus IP101A/G (0x02430c54) */
101                         reg = <0>;
102
103                         reset-assert-us = <10000>;
104                         reset-deassert-us = <10000>;
105                         reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
106
107                         icplus,select-interrupt;
108                         interrupt-parent = <&gpio_intc>;
109                         /* GPIOH_3 */
110                         interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
111                 };
112         };
113 };
114
115 &saradc {
116         status = "okay";
117         vref-supply = <&vcc_1v8>;
118 };
119
120 &sdio {
121         status = "okay";
122
123         pinctrl-0 = <&sd_b_pins>;
124         pinctrl-names = "default";
125
126         /* SD card */
127         sd_card_slot: slot@1 {
128                 compatible = "mmc-slot";
129                 reg = <1>;
130                 status = "okay";
131
132                 bus-width = <4>;
133                 no-sdio;
134                 cap-mmc-highspeed;
135                 cap-sd-highspeed;
136                 disable-wp;
137
138                 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
139
140                 vmmc-supply = <&vcc_3v3>;
141         };
142 };
143
144 &pwm_cd {
145         status = "okay";
146         pinctrl-0 = <&pwm_c1_pins>;
147         pinctrl-names = "default";
148         clocks = <&clkc CLKID_XTAL>;
149         clock-names = "clkin0";
150 };
151
152 &uart_AO {
153         status = "okay";
154         pinctrl-0 = <&uart_ao_a_pins>;
155         pinctrl-names = "default";
156 };
157
158 &usb0 {
159         status = "okay";
160 };
161
162 &usb0_phy {
163         status = "okay";
164 };
165
166 &usb1 {
167         status = "okay";
168 };
169
170 &usb1_phy {
171         status = "okay";
172 };