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