blob: bcd7977fb0f8ec67ae8413d97ffc9fd3e64afc16 [file] [log] [blame]
Heiko Stuebner5cf783f2021-02-09 14:47:09 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
4 */
5
6/dts-v1/;
7#include "rk3368.dtsi"
8
9/ {
Peter Robinson072a8cc2021-07-22 16:20:44 +010010 aliases {
11 mmc0 = &emmc;
12 };
13
Heiko Stuebner5cf783f2021-02-09 14:47:09 +010014 chosen {
15 stdout-path = "serial0:115200n8";
16 };
17
18 ext_gmac: gmac-clk {
19 compatible = "fixed-clock";
20 clock-frequency = <125000000>;
21 clock-output-names = "ext_gmac";
22 #clock-cells = <0>;
23 };
24
25 i2cmux1 {
26 compatible = "i2c-mux-gpio";
27 #address-cells = <1>;
28 #size-cells = <0>;
29 i2c-parent = <&i2c1>;
30 mux-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
31
32 /* Q7_GPO_I2C */
33 i2c@0 {
34 reg = <0>;
35 #address-cells = <1>;
36 #size-cells = <0>;
37 };
38
39 /* Q7_SMB */
40 i2c@1 {
41 reg = <1>;
42 #address-cells = <1>;
43 #size-cells = <0>;
44 };
45 };
46
47 i2cmux2 {
48 compatible = "i2c-mux-gpio";
49 #address-cells = <1>;
50 #size-cells = <0>;
51 i2c-parent = <&i2c2>;
52 mux-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
53
54 /* Q7_LVDS_BLC_I2C */
55 i2c@0 {
56 reg = <0>;
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 fan: fan@18 {
61 compatible = "ti,amc6821";
62 reg = <0x18>;
63 #cooling-cells = <2>;
64 };
65
66 rtc_twi: rtc@6f {
67 compatible = "isil,isl1208";
68 reg = <0x6f>;
69 };
70 };
71
72 /* Q7_GP2_I2C */
73 i2c@1 {
74 reg = <1>;
75 #address-cells = <1>;
76 #size-cells = <0>;
77 };
78 };
79
80 leds {
81 compatible = "gpio-leds";
82 pinctrl-names = "default";
83 pinctrl-0 = <&module_led_pins>;
84
85 module_led1: led-1 {
86 label = "module_led1";
87 gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "heartbeat";
89 panic-indicator;
90 };
91
92 module_led2: led-2 {
93 label = "module_led2";
94 gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
96 };
97 };
98
99 vcc_sys: vcc-sys-regulator {
100 compatible = "regulator-fixed";
101 regulator-name = "vcc_sys";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
104 regulator-always-on;
105 regulator-boot-on;
106 };
107};
108
109&cpu_l0 {
110 cpu-supply = <&vdd_cpu>;
111};
112
113&cpu_l1 {
114 cpu-supply = <&vdd_cpu>;
115};
116
117&cpu_l2 {
118 cpu-supply = <&vdd_cpu>;
119};
120
121&cpu_l3 {
122 cpu-supply = <&vdd_cpu>;
123};
124
125&cpu_b0 {
126 cpu-supply = <&vdd_cpu>;
127};
128
129&cpu_b1 {
130 cpu-supply = <&vdd_cpu>;
131};
132
133&cpu_b2 {
134 cpu-supply = <&vdd_cpu>;
135};
136
137&cpu_b3 {
138 cpu-supply = <&vdd_cpu>;
139};
140
141&emmc {
142 bus-width = <8>;
143 clock-frequency = <150000000>;
144 mmc-hs200-1_8v;
145 non-removable;
146 vmmc-supply = <&vcc33_io>;
147 vqmmc-supply = <&vcc18_io>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
150 status = "okay";
151};
152
153&gmac {
154 assigned-clocks = <&cru SCLK_MAC>;
155 assigned-clock-parents = <&ext_gmac>;
156 clock_in_out = "input";
Heiko Stuebner5cf783f2021-02-09 14:47:09 +0100157 phy-supply = <&vcc33_io>;
158 phy-mode = "rgmii";
159 pinctrl-names = "default";
160 pinctrl-0 = <&rgmii_pins>;
161 snps,reset-active-low;
162 snps,reset-delays-us = <0 10000 50000>;
163 snps,reset-gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
164 tx_delay = <0x10>;
165 rx_delay = <0x10>;
166 status = "okay";
Heiko Stuebner5cf783f2021-02-09 14:47:09 +0100167};
168
169&i2c0 {
170 status = "okay";
171
172 rk808: pmic@1b {
173 compatible = "rockchip,rk808";
174 reg = <0x1b>;
175 interrupt-parent = <&gpio0>;
176 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
177 clock-output-names = "xin32k", "rk808-clkout2";
178 #clock-cells = <1>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pmic_int_l>, <&pmic_sleep>;
181 rockchip,system-power-controller;
182 vcc1-supply = <&vcc_sys>;
183 vcc2-supply = <&vcc_sys>;
184 vcc3-supply = <&vcc_sys>;
185 vcc4-supply = <&vcc_sys>;
186 vcc6-supply = <&vcc_sys>;
187 vcc7-supply = <&vcc_sys>;
188 vcc8-supply = <&vcc_sys>;
189 vcc9-supply = <&vcc_sys>;
190 vcc10-supply = <&vcc_sys>;
191 vcc11-supply = <&vcc_sys>;
192 vcc12-supply = <&vcc_sys>;
193
194 regulators {
195 vdd_cpu: DCDC_REG1 {
196 regulator-name = "vdd_cpu";
197 regulator-min-microvolt = <700000>;
198 regulator-max-microvolt = <1500000>;
199 regulator-always-on;
200 regulator-boot-on;
201 };
202
203 vdd_log: DCDC_REG2 {
204 regulator-name = "vdd_log";
205 regulator-min-microvolt = <700000>;
206 regulator-max-microvolt = <1500000>;
207 regulator-always-on;
208 regulator-boot-on;
209 };
210
211 vcc_ddr: DCDC_REG3 {
212 regulator-name = "vcc_ddr";
213 regulator-always-on;
214 regulator-boot-on;
215 };
216
217 vcc33_io: DCDC_REG4 {
218 regulator-name = "vcc33_io";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
221 regulator-always-on;
222 regulator-boot-on;
223 };
224
225 vcc33_video: LDO_REG2 {
226 regulator-name = "vcc33_video";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
229 regulator-always-on;
230 regulator-boot-on;
231 };
232
233 vdd10_pll: LDO_REG3 {
234 regulator-name = "vdd10_pll";
235 regulator-min-microvolt = <1000000>;
236 regulator-max-microvolt = <1000000>;
237 regulator-always-on;
238 regulator-boot-on;
239 };
240
241 vcc18_io: LDO_REG4 {
242 regulator-name = "vcc18_io";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
245 regulator-boot-on;
246 };
247
248 vdd10_video: LDO_REG6 {
249 regulator-name = "vdd10_video";
250 regulator-min-microvolt = <1000000>;
251 regulator-max-microvolt = <1000000>;
252 regulator-always-on;
253 regulator-boot-on;
254 };
255
256 vcc18_video: LDO_REG8 {
257 regulator-name = "vcc18_video";
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
260 regulator-always-on;
261 regulator-boot-on;
262 };
263 };
264 };
265};
266
267&i2c1 {
268 status = "okay";
269};
270
271&i2c2 {
272 status = "okay";
273};
274
275&pinctrl {
276 leds {
277 module_led_pins: module-led-pins {
278 rockchip,pins =
279 <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
280 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
281 };
282 };
283 pmic {
284 pmic_int_l: pmic-int-l {
285 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
286 };
287
288 pmic_sleep: pmic-sleep {
289 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
290 };
291 };
292};
293
294&spi1 {
295 status = "okay";
296
297 norflash: flash@0 {
298 compatible = "jedec,spi-nor";
299 reg = <0>;
300 spi-max-frequency = <50000000>;
301 };
302};
303
304&uart1 {
305 status = "okay";
306};
307
308&uart3 {
309 status = "okay";
310};
311
312&usb_host0_ehci {
313 status = "okay";
314};
315
316&wdt {
317 status = "okay";
318};