xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rk3066a-marsboard.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
4724ba675SRob Herring */
5724ba675SRob Herring
6724ba675SRob Herring/dts-v1/;
7724ba675SRob Herring#include "rk3066a.dtsi"
8724ba675SRob Herring
9724ba675SRob Herring/ {
10724ba675SRob Herring	model = "MarsBoard RK3066";
11724ba675SRob Herring	compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
12724ba675SRob Herring
13724ba675SRob Herring	aliases {
14724ba675SRob Herring		mmc0 = &mmc0;
15724ba675SRob Herring	};
16724ba675SRob Herring
17724ba675SRob Herring	memory@60000000 {
18724ba675SRob Herring		device_type = "memory";
19724ba675SRob Herring		reg = <0x60000000 0x40000000>;
20724ba675SRob Herring	};
21724ba675SRob Herring
22*2c3944d9SJohan Jonker	vdd_log: regulator-vdd-log {
23724ba675SRob Herring		compatible = "pwm-regulator";
24724ba675SRob Herring		pwms = <&pwm3 0 1000>;
25724ba675SRob Herring		regulator-name = "vdd_log";
26724ba675SRob Herring		regulator-min-microvolt = <1200000>;
27724ba675SRob Herring		regulator-max-microvolt = <1200000>;
28724ba675SRob Herring		regulator-always-on;
29724ba675SRob Herring		voltage-table = <1000000 100>,
30724ba675SRob Herring				<1200000 42>;
31724ba675SRob Herring		status = "okay";
32724ba675SRob Herring	};
33724ba675SRob Herring
34*2c3944d9SJohan Jonker	vcc_sd0: regulator-sdmmc {
35724ba675SRob Herring		compatible = "regulator-fixed";
36724ba675SRob Herring		regulator-name = "sdmmc-supply";
37724ba675SRob Herring		regulator-min-microvolt = <3000000>;
38724ba675SRob Herring		regulator-max-microvolt = <3000000>;
39724ba675SRob Herring		gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
40724ba675SRob Herring		startup-delay-us = <100000>;
41724ba675SRob Herring		vin-supply = <&vcc_io>;
42724ba675SRob Herring	};
43724ba675SRob Herring
44*2c3944d9SJohan Jonker	vsys: regulator-vsys {
45724ba675SRob Herring		compatible = "regulator-fixed";
46724ba675SRob Herring		regulator-name = "vsys";
47724ba675SRob Herring		regulator-min-microvolt = <5000000>;
48724ba675SRob Herring		regulator-max-microvolt = <5000000>;
49724ba675SRob Herring		regulator-boot-on;
50724ba675SRob Herring	};
51724ba675SRob Herring};
52724ba675SRob Herring
53724ba675SRob Herring&cpu0 {
54724ba675SRob Herring	cpu-supply = <&vdd_arm>;
55724ba675SRob Herring};
56724ba675SRob Herring
57724ba675SRob Herring&cpu1 {
58724ba675SRob Herring	cpu-supply = <&vdd_arm>;
59724ba675SRob Herring};
60724ba675SRob Herring
61724ba675SRob Herring&i2c1 {
62724ba675SRob Herring	status = "okay";
63724ba675SRob Herring	clock-frequency = <400000>;
64724ba675SRob Herring
65724ba675SRob Herring	tps: tps@2d {
66724ba675SRob Herring		reg = <0x2d>;
67724ba675SRob Herring
68724ba675SRob Herring		interrupt-parent = <&gpio6>;
69724ba675SRob Herring		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
70724ba675SRob Herring
71724ba675SRob Herring		vcc1-supply = <&vsys>;
72724ba675SRob Herring		vcc2-supply = <&vsys>;
73724ba675SRob Herring		vcc3-supply = <&vsys>;
74724ba675SRob Herring		vcc4-supply = <&vsys>;
75724ba675SRob Herring		vcc5-supply = <&vcc_io>;
76724ba675SRob Herring		vcc6-supply = <&vcc_io>;
77724ba675SRob Herring		vcc7-supply = <&vsys>;
78724ba675SRob Herring		vccio-supply = <&vsys>;
79724ba675SRob Herring
80724ba675SRob Herring		regulators {
81724ba675SRob Herring			vcc_rtc: regulator@0 {
82724ba675SRob Herring				regulator-name = "vcc_rtc";
83724ba675SRob Herring				regulator-always-on;
84724ba675SRob Herring			};
85724ba675SRob Herring
86724ba675SRob Herring			vcc_io: regulator@1 {
87724ba675SRob Herring				regulator-name = "vcc_io";
88724ba675SRob Herring				regulator-always-on;
89724ba675SRob Herring			};
90724ba675SRob Herring
91724ba675SRob Herring			vdd_arm: regulator@2 {
92724ba675SRob Herring				regulator-name = "vdd_arm";
93724ba675SRob Herring				regulator-min-microvolt = <600000>;
94724ba675SRob Herring				regulator-max-microvolt = <1500000>;
95724ba675SRob Herring				regulator-boot-on;
96724ba675SRob Herring				regulator-always-on;
97724ba675SRob Herring			};
98724ba675SRob Herring
99724ba675SRob Herring			vcc_ddr: regulator@3 {
100724ba675SRob Herring				regulator-name = "vcc_ddr";
101724ba675SRob Herring				regulator-min-microvolt = <600000>;
102724ba675SRob Herring				regulator-max-microvolt = <1500000>;
103724ba675SRob Herring				regulator-boot-on;
104724ba675SRob Herring				regulator-always-on;
105724ba675SRob Herring			};
106724ba675SRob Herring
107724ba675SRob Herring			vcc18_cif: regulator@5 {
108724ba675SRob Herring				regulator-name = "vcc18_cif";
109724ba675SRob Herring				regulator-always-on;
110724ba675SRob Herring			};
111724ba675SRob Herring
112724ba675SRob Herring			vdd_11: regulator@6 {
113724ba675SRob Herring				regulator-name = "vdd_11";
114724ba675SRob Herring				regulator-always-on;
115724ba675SRob Herring			};
116724ba675SRob Herring
117724ba675SRob Herring			vcc_25: regulator@7 {
118724ba675SRob Herring				regulator-name = "vcc_25";
119724ba675SRob Herring				regulator-always-on;
120724ba675SRob Herring			};
121724ba675SRob Herring
122724ba675SRob Herring			vcc_18: regulator@8 {
123724ba675SRob Herring				regulator-name = "vcc_18";
124724ba675SRob Herring				regulator-always-on;
125724ba675SRob Herring			};
126724ba675SRob Herring
127724ba675SRob Herring			vcc25_hdmi: regulator@9 {
128724ba675SRob Herring				regulator-name = "vcc25_hdmi";
129724ba675SRob Herring				regulator-always-on;
130724ba675SRob Herring			};
131724ba675SRob Herring
132724ba675SRob Herring			vcca_33: regulator@10 {
133724ba675SRob Herring				regulator-name = "vcca_33";
134724ba675SRob Herring				regulator-always-on;
135724ba675SRob Herring			};
136724ba675SRob Herring
137724ba675SRob Herring			vcc_rmii: regulator@11 {
138724ba675SRob Herring				regulator-name = "vcc_rmii";
139724ba675SRob Herring			};
140724ba675SRob Herring
141724ba675SRob Herring			vcc28_cif: regulator@12 {
142724ba675SRob Herring				regulator-name = "vcc28_cif";
143724ba675SRob Herring				regulator-always-on;
144724ba675SRob Herring			};
145724ba675SRob Herring		};
146724ba675SRob Herring	};
147724ba675SRob Herring};
148724ba675SRob Herring
149724ba675SRob Herring/* must be included after &tps gets defined */
150724ba675SRob Herring#include "../tps65910.dtsi"
151724ba675SRob Herring
152724ba675SRob Herring&emac {
153724ba675SRob Herring	phy = <&phy0>;
154724ba675SRob Herring	phy-supply = <&vcc_rmii>;
155724ba675SRob Herring	pinctrl-names = "default";
156724ba675SRob Herring	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
157724ba675SRob Herring	status = "okay";
158724ba675SRob Herring
159724ba675SRob Herring	mdio {
160724ba675SRob Herring		#address-cells = <1>;
161724ba675SRob Herring		#size-cells = <0>;
162724ba675SRob Herring
163724ba675SRob Herring		phy0: ethernet-phy@0 {
164724ba675SRob Herring			reg = <0>;
165724ba675SRob Herring			interrupt-parent = <&gpio1>;
166724ba675SRob Herring			interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
167724ba675SRob Herring		};
168724ba675SRob Herring	};
169724ba675SRob Herring};
170724ba675SRob Herring
171724ba675SRob Herring&mmc0 {
172724ba675SRob Herring	status = "okay";
173724ba675SRob Herring
174724ba675SRob Herring	pinctrl-names = "default";
175724ba675SRob Herring	pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
176724ba675SRob Herring	vmmc-supply = <&vcc_sd0>;
177724ba675SRob Herring};
178724ba675SRob Herring
179724ba675SRob Herring&pinctrl {
180724ba675SRob Herring	lan8720a {
181724ba675SRob Herring		phy_int: phy-int {
182724ba675SRob Herring			rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
183724ba675SRob Herring		};
184724ba675SRob Herring	};
185724ba675SRob Herring};
186724ba675SRob Herring
187724ba675SRob Herring&pwm3 {
188724ba675SRob Herring	status = "okay";
189724ba675SRob Herring};
190724ba675SRob Herring
191724ba675SRob Herring&uart0 {
192724ba675SRob Herring	status = "okay";
193724ba675SRob Herring};
194724ba675SRob Herring
195724ba675SRob Herring&uart1 {
196724ba675SRob Herring	status = "okay";
197724ba675SRob Herring};
198724ba675SRob Herring
199724ba675SRob Herring&uart2 {
200724ba675SRob Herring	status = "okay";
201724ba675SRob Herring};
202724ba675SRob Herring
203724ba675SRob Herring&uart3 {
204724ba675SRob Herring	status = "okay";
205724ba675SRob Herring};
206724ba675SRob Herring
207724ba675SRob Herring&usbphy {
208724ba675SRob Herring	status = "okay";
209724ba675SRob Herring};
210724ba675SRob Herring
211724ba675SRob Herring&usb_host {
212724ba675SRob Herring	status = "okay";
213724ba675SRob Herring};
214724ba675SRob Herring
215724ba675SRob Herring&usb_otg {
216724ba675SRob Herring	status = "okay";
217724ba675SRob Herring};
218724ba675SRob Herring
219724ba675SRob Herring&wdt {
220724ba675SRob Herring	status = "okay";
221724ba675SRob Herring};
222