rk3066a-marsboard.dts revision 284090
1/*
2 * Copyright (c) 2014 Romain Perier <romain.perier@gmail.com>
3 *
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 *  a) This file is free software; you can redistribute it and/or
10 *     modify it under the terms of the GNU General Public License as
11 *     published by the Free Software Foundation; either version 2 of the
12 *     License, or (at your option) any later version.
13 *
14 *     This file is distributed in the hope that it will be useful,
15 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *     GNU General Public License for more details.
18 *
19 * Or, alternatively,
20 *
21 *  b) Permission is hereby granted, free of charge, to any person
22 *     obtaining a copy of this software and associated documentation
23 *     files (the "Software"), to deal in the Software without
24 *     restriction, including without limitation the rights to use,
25 *     copy, modify, merge, publish, distribute, sublicense, and/or
26 *     sell copies of the Software, and to permit persons to whom the
27 *     Software is furnished to do so, subject to the following
28 *     conditions:
29 *
30 *     The above copyright notice and this permission notice shall be
31 *     included in all copies or substantial portions of the Software.
32 *
33 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 *     OTHER DEALINGS IN THE SOFTWARE.
41 */
42
43/dts-v1/;
44#include "rk3066a.dtsi"
45
46/ {
47	model = "MarsBoard RK3066";
48	compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a";
49
50	memory {
51		reg = <0x60000000 0x40000000>;
52	};
53
54	vcc_sd0: sdmmc-regulator {
55		compatible = "regulator-fixed";
56		regulator-name = "sdmmc-supply";
57		regulator-min-microvolt = <3000000>;
58		regulator-max-microvolt = <3000000>;
59		gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
60		startup-delay-us = <100000>;
61		vin-supply = <&vcc_io>;
62	};
63
64	vsys: vsys-regulator {
65		compatible = "regulator-fixed";
66		regulator-name = "vsys";
67		regulator-min-microvolt = <5000000>;
68		regulator-max-microvolt = <5000000>;
69		regulator-boot-on;
70	};
71};
72
73&i2c1 {
74	status = "okay";
75	clock-frequency = <400000>;
76
77	tps: tps@2d {
78		reg = <0x2d>;
79
80		interrupt-parent = <&gpio6>;
81		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
82
83		vcc1-supply = <&vsys>;
84		vcc2-supply = <&vsys>;
85		vcc3-supply = <&vsys>;
86		vcc4-supply = <&vsys>;
87		vcc5-supply = <&vcc_io>;
88		vcc6-supply = <&vcc_io>;
89		vcc7-supply = <&vsys>;
90		vccio-supply = <&vsys>;
91
92		regulators {
93			vcc_rtc: regulator@0 {
94				regulator-name = "vcc_rtc";
95				regulator-always-on;
96			};
97
98			vcc_io: regulator@1 {
99				regulator-name = "vcc_io";
100				regulator-always-on;
101			};
102
103			vdd_arm: regulator@2 {
104				regulator-name = "vdd_arm";
105				regulator-min-microvolt = <600000>;
106				regulator-max-microvolt = <1500000>;
107				regulator-boot-on;
108				regulator-always-on;
109			};
110
111			vcc_ddr: regulator@3 {
112				regulator-name = "vcc_ddr";
113				regulator-min-microvolt = <600000>;
114				regulator-max-microvolt = <1500000>;
115				regulator-boot-on;
116				regulator-always-on;
117			};
118
119			vcc18_cif: regulator@5 {
120				regulator-name = "vcc18_cif";
121				regulator-always-on;
122			};
123
124			vdd_11: regulator@6 {
125				regulator-name = "vdd_11";
126				regulator-always-on;
127			};
128
129			vcc_25: regulator@7 {
130				regulator-name = "vcc_25";
131				regulator-always-on;
132			};
133
134			vcc_18: regulator@8 {
135				regulator-name = "vcc_18";
136				regulator-always-on;
137			};
138
139			vcc25_hdmi: regulator@9 {
140				regulator-name = "vcc25_hdmi";
141				regulator-always-on;
142			};
143
144			vcca_33: regulator@10 {
145				regulator-name = "vcca_33";
146				regulator-always-on;
147			};
148
149			vcc_rmii: regulator@11 {
150				regulator-name = "vcc_rmii";
151			};
152
153			vcc28_cif: regulator@12 {
154				regulator-name = "vcc28_cif";
155				regulator-always-on;
156			};
157		};
158	};
159};
160
161/* must be included after &tps gets defined */
162#include "tps65910.dtsi"
163
164&emac {
165	status = "okay";
166
167	phy = <&phy0>;
168	phy-supply = <&vcc_rmii>;
169
170	pinctrl-names = "default";
171	pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
172
173	phy0: ethernet-phy@0 {
174		reg = <0>;
175		interrupt-parent = <&gpio1>;
176		interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
177	};
178};
179
180&pinctrl {
181	lan8720a {
182		phy_int: phy-int {
183			rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>;
184		};
185	};
186};
187
188&uart0 {
189	status = "okay";
190};
191
192&uart1 {
193	status = "okay";
194};
195
196&uart2 {
197	status = "okay";
198};
199
200&uart3 {
201	status = "okay";
202};
203
204&wdt {
205	status = "okay";
206};
207