Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / rk3229-evb.dts
blob350497a3ca8623d51252577c38994d40bf11851e
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/input/input.h>
6 #include "rk3229.dtsi"
8 / {
9         model = "Rockchip RK3229 Evaluation board";
10         compatible = "rockchip,rk3229-evb", "rockchip,rk3229";
12         memory@60000000 {
13                 device_type = "memory";
14                 reg = <0x60000000 0x40000000>;
15         };
17         dc_12v: dc-12v-regulator {
18                 compatible = "regulator-fixed";
19                 regulator-name = "dc_12v";
20                 regulator-always-on;
21                 regulator-boot-on;
22                 regulator-min-microvolt = <12000000>;
23                 regulator-max-microvolt = <12000000>;
24         };
26         ext_gmac: ext_gmac {
27                 compatible = "fixed-clock";
28                 clock-frequency = <125000000>;
29                 clock-output-names = "ext_gmac";
30                 #clock-cells = <0>;
31         };
33         vcc_host: vcc-host-regulator {
34                 compatible = "regulator-fixed";
35                 enable-active-high;
36                 gpio = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
37                 pinctrl-names = "default";
38                 pinctrl-0 = <&host_vbus_drv>;
39                 regulator-name = "vcc_host";
40                 regulator-always-on;
41                 regulator-boot-on;
42                 vin-supply = <&vcc_sys>;
43         };
45         vcc_phy: vcc-phy-regulator {
46                 compatible = "regulator-fixed";
47                 enable-active-high;
48                 regulator-name = "vcc_phy";
49                 regulator-min-microvolt = <1800000>;
50                 regulator-max-microvolt = <1800000>;
51                 regulator-always-on;
52                 regulator-boot-on;
53                 vin-supply = <&vccio_1v8>;
54         };
56         vcc_sys: vcc-sys-regulator {
57                 compatible = "regulator-fixed";
58                 regulator-name = "vcc_sys";
59                 regulator-always-on;
60                 regulator-boot-on;
61                 regulator-min-microvolt = <5000000>;
62                 regulator-max-microvolt = <5000000>;
63                 vin-supply = <&dc_12v>;
64         };
66         vccio_1v8: vccio-1v8-regulator {
67                 compatible = "regulator-fixed";
68                 regulator-name = "vccio_1v8";
69                 regulator-min-microvolt = <1800000>;
70                 regulator-max-microvolt = <1800000>;
71                 regulator-always-on;
72                 vin-supply = <&vcc_sys>;
73         };
75         vccio_3v3: vccio-3v3-regulator {
76                 compatible = "regulator-fixed";
77                 regulator-name = "vccio_3v3";
78                 regulator-min-microvolt = <3300000>;
79                 regulator-max-microvolt = <3300000>;
80                 regulator-always-on;
81                 vin-supply = <&vcc_sys>;
82         };
84         vdd_arm: vdd-arm-regulator {
85                 compatible = "pwm-regulator";
86                 pwms = <&pwm1 0 25000 1>;
87                 pwm-supply = <&vcc_sys>;
88                 regulator-name = "vdd_arm";
89                 regulator-min-microvolt = <950000>;
90                 regulator-max-microvolt = <1400000>;
91                 regulator-always-on;
92                 regulator-boot-on;
93         };
95         vdd_log: vdd-log-regulator {
96                 compatible = "pwm-regulator";
97                 pwms = <&pwm2 0 25000 1>;
98                 pwm-supply = <&vcc_sys>;
99                 regulator-name = "vdd_log";
100                 regulator-min-microvolt = <1000000>;
101                 regulator-max-microvolt = <1300000>;
102                 regulator-always-on;
103                 regulator-boot-on;
104         };
106         gpio_keys {
107                 compatible = "gpio-keys";
108                 autorepeat;
109                 pinctrl-names = "default";
110                 pinctrl-0 = <&pwr_key>;
112                 power_key: power-key {
113                         label = "GPIO Key Power";
114                         gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
115                         linux,code = <KEY_POWER>;
116                         debounce-interval = <100>;
117                         wakeup-source;
118                 };
119         };
122 &cpu0 {
123         cpu-supply = <&vdd_arm>;
126 &cpu1 {
127         cpu-supply = <&vdd_arm>;
130 &cpu2 {
131         cpu-supply = <&vdd_arm>;
134 &cpu3 {
135         cpu-supply = <&vdd_arm>;
138 &emmc {
139         cap-mmc-highspeed;
140         non-removable;
141         status = "okay";
144 &gmac {
145         assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>;
146         assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>;
147         clock_in_out = "input";
148         phy-supply = <&vcc_phy>;
149         phy-mode = "rgmii";
150         pinctrl-names = "default";
151         pinctrl-0 = <&rgmii_pins>;
152         snps,reset-gpio = <&gpio2 RK_PD0 GPIO_ACTIVE_LOW>;
153         snps,reset-active-low;
154         snps,reset-delays-us = <0 10000 1000000>;
155         tx_delay = <0x30>;
156         rx_delay = <0x10>;
157         status = "okay";
160 &io_domains {
161         status = "okay";
163         vccio1-supply = <&vccio_3v3>;
164         vccio2-supply = <&vccio_1v8>;
165         vccio4-supply = <&vccio_3v3>;
168 &pinctrl {
169         keys {
170                 pwr_key: pwr-key {
171                         rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
172                 };
173         };
175         usb {
176                 host_vbus_drv: host-vbus-drv {
177                         rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
178                 };
179         };
182 &pwm1 {
183         status = "okay";
186 &pwm2 {
187         status = "okay";
190 &tsadc {
191         rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
192         status = "okay";
195 &uart2 {
196         status = "okay";
199 &u2phy0 {
200         status = "okay";
202         u2phy0_otg: otg-port {
203                 status = "okay";
204         };
206         u2phy0_host: host-port {
207                 phy-supply = <&vcc_host>;
208                 status = "okay";
209         };
212 &u2phy1 {
213         status = "okay";
215         u2phy1_otg: otg-port {
216                 phy-supply = <&vcc_host>;
217                 status = "okay";
218         };
220         u2phy1_host: host-port {
221                 phy-supply = <&vcc_host>;
222                 status = "okay";
223         };
226 &usb_host0_ehci {
227         status = "okay";
230 &usb_host0_ohci {
231         status = "okay";
234 &usb_host1_ehci {
235         status = "okay";
238 &usb_host1_ohci {
239         status = "okay";
242 &usb_host2_ehci {
243         status = "okay";
246 &usb_host2_ohci {
247         status = "okay";
250 &usb_otg {
251         status = "okay";