2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/input/input.h>
44 #include "rk3229.dtsi"
47 model = "Rockchip RK3229 Evaluation board";
48 compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
51 device_type = "memory";
52 reg = <0x60000000 0x40000000>;
55 dc_12v: dc-12v-regulator {
56 compatible = "regulator-fixed";
57 regulator-name = "dc_12v";
60 regulator-min-microvolt = <12000000>;
61 regulator-max-microvolt = <12000000>;
65 compatible = "fixed-clock";
66 clock-frequency = <125000000>;
67 clock-output-names = "ext_gmac";
71 vcc_host: vcc-host-regulator {
72 compatible = "regulator-fixed";
74 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&host_vbus_drv>;
77 regulator-name = "vcc_host";
80 vin-supply = <&vcc_sys>;
83 vcc_phy: vcc-phy-regulator {
84 compatible = "regulator-fixed";
86 regulator-name = "vcc_phy";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
91 vin-supply = <&vccio_1v8>;
94 vcc_sys: vcc-sys-regulator {
95 compatible = "regulator-fixed";
96 regulator-name = "vcc_sys";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
101 vin-supply = <&dc_12v>;
104 vccio_1v8: vccio-1v8-regulator {
105 compatible = "regulator-fixed";
106 regulator-name = "vccio_1v8";
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <1800000>;
110 vin-supply = <&vcc_sys>;
113 vccio_3v3: vccio-3v3-regulator {
114 compatible = "regulator-fixed";
115 regulator-name = "vccio_3v3";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
119 vin-supply = <&vcc_sys>;
122 vdd_arm: vdd-arm-regulator {
123 compatible = "pwm-regulator";
124 pwms = <&pwm1 0 25000 1>;
125 pwm-supply = <&vcc_sys>;
126 regulator-name = "vdd_arm";
127 regulator-min-microvolt = <950000>;
128 regulator-max-microvolt = <1400000>;
133 vdd_log: vdd-log-regulator {
134 compatible = "pwm-regulator";
135 pwms = <&pwm2 0 25000 1>;
136 pwm-supply = <&vcc_sys>;
137 regulator-name = "vdd_log";
138 regulator-min-microvolt = <1000000>;
139 regulator-max-microvolt = <1300000>;
145 compatible = "gpio-keys";
147 pinctrl-names = "default";
148 pinctrl-0 = <&pwr_key>;
150 power_key: power-key {
151 label = "GPIO Key Power";
152 gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_POWER>;
154 debounce-interval = <100>;
161 cpu-supply = <&vdd_arm>;
165 cpu-supply = <&vdd_arm>;
169 cpu-supply = <&vdd_arm>;
173 cpu-supply = <&vdd_arm>;
184 assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
185 assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
186 clock_in_out = "input";
187 phy-supply = <&vcc_phy>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&rgmii_pins>;
191 snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
192 snps,reset-active-low;
193 snps,reset-delays-us = <0 10000 1000000>;
202 vccio1-supply = <&vccio_3v3>;
203 vccio2-supply = <&vccio_1v8>;
204 vccio4-supply = <&vccio_3v3>;
210 rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
215 host_vbus_drv: host-vbus-drv {
216 rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
230 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
241 u2phy0_otg: otg-port {
245 u2phy0_host: host-port {
246 phy-supply = <&vcc_host>;
254 u2phy1_otg: otg-port {
255 phy-supply = <&vcc_host>;
259 u2phy1_host: host-port {
260 phy-supply = <&vcc_host>;