0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2018 Amarula Solutions
0003 // Author: Jagan Teki <jagan@amarulasolutions.com>
0004
0005 #include "sun50i-h6-orangepi.dtsi"
0006
0007 / {
0008 model = "OrangePi One Plus";
0009 compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
0010
0011 aliases {
0012 ethernet0 = &emac;
0013 };
0014
0015 reg_gmac_3v3: gmac-3v3 {
0016 compatible = "regulator-fixed";
0017 regulator-name = "vcc-gmac-3v3";
0018 regulator-min-microvolt = <3300000>;
0019 regulator-max-microvolt = <3300000>;
0020 startup-delay-us = <100000>;
0021 enable-active-high;
0022 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
0023 vin-supply = <®_aldo2>;
0024 };
0025 };
0026
0027 &emac {
0028 pinctrl-names = "default";
0029 pinctrl-0 = <&ext_rgmii_pins>;
0030 phy-mode = "rgmii-id";
0031 phy-handle = <&ext_rgmii_phy>;
0032 phy-supply = <®_gmac_3v3>;
0033 allwinner,rx-delay-ps = <200>;
0034 allwinner,tx-delay-ps = <200>;
0035 status = "okay";
0036 };
0037
0038 &mdio {
0039 ext_rgmii_phy: ethernet-phy@1 {
0040 compatible = "ethernet-phy-ieee802.3-c22";
0041 reg = <1>;
0042 };
0043 };