Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / dts / rk3328-evb-u-boot.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2016-2019 Rockchip Electronics Co., Ltd
4  */
5
6 #include "rk3328-u-boot.dtsi"
7 #include "rk3328-sdram-ddr3-666.dtsi"
8
9 /{
10         gmac_clkin: external-gmac-clock {
11                 compatible = "fixed-clock";
12                 clock-frequency = <125000000>;
13                 clock-output-names = "gmac_clkin";
14                 #clock-cells = <0>;
15         };
16
17         vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
18                 compatible = "regulator-fixed";
19                 enable-active-high;
20                 gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
21                 regulator-name = "vcc5v0_host_xhci";
22                 regulator-min-microvolt = <5000000>;
23                 regulator-max-microvolt = <5000000>;
24         };
25 };
26
27 &gmac2io {
28         phy-supply = <&vcc_phy>;
29         phy-mode = "rgmii";
30         clock_in_out = "input";
31         snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
32         snps,reset-active-low;
33         snps,reset-delays-us = <0 10000 50000>;
34         assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
35         assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
36         pinctrl-names = "default";
37         pinctrl-0 = <&rgmiim1_pins>;
38         tx_delay = <0x26>;
39         rx_delay = <0x11>;
40         status = "okay";
41 };
42
43 &gmac2phy {
44         /* Integrated PHY unsupported by U-boot */
45         status = "broken";
46 };
47
48 &usb_host0_xhci {
49         vbus-supply = <&vcc5v0_host_xhci>;
50         status = "okay";
51 };