xref: /freebsd-src/sys/contrib/device-tree/src/arm/rockchip/rk3066a-marsboard.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot#include "rk3066a.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	model = "MarsBoard RK3066";
11*f126890aSEmmanuel Vadot	compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot	aliases {
14*f126890aSEmmanuel Vadot		mmc0 = &mmc0;
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	memory@60000000 {
18*f126890aSEmmanuel Vadot		device_type = "memory";
19*f126890aSEmmanuel Vadot		reg = <0x60000000 0x40000000>;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	vdd_log: vdd-log {
23*f126890aSEmmanuel Vadot		compatible = "pwm-regulator";
24*f126890aSEmmanuel Vadot		pwms = <&pwm3 0 1000>;
25*f126890aSEmmanuel Vadot		regulator-name = "vdd_log";
26*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1200000>;
27*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1200000>;
28*f126890aSEmmanuel Vadot		regulator-always-on;
29*f126890aSEmmanuel Vadot		voltage-table = <1000000 100>,
30*f126890aSEmmanuel Vadot				<1200000 42>;
31*f126890aSEmmanuel Vadot		status = "okay";
32*f126890aSEmmanuel Vadot	};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot	vcc_sd0: sdmmc-regulator {
35*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
36*f126890aSEmmanuel Vadot		regulator-name = "sdmmc-supply";
37*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
38*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
39*f126890aSEmmanuel Vadot		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
40*f126890aSEmmanuel Vadot		startup-delay-us = <100000>;
41*f126890aSEmmanuel Vadot		vin-supply = <&vcc_io>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	vsys: vsys-regulator {
45*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
46*f126890aSEmmanuel Vadot		regulator-name = "vsys";
47*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
48*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
49*f126890aSEmmanuel Vadot		regulator-boot-on;
50*f126890aSEmmanuel Vadot	};
51*f126890aSEmmanuel Vadot};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot&cpu0 {
54*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_arm>;
55*f126890aSEmmanuel Vadot};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot&cpu1 {
58*f126890aSEmmanuel Vadot	cpu-supply = <&vdd_arm>;
59*f126890aSEmmanuel Vadot};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot&i2c1 {
62*f126890aSEmmanuel Vadot	status = "okay";
63*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot	tps: tps@2d {
66*f126890aSEmmanuel Vadot		reg = <0x2d>;
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio6>;
69*f126890aSEmmanuel Vadot		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot		vcc1-supply = <&vsys>;
72*f126890aSEmmanuel Vadot		vcc2-supply = <&vsys>;
73*f126890aSEmmanuel Vadot		vcc3-supply = <&vsys>;
74*f126890aSEmmanuel Vadot		vcc4-supply = <&vsys>;
75*f126890aSEmmanuel Vadot		vcc5-supply = <&vcc_io>;
76*f126890aSEmmanuel Vadot		vcc6-supply = <&vcc_io>;
77*f126890aSEmmanuel Vadot		vcc7-supply = <&vsys>;
78*f126890aSEmmanuel Vadot		vccio-supply = <&vsys>;
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot		regulators {
81*f126890aSEmmanuel Vadot			vcc_rtc: regulator@0 {
82*f126890aSEmmanuel Vadot				regulator-name = "vcc_rtc";
83*f126890aSEmmanuel Vadot				regulator-always-on;
84*f126890aSEmmanuel Vadot			};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot			vcc_io: regulator@1 {
87*f126890aSEmmanuel Vadot				regulator-name = "vcc_io";
88*f126890aSEmmanuel Vadot				regulator-always-on;
89*f126890aSEmmanuel Vadot			};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot			vdd_arm: regulator@2 {
92*f126890aSEmmanuel Vadot				regulator-name = "vdd_arm";
93*f126890aSEmmanuel Vadot				regulator-min-microvolt = <600000>;
94*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
95*f126890aSEmmanuel Vadot				regulator-boot-on;
96*f126890aSEmmanuel Vadot				regulator-always-on;
97*f126890aSEmmanuel Vadot			};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot			vcc_ddr: regulator@3 {
100*f126890aSEmmanuel Vadot				regulator-name = "vcc_ddr";
101*f126890aSEmmanuel Vadot				regulator-min-microvolt = <600000>;
102*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
103*f126890aSEmmanuel Vadot				regulator-boot-on;
104*f126890aSEmmanuel Vadot				regulator-always-on;
105*f126890aSEmmanuel Vadot			};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot			vcc18_cif: regulator@5 {
108*f126890aSEmmanuel Vadot				regulator-name = "vcc18_cif";
109*f126890aSEmmanuel Vadot				regulator-always-on;
110*f126890aSEmmanuel Vadot			};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot			vdd_11: regulator@6 {
113*f126890aSEmmanuel Vadot				regulator-name = "vdd_11";
114*f126890aSEmmanuel Vadot				regulator-always-on;
115*f126890aSEmmanuel Vadot			};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot			vcc_25: regulator@7 {
118*f126890aSEmmanuel Vadot				regulator-name = "vcc_25";
119*f126890aSEmmanuel Vadot				regulator-always-on;
120*f126890aSEmmanuel Vadot			};
121*f126890aSEmmanuel Vadot
122*f126890aSEmmanuel Vadot			vcc_18: regulator@8 {
123*f126890aSEmmanuel Vadot				regulator-name = "vcc_18";
124*f126890aSEmmanuel Vadot				regulator-always-on;
125*f126890aSEmmanuel Vadot			};
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot			vcc25_hdmi: regulator@9 {
128*f126890aSEmmanuel Vadot				regulator-name = "vcc25_hdmi";
129*f126890aSEmmanuel Vadot				regulator-always-on;
130*f126890aSEmmanuel Vadot			};
131*f126890aSEmmanuel Vadot
132*f126890aSEmmanuel Vadot			vcca_33: regulator@10 {
133*f126890aSEmmanuel Vadot				regulator-name = "vcca_33";
134*f126890aSEmmanuel Vadot				regulator-always-on;
135*f126890aSEmmanuel Vadot			};
136*f126890aSEmmanuel Vadot
137*f126890aSEmmanuel Vadot			vcc_rmii: regulator@11 {
138*f126890aSEmmanuel Vadot				regulator-name = "vcc_rmii";
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot			vcc28_cif: regulator@12 {
142*f126890aSEmmanuel Vadot				regulator-name = "vcc28_cif";
143*f126890aSEmmanuel Vadot				regulator-always-on;
144*f126890aSEmmanuel Vadot			};
145*f126890aSEmmanuel Vadot		};
146*f126890aSEmmanuel Vadot	};
147*f126890aSEmmanuel Vadot};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot/* must be included after &tps gets defined */
150*f126890aSEmmanuel Vadot#include "../tps65910.dtsi"
151*f126890aSEmmanuel Vadot
152*f126890aSEmmanuel Vadot&emac {
153*f126890aSEmmanuel Vadot	phy = <&phy0>;
154*f126890aSEmmanuel Vadot	phy-supply = <&vcc_rmii>;
155*f126890aSEmmanuel Vadot	pinctrl-names = "default";
156*f126890aSEmmanuel Vadot	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
157*f126890aSEmmanuel Vadot	status = "okay";
158*f126890aSEmmanuel Vadot
159*f126890aSEmmanuel Vadot	mdio {
160*f126890aSEmmanuel Vadot		#address-cells = <1>;
161*f126890aSEmmanuel Vadot		#size-cells = <0>;
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot		phy0: ethernet-phy@0 {
164*f126890aSEmmanuel Vadot			reg = <0>;
165*f126890aSEmmanuel Vadot			interrupt-parent = <&gpio1>;
166*f126890aSEmmanuel Vadot			interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
167*f126890aSEmmanuel Vadot		};
168*f126890aSEmmanuel Vadot	};
169*f126890aSEmmanuel Vadot};
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot&mmc0 {
172*f126890aSEmmanuel Vadot	status = "okay";
173*f126890aSEmmanuel Vadot
174*f126890aSEmmanuel Vadot	pinctrl-names = "default";
175*f126890aSEmmanuel Vadot	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
176*f126890aSEmmanuel Vadot	vmmc-supply = <&vcc_sd0>;
177*f126890aSEmmanuel Vadot};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot&pinctrl {
180*f126890aSEmmanuel Vadot	lan8720a {
181*f126890aSEmmanuel Vadot		phy_int: phy-int {
182*f126890aSEmmanuel Vadot			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
183*f126890aSEmmanuel Vadot		};
184*f126890aSEmmanuel Vadot	};
185*f126890aSEmmanuel Vadot};
186*f126890aSEmmanuel Vadot
187*f126890aSEmmanuel Vadot&pwm3 {
188*f126890aSEmmanuel Vadot	status = "okay";
189*f126890aSEmmanuel Vadot};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot&uart0 {
192*f126890aSEmmanuel Vadot	status = "okay";
193*f126890aSEmmanuel Vadot};
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot&uart1 {
196*f126890aSEmmanuel Vadot	status = "okay";
197*f126890aSEmmanuel Vadot};
198*f126890aSEmmanuel Vadot
199*f126890aSEmmanuel Vadot&uart2 {
200*f126890aSEmmanuel Vadot	status = "okay";
201*f126890aSEmmanuel Vadot};
202*f126890aSEmmanuel Vadot
203*f126890aSEmmanuel Vadot&uart3 {
204*f126890aSEmmanuel Vadot	status = "okay";
205*f126890aSEmmanuel Vadot};
206*f126890aSEmmanuel Vadot
207*f126890aSEmmanuel Vadot&usbphy {
208*f126890aSEmmanuel Vadot	status = "okay";
209*f126890aSEmmanuel Vadot};
210*f126890aSEmmanuel Vadot
211*f126890aSEmmanuel Vadot&usb_host {
212*f126890aSEmmanuel Vadot	status = "okay";
213*f126890aSEmmanuel Vadot};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot&usb_otg {
216*f126890aSEmmanuel Vadot	status = "okay";
217*f126890aSEmmanuel Vadot};
218*f126890aSEmmanuel Vadot
219*f126890aSEmmanuel Vadot&wdt {
220*f126890aSEmmanuel Vadot	status = "okay";
221*f126890aSEmmanuel Vadot};
222