blob: 29a081e72a9bb496457404e9b4b916662a126142 [file] [log] [blame]
Jernej Skrabec463304d2021-01-06 18:02:56 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2018 Amarula Solutions
3// Author: Jagan Teki <jagan@amarulasolutions.com>
Jagan Teki3a0854f2018-07-29 00:03:31 +05304
Jagan Teki4c44d502018-11-05 13:20:39 +05305#include "sun50i-h6-orangepi.dtsi"
Jagan Teki3a0854f2018-07-29 00:03:31 +05306
7/ {
8 model = "OrangePi One Plus";
9 compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
Jernej Skrabec463304d2021-01-06 18:02:56 +010010
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 };
Jagan Teki3a0854f2018-07-29 00:03:31 +053043};