ARM: dts: rv1108: Add support for rv1108-elgin-r1 board
[linux-2.6-microblaze.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 = <&vcc_sys>;
78                 vcc6-supply = <&vcc_sys>;
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-state-enabled;
89                                         regulator-state-uv = <900000>;
90                                 };
91                         };
92
93                         vdd_cam: DCDC_REG2 {
94                                 regulator-name= "vdd_cam";
95                                 regulator-min-microvolt = <700000>;
96                                 regulator-max-microvolt = <2000000>;
97                                 regulator-state-mem {
98                                         regulator-state-disabled;
99                                 };
100                         };
101
102                         vcc_ddr: DCDC_REG3 {
103                                 regulator-name= "vcc_ddr";
104                                 regulator-always-on;
105                                 regulator-boot-on;
106                                 regulator-state-mem {
107                                         regulator-state-enabled;
108                                 };
109                         };
110
111                         vcc_io: DCDC_REG4 {
112                                 regulator-name= "vcc_io";
113                                 regulator-min-microvolt = <3300000>;
114                                 regulator-max-microvolt = <3300000>;
115                                 regulator-always-on;
116                                 regulator-boot-on;
117                                 regulator-state-mem {
118                                         regulator-state-enabled;
119                                         regulator-state-uv = <3300000>;
120                                 };
121                         };
122
123                         vdd_10: LDO_REG1 {
124                                 regulator-name= "vdd_10";
125                                 regulator-min-microvolt = <1000000>;
126                                 regulator-max-microvolt = <1000000>;
127                                 regulator-always-on;
128                                 regulator-boot-on;
129                                 regulator-state-mem {
130                                         regulator-state-disabled;
131                                 };
132                         };
133
134                         vcc_18: LDO_REG2 {
135                                 regulator-name= "vcc_18";
136                                 regulator-min-microvolt = <1800000>;
137                                 regulator-max-microvolt = <1800000>;
138                                 regulator-always-on;
139                                 regulator-boot-on;
140                                 regulator-state-mem {
141                                         regulator-state-disabled;
142                                 };
143                         };
144
145                         vdd10_pmu: LDO_REG3 {
146                                 regulator-name= "vdd10_pmu";
147                                 regulator-min-microvolt = <1000000>;
148                                 regulator-max-microvolt = <1000000>;
149                                 regulator-always-on;
150                                 regulator-boot-on;
151                                 regulator-state-mem {
152                                         regulator-state-enabled;
153                                         regulator-state-uv = <1000000>;
154                                 };
155                         };
156                 };
157         };
158 };
159
160 &spi {
161         pinctrl-names = "default";
162         pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
163         status = "okay";
164
165         dh2228fv: dac@0 {
166                 compatible = "rohm,dh2228fv";
167                 reg = <0>;
168                 spi-max-frequency = <24000000>;
169                 spi-cpha;
170                 spi-cpol;
171         };
172 };
173
174 &u2phy {
175         status = "okay";
176
177         u2phy_host: host-port {
178                 status = "okay";
179         };
180
181         u2phy_otg: otg-port {
182                 status = "okay";
183         };
184 };
185
186 &uart0 {
187         pinctrl-names = "default";
188         pinctrl-0 = <&uart0_xfer>;
189         status = "okay";
190 };
191
192 &uart2 {
193         status = "okay";
194 };
195
196 &usb_host_ehci {
197         status = "okay";
198 };
199
200 &usb_host_ohci {
201         status = "okay";
202 };
203
204 &usb_otg {
205         status = "okay";
206 };