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