Matwey V. Kornilov | e768cfc | 2019-08-02 10:39:58 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 3 | * (C) Copyright 2016-2019 Rockchip Electronics Co., Ltd |
Matwey V. Kornilov | e768cfc | 2019-08-02 10:39:58 +0300 | [diff] [blame] | 4 | */ |
| 5 | |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 6 | #include "rk3328-u-boot.dtsi" |
Kever Yang | e0d3f88 | 2019-08-02 10:40:00 +0300 | [diff] [blame] | 7 | #include "rk3328-sdram-ddr3-666.dtsi" |
| 8 | |
Chen-Yu Tsai | e718485 | 2020-04-27 14:52:46 +0800 | [diff] [blame] | 9 | /{ |
Chen-Yu Tsai | 8cd428d | 2020-04-27 14:52:47 +0800 | [diff] [blame] | 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 | |
Chen-Yu Tsai | e718485 | 2020-04-27 14:52:46 +0800 | [diff] [blame] | 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 | |
Chen-Yu Tsai | 8cd428d | 2020-04-27 14:52:47 +0800 | [diff] [blame] | 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 | |
Chen-Yu Tsai | b67079b | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 43 | &gmac2phy { |
Michal Simek | 50fa118 | 2023-05-17 09:17:16 +0200 | [diff] [blame] | 44 | /* Integrated PHY unsupported by U-Boot */ |
Chen-Yu Tsai | b67079b | 2020-04-27 14:52:52 +0800 | [diff] [blame] | 45 | status = "broken"; |
| 46 | }; |
| 47 | |
Kever Yang | e68e10b | 2019-08-15 11:40:56 +0800 | [diff] [blame] | 48 | &usb_host0_xhci { |
| 49 | vbus-supply = <&vcc5v0_host_xhci>; |
| 50 | status = "okay"; |
Matwey V. Kornilov | e768cfc | 2019-08-02 10:39:58 +0300 | [diff] [blame] | 51 | }; |