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 <[email protected]>
7 */
8
9/dts-v1/;
10
11#include "rk3328-orangepi-r1-plus.dtsi"
12
13/ {
14	model = "Xunlong Orange Pi R1 Plus LTS";
15	compatible = "xunlong,orangepi-r1-plus-lts", "rockchip,rk3328";
16};
17
18&gmac2io {
19	phy-handle = <&yt8531c>;
20	phy-mode = "rgmii-id";
21	status = "okay";
22
23	mdio {
24		yt8531c: ethernet-phy@0 {
25			compatible = "ethernet-phy-ieee802.3-c22";
26			reg = <0>;
27
28			motorcomm,auto-sleep-disabled;
29			motorcomm,clk-out-frequency-hz = <125000000>;
30			motorcomm,keep-pll-enabled;
31			motorcomm,rx-clk-drv-microamp = <5020>;
32			motorcomm,rx-data-drv-microamp = <5020>;
33
34			pinctrl-0 = <&eth_phy_reset_pin>;
35			pinctrl-names = "default";
36			reset-assert-us = <15000>;
37			reset-deassert-us = <50000>;
38			reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
39		};
40	};
41};
42