• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright (c) 2016 Xunlong Software. Co., Ltd.
4 * (http://www.orangepi.org)
5 *
6 * Copyright (c) 2021-2023 Tianling Shen <cnsztl@gmail.com>
7 */
8
9/dts-v1/;
10#include "rk3328-orangepi-r1-plus.dts"
11
12/ {
13	model = "Xunlong Orange Pi R1 Plus LTS";
14	compatible = "xunlong,orangepi-r1-plus-lts", "rockchip,rk3328";
15};
16
17&gmac2io {
18	/delete-property/ tx_delay;
19	/delete-property/ rx_delay;
20
21	phy-handle = <&yt8531c>;
22	phy-mode = "rgmii-id";
23
24	mdio {
25		/delete-node/ ethernet-phy@1;
26
27		yt8531c: ethernet-phy@0 {
28			compatible = "ethernet-phy-ieee802.3-c22";
29			reg = <0>;
30
31			motorcomm,auto-sleep-disabled;
32			motorcomm,clk-out-frequency-hz = <125000000>;
33			motorcomm,keep-pll-enabled;
34			motorcomm,rx-clk-drv-microamp = <5020>;
35			motorcomm,rx-data-drv-microamp = <5020>;
36
37			pinctrl-0 = <&eth_phy_reset_pin>;
38			pinctrl-names = "default";
39			reset-assert-us = <15000>;
40			reset-deassert-us = <50000>;
41			reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
42		};
43	};
44};
45