Merge tag 'nfs-for-5.1-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / meson8m2-mxiii-plus.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2018 Oleg Ivanov <balbes-150@yandex.ru>
4  * Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
5  */
6
7 /dts-v1/;
8
9 #include "meson8m2.dtsi"
10
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13
14 / {
15         model = "Tronsmart MXIII Plus";
16         compatible = "tronsmart,mxiii-plus", "amlogic,meson8m2";
17
18         aliases {
19                 ethernet0 = &ethmac;
20                 i2c0 = &i2c_AO;
21                 serial0 = &uart_AO;
22                 serial1 = &uart_A;
23                 mmc0 = &sd_card_slot;
24         };
25
26         chosen {
27                 stdout-path = "serial0:115200n8";
28         };
29
30         memory {
31                 device_type = "memory";
32                 reg = <0x40000000 0x80000000>;
33         };
34
35         adc-keys {
36                 compatible = "adc-keys";
37                 io-channels = <&saradc 0>;
38                 io-channel-names = "buttons";
39                 keyup-threshold-microvolt = <1710000>;
40
41                 button-function {
42                         label = "Function";
43                         linux,code = <KEY_FN>;
44                         press-threshold-microvolt = <10000>;
45                 };
46         };
47
48         iio-hwmon {
49                 compatible = "iio-hwmon";
50                 io-channels = <&saradc 8>;
51         };
52
53         vcc_3v3: regulator-vcc3v3 {
54                 compatible = "regulator-fixed";
55                 regulator-name = "VCC3V3";
56                 regulator-min-microvolt = <3300000>;
57                 regulator-max-microvolt = <3300000>;
58         };
59 };
60
61 &cpu0 {
62         cpu-supply = <&vcck>;
63 };
64
65 &ethmac {
66         status = "okay";
67
68         pinctrl-0 = <&eth_rgmii_pins>;
69         pinctrl-names = "default";
70
71         phy-handle = <&eth_phy0>;
72         phy-mode = "rgmii";
73
74         amlogic,tx-delay-ns = <4>;
75
76         snps,reset-gpio = <&gpio GPIOH_4 0>;
77         snps,reset-delays-us = <0 10000 1000000>;
78         snps,reset-active-low;
79
80         mdio {
81                 compatible = "snps,dwmac-mdio";
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84
85                 eth_phy0: ethernet-phy@0 {
86                         /* Realtek RTL8211F (0x001cc916) */
87                         reg = <0>;
88                 };
89         };
90 };
91
92 &ir_receiver {
93         status = "okay";
94         pinctrl-0 = <&ir_recv_pins>;
95         pinctrl-names = "default";
96 };
97
98 &i2c_AO {
99         status = "okay";
100         pinctrl-0 = <&i2c_ao_pins>;
101         pinctrl-names = "default";
102
103         pmic@32 {
104                 compatible = "ricoh,rn5t618";
105                 reg = <0x32>;
106                 system-power-controller;
107
108                 regulators {
109                         vcck: DCDC1 {
110                                 regulator-name = "VCCK";
111                                 regulator-min-microvolt = <825000>;
112                                 regulator-max-microvolt = <1150000>;
113                                 regulator-boot-on;
114                                 regulator-always-on;
115                         };
116
117                         DCDC2 {
118                                 regulator-name = "VDDAO";
119                                 regulator-min-microvolt = <950000>;
120                                 regulator-max-microvolt = <1150000>;
121                                 regulator-boot-on;
122                                 regulator-always-on;
123                         };
124
125                         DCDC3 {
126                                 regulator-name = "VDD_DDR";
127                                 regulator-min-microvolt = <1500000>;
128                                 regulator-max-microvolt = <1500000>;
129                                 regulator-boot-on;
130                                 regulator-always-on;
131                         };
132
133                         LDO1 {
134                                 regulator-name = "VDDIO_AO28";
135                                 regulator-min-microvolt = <2900000>;
136                                 regulator-max-microvolt = <2900000>;
137                                 regulator-boot-on;
138                                 regulator-always-on;
139                         };
140
141                         vddio_ao1v8: LDO2 {
142                                 regulator-name = "VDDIO_AO18";
143                                 regulator-min-microvolt = <1800000>;
144                                 regulator-max-microvolt = <1800000>;
145                                 regulator-boot-on;
146                                 regulator-always-on;
147                         };
148
149                         LDO3 {
150                                 regulator-name = "VCC1V8";
151                                 regulator-min-microvolt = <1800000>;
152                                 regulator-max-microvolt = <1800000>;
153                                 regulator-boot-on;
154                                 regulator-always-on;
155                         };
156
157                         LDO4 {
158                                 regulator-name = "VCC2V8";
159                                 regulator-min-microvolt = <2850000>;
160                                 regulator-max-microvolt = <2850000>;
161                                 regulator-boot-on;
162                                 regulator-always-on;
163                         };
164
165                         LDO5 {
166                                 regulator-name = "AVDD1V8";
167                                 regulator-min-microvolt = <1800000>;
168                                 regulator-max-microvolt = <1800000>;
169                                 regulator-boot-on;
170                                 regulator-always-on;
171                         };
172
173                         LDORTC1 {
174                                 regulator-name = "VDD_LDO";
175                                 regulator-min-microvolt = <2700000>;
176                                 regulator-max-microvolt = <2700000>;
177                                 regulator-boot-on;
178                                 regulator-always-on;
179                         };
180
181                         LDORTC2 {
182                                 regulator-name = "RTC_0V9";
183                                 regulator-min-microvolt = <900000>;
184                                 regulator-max-microvolt = <900000>;
185                                 regulator-boot-on;
186                                 regulator-always-on;
187                         };
188                 };
189         };
190 };
191
192 &saradc {
193         status = "okay";
194         vref-supply = <&vddio_ao1v8>;
195 };
196
197 &sdio {
198         status = "okay";
199
200         pinctrl-0 = <&sd_b_pins>;
201         pinctrl-names = "default";
202
203         /* SD card */
204         sd_card_slot: slot@1 {
205                 compatible = "mmc-slot";
206                 reg = <1>;
207                 status = "okay";
208
209                 bus-width = <4>;
210                 no-sdio;
211                 cap-mmc-highspeed;
212                 cap-sd-highspeed;
213                 disable-wp;
214
215                 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
216
217                 vmmc-supply = <&vcc_3v3>;
218         };
219 };
220
221 /* connected to the Bluetooth module */
222 &uart_A {
223         status = "okay";
224         pinctrl-0 = <&uart_a1_pins>, <&uart_a1_cts_rts_pins>;
225         pinctrl-names = "default";
226         uart-has-rtscts;
227 };
228
229 &uart_AO {
230         status = "okay";
231         pinctrl-0 = <&uart_ao_a_pins>;
232         pinctrl-names = "default";
233 };
234
235 &usb0 {
236         status = "okay";
237 };
238
239 &usb1 {
240         status = "okay";
241 };
242
243 &usb0_phy {
244         status = "okay";
245 };
246
247 &usb1_phy {
248         status = "okay";
249 };