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