blob: bae965c123c165d38fb8d8836667ae749893f283 [file] [log] [blame]
Romain Perierccfe1282014-11-02 10:20:01 +00001/*
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 {
Heiko Stuebner6158e6d2015-07-15 20:57:21 +020051 device_type = "memory";
Romain Perierccfe1282014-11-02 10:20:01 +000052 reg = <0x60000000 0x40000000>;
53 };
54
55 vcc_sd0: sdmmc-regulator {
56 compatible = "regulator-fixed";
57 regulator-name = "sdmmc-supply";
58 regulator-min-microvolt = <3000000>;
59 regulator-max-microvolt = <3000000>;
60 gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
61 startup-delay-us = <100000>;
62 vin-supply = <&vcc_io>;
63 };
Romain Perier288ce4a2014-12-01 18:37:26 +000064
65 vsys: vsys-regulator {
66 compatible = "regulator-fixed";
67 regulator-name = "vsys";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
70 regulator-boot-on;
71 };
Romain Perierccfe1282014-11-02 10:20:01 +000072};
73
74&i2c1 {
75 status = "okay";
76 clock-frequency = <400000>;
77
78 tps: tps@2d {
79 reg = <0x2d>;
80
81 interrupt-parent = <&gpio6>;
82 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
83
Romain Perier288ce4a2014-12-01 18:37:26 +000084 vcc1-supply = <&vsys>;
85 vcc2-supply = <&vsys>;
86 vcc3-supply = <&vsys>;
87 vcc4-supply = <&vsys>;
Romain Perierccfe1282014-11-02 10:20:01 +000088 vcc5-supply = <&vcc_io>;
89 vcc6-supply = <&vcc_io>;
Romain Perier288ce4a2014-12-01 18:37:26 +000090 vcc7-supply = <&vsys>;
91 vccio-supply = <&vsys>;
Romain Perierccfe1282014-11-02 10:20:01 +000092
93 regulators {
94 vcc_rtc: regulator@0 {
95 regulator-name = "vcc_rtc";
96 regulator-always-on;
97 };
98
99 vcc_io: regulator@1 {
100 regulator-name = "vcc_io";
101 regulator-always-on;
102 };
103
104 vdd_arm: regulator@2 {
105 regulator-name = "vdd_arm";
106 regulator-min-microvolt = <600000>;
107 regulator-max-microvolt = <1500000>;
108 regulator-boot-on;
109 regulator-always-on;
110 };
111
112 vcc_ddr: regulator@3 {
113 regulator-name = "vcc_ddr";
114 regulator-min-microvolt = <600000>;
115 regulator-max-microvolt = <1500000>;
116 regulator-boot-on;
117 regulator-always-on;
118 };
119
120 vcc18_cif: regulator@5 {
121 regulator-name = "vcc18_cif";
122 regulator-always-on;
123 };
124
125 vdd_11: regulator@6 {
126 regulator-name = "vdd_11";
127 regulator-always-on;
128 };
129
130 vcc_25: regulator@7 {
131 regulator-name = "vcc_25";
132 regulator-always-on;
133 };
134
135 vcc_18: regulator@8 {
136 regulator-name = "vcc_18";
137 regulator-always-on;
138 };
139
140 vcc25_hdmi: regulator@9 {
141 regulator-name = "vcc25_hdmi";
142 regulator-always-on;
143 };
144
145 vcca_33: regulator@10 {
146 regulator-name = "vcca_33";
147 regulator-always-on;
148 };
149
150 vcc_rmii: regulator@11 {
151 regulator-name = "vcc_rmii";
152 };
153
154 vcc28_cif: regulator@12 {
155 regulator-name = "vcc28_cif";
156 regulator-always-on;
157 };
158 };
159 };
160};
161
162/* must be included after &tps gets defined */
163#include "tps65910.dtsi"
164
165&emac {
166 status = "okay";
167
168 phy = <&phy0>;
169 phy-supply = <&vcc_rmii>;
170
171 pinctrl-names = "default";
172 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
173
174 phy0: ethernet-phy@0 {
175 reg = <0>;
176 interrupt-parent = <&gpio1>;
177 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
178 };
179};
180
181&pinctrl {
182 lan8720a {
183 phy_int: phy-int {
184 rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>;
185 };
186 };
187};
188
189&uart0 {
190 status = "okay";
191};
192
193&uart1 {
194 status = "okay";
195};
196
197&uart2 {
198 status = "okay";
199};
200
201&uart3 {
202 status = "okay";
203};
204
Heiko Stuebner760bb972015-08-01 20:28:36 +0200205&usbphy {
206 status = "okay";
207};
208
Heiko Stuebner67867fc2015-08-02 22:34:17 +0200209&usb_host {
210 status = "okay";
211};
212
213&usb_otg {
214 status = "okay";
215};
216
Romain Perierccfe1282014-11-02 10:20:01 +0000217&wdt {
218 status = "okay";
219};