xref: /linux/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright (c) 2021 FriendlyElec Computer Tech. Co., Ltd.
4 * (http://www.friendlyarm.com)
5 *
6 * Copyright (c) 2021-2023 Tianling Shen <cnsztl@gmail.com>
7 */
8
9/dts-v1/;
10
11#include "rk3328-nanopi-r2.dtsi"
12
13&gmac2io {
14	phy-handle = <&yt8521s>;
15	tx_delay = <0x22>;
16	rx_delay = <0x12>;
17	status = "okay";
18
19	mdio {
20		yt8521s: ethernet-phy@3 {
21			compatible = "ethernet-phy-ieee802.3-c22";
22			reg = <3>;
23
24			motorcomm,clk-out-frequency-hz = <125000000>;
25			motorcomm,keep-pll-enabled;
26			motorcomm,auto-sleep-disabled;
27
28			pinctrl-0 = <&eth_phy_reset_pin>;
29			pinctrl-names = "default";
30			reset-assert-us = <10000>;
31			reset-deassert-us = <50000>;
32			reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
33		};
34	};
35};
36