xref: /linux/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2018 Amarula Solutions
3// Author: Jagan Teki <jagan@amarulasolutions.com>
4
5#include "sun50i-h6-orangepi.dtsi"
6
7/ {
8	model = "OrangePi One Plus";
9	compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
10
11	aliases {
12		ethernet0 = &emac;
13	};
14
15	reg_gmac_3v3: gmac-3v3 {
16		compatible = "regulator-fixed";
17		regulator-name = "vcc-gmac-3v3";
18		regulator-min-microvolt = <3300000>;
19		regulator-max-microvolt = <3300000>;
20		startup-delay-us = <100000>;
21		enable-active-high;
22		gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
23		vin-supply = <&reg_aldo2>;
24	};
25};
26
27&emac {
28	pinctrl-names = "default";
29	pinctrl-0 = <&ext_rgmii_pins>;
30	phy-mode = "rgmii-id";
31	phy-handle = <&ext_rgmii_phy>;
32	phy-supply = <&reg_gmac_3v3>;
33	allwinner,rx-delay-ps = <200>;
34	allwinner,tx-delay-ps = <200>;
35	status = "okay";
36};
37
38&mdio {
39	ext_rgmii_phy: ethernet-phy@1 {
40		compatible = "ethernet-phy-ieee802.3-c22";
41		reg = <1>;
42	};
43};
44