]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/rk3229-evb.dts
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[karo-tx-linux.git] / arch / arm / boot / dts / rk3229-evb.dts
1 /*
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
5  * whole.
6  *
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.
11  *
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.
16  *
17  *  Or, alternatively,
18  *
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
26  *     conditions:
27  *
28  *     The above copyright notice and this permission notice shall be
29  *     included in all copies or substantial portions of the Software.
30  *
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.
39  */
40
41 /dts-v1/;
42
43 #include "rk322x.dtsi"
44
45 / {
46         model = "Rockchip RK3229 Evaluation board";
47         compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
48
49         memory@60000000 {
50                 device_type = "memory";
51                 reg = <0x60000000 0x40000000>;
52         };
53
54         ext_gmac: ext_gmac {
55                 compatible = "fixed-clock";
56                 clock-frequency = <125000000>;
57                 clock-output-names = "ext_gmac";
58                 #clock-cells = <0>;
59         };
60
61         vcc_host: vcc-host-regulator {
62                 compatible = "regulator-fixed";
63                 enable-active-high;
64                 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
65                 pinctrl-names = "default";
66                 pinctrl-0 = <&host_vbus_drv>;
67                 regulator-name = "vcc_host";
68                 regulator-always-on;
69                 regulator-boot-on;
70         };
71
72         vcc_phy: vcc-phy-regulator {
73                 compatible = "regulator-fixed";
74                 enable-active-high;
75                 regulator-name = "vcc_phy";
76                 regulator-min-microvolt = <1800000>;
77                 regulator-max-microvolt = <1800000>;
78                 regulator-always-on;
79                 regulator-boot-on;
80         };
81 };
82
83 &gmac {
84         assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
85         assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
86         clock_in_out = "input";
87         phy-supply = <&vcc_phy>;
88         phy-mode = "rgmii";
89         pinctrl-names = "default";
90         pinctrl-0 = <&rgmii_pins>;
91         snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
92         snps,reset-active-low;
93         snps,reset-delays-us = <0 10000 1000000>;
94         tx_delay = <0x30>;
95         rx_delay = <0x10>;
96         status = "okay";
97 };
98
99 &pinctrl {
100         usb {
101                 host_vbus_drv: host-vbus-drv {
102                         rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
103                 };
104         };
105 };
106
107 &uart2 {
108         status = "okay";
109 };
110
111 &u2phy0 {
112         status = "okay";
113
114         u2phy0_otg: otg-port {
115                 status = "okay";
116         };
117
118         u2phy0_host: host-port {
119                 phy-supply = <&vcc_host>;
120                 status = "okay";
121         };
122 };
123
124 &u2phy1 {
125         status = "okay";
126
127         u2phy1_otg: otg-port {
128                 phy-supply = <&vcc_host>;
129                 status = "okay";
130         };
131
132         u2phy1_host: host-port {
133                 phy-supply = <&vcc_host>;
134                 status = "okay";
135         };
136 };
137
138 &usb_host0_ehci {
139         status = "okay";
140 };
141
142 &usb_host0_ohci {
143         status = "okay";
144 };
145
146 &usb_host1_ehci {
147         status = "okay";
148 };
149
150 &usb_host1_ohci {
151         status = "okay";
152 };
153
154 &usb_host2_ehci {
155         status = "okay";
156 };
157
158 &usb_host2_ohci {
159         status = "okay";
160 };
161
162 &usb_otg {
163         status = "okay";
164 };