Merge branch 'vmwgfx-fixes-5.1' of git://people.freedesktop.org/~thomash/linux into...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / rv1108-elgin-r1.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 /*
4  * Copyright (C) 2018 O.S. Systems Software LTDA.
5  */
6
7 /dts-v1/;
8
9 #include "rv1108.dtsi"
10
11 / {
12         model = "Elgin RV1108 R1 board";
13         compatible = "elgin,rv1108-r1", "rockchip,rv1108";
14
15         memory@60000000 {
16                 device_type = "memory";
17                 reg = <0x60000000 0x08000000>;
18         };
19
20         chosen {
21                 stdout-path = "serial2:1500000n8";
22         };
23
24         vcc_sys: vsys-regulator {
25                 compatible = "regulator-fixed";
26                 regulator-name = "vsys";
27                 regulator-min-microvolt = <5000000>;
28                 regulator-max-microvolt = <5000000>;
29                 regulator-boot-on;
30         };
31 };
32
33 &cpu0 {
34         cpu-supply = <&vdd_core>;
35 };
36
37 &emmc {
38         bus-width = <8>;
39         cap-mmc-highspeed;
40         disable-wp;
41         no-sd;
42         no-sdio;
43         non-removable;
44         mmc-ddr-1_8v;
45         mmc-hs200-1_8v;
46         pinctrl-names = "default";
47         pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
48         status = "okay";
49 };
50
51 &gmac {
52         clock_in_out = "output";
53         pinctrl-names = "default";
54         pinctrl-0 = <&rmii_pins>;
55         snps,reset-gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>;
56         snps,reset-active-low;
57         status = "okay";
58 };
59
60 &i2c0 {
61         clock-frequency = <400000>;
62         i2c-scl-rising-time-ns = <275>;
63         i2c-scl-falling-time-ns = <16>;
64         status = "okay";
65
66         rk805: pmic@18 {
67                 compatible = "rockchip,rk805";
68                 reg = <0x18>;
69                 interrupt-parent = <&gpio0>;
70                 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
71                 rockchip,system-power-controller;
72
73                 vcc1-supply = <&vcc_sys>;
74                 vcc2-supply = <&vcc_sys>;
75                 vcc3-supply = <&vcc_sys>;
76                 vcc4-supply = <&vcc_sys>;
77                 vcc5-supply = <&vdd_buck2>;
78                 vcc6-supply = <&vdd_buck2>;
79
80                 regulators {
81                         vdd_core: DCDC_REG1 {
82                                 regulator-name= "vdd_core";
83                                 regulator-min-microvolt = <700000>;
84                                 regulator-max-microvolt = <1500000>;
85                                 regulator-always-on;
86                                 regulator-boot-on;
87                                 regulator-state-mem {
88                                         regulator-on-in-suspend;
89                                         regulator-suspend-microvolt = <900000>;
90                                 };
91                         };
92
93                         vdd_buck2: DCDC_REG2 {
94                                 regulator-name= "vdd_buck2";
95                                 regulator-min-microvolt = <2200000>;
96                                 regulator-max-microvolt = <2200000>;
97                                 regulator-always-on;
98                                 regulator-boot-on;
99                                 regulator-state-mem {
100                                         regulator-off-in-suspend;
101                                 };
102                         };
103
104                         vcc_ddr: DCDC_REG3 {
105                                 regulator-name= "vcc_ddr";
106                                 regulator-always-on;
107                                 regulator-boot-on;
108                                 regulator-state-mem {
109                                         regulator-on-in-suspend;
110                                 };
111                         };
112
113                         vcc_io: DCDC_REG4 {
114                                 regulator-name= "vcc_io";
115                                 regulator-min-microvolt = <3300000>;
116                                 regulator-max-microvolt = <3300000>;
117                                 regulator-always-on;
118                                 regulator-boot-on;
119                                 regulator-state-mem {
120                                         regulator-on-in-suspend;
121                                         regulator-suspend-microvolt = <3300000>;
122                                 };
123                         };
124
125                         vdd_10: LDO_REG1 {
126                                 regulator-name= "vdd_10";
127                                 regulator-min-microvolt = <1000000>;
128                                 regulator-max-microvolt = <1000000>;
129                                 regulator-always-on;
130                                 regulator-boot-on;
131                                 regulator-state-mem {
132                                         regulator-off-in-suspend;
133                                 };
134                         };
135
136                         vcc_18: LDO_REG2 {
137                                 regulator-name= "vcc_18";
138                                 regulator-min-microvolt = <1800000>;
139                                 regulator-max-microvolt = <1800000>;
140                                 regulator-always-on;
141                                 regulator-boot-on;
142                                 regulator-state-mem {
143                                         regulator-off-in-suspend;
144                                 };
145                         };
146
147                         vdd10_pmu: LDO_REG3 {
148                                 regulator-name= "vdd10_pmu";
149                                 regulator-min-microvolt = <1000000>;
150                                 regulator-max-microvolt = <1000000>;
151                                 regulator-always-on;
152                                 regulator-boot-on;
153                                 regulator-state-mem {
154                                         regulator-on-in-suspend;
155                                         regulator-suspend-microvolt = <1000000>;
156                                 };
157                         };
158                 };
159         };
160 };
161
162 &spi {
163         pinctrl-names = "default";
164         pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
165         status = "okay";
166
167         dh2228fv: dac@0 {
168                 compatible = "rohm,dh2228fv";
169                 reg = <0>;
170                 spi-max-frequency = <24000000>;
171                 spi-cpha;
172                 spi-cpol;
173         };
174 };
175
176 &u2phy {
177         status = "okay";
178
179         u2phy_host: host-port {
180                 status = "okay";
181         };
182
183         u2phy_otg: otg-port {
184                 status = "okay";
185         };
186 };
187
188 &uart0 {
189         pinctrl-names = "default";
190         pinctrl-0 = <&uart0_xfer>;
191         status = "okay";
192 };
193
194 &uart2 {
195         status = "okay";
196 };
197
198 &usb_host_ehci {
199         status = "okay";
200 };
201
202 &usb_host_ohci {
203         status = "okay";
204 };
205
206 &usb_otg {
207         status = "okay";
208 };