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