- #include "sun50i-h6-orangepi.dtsi"
- / {
- model = "OrangePi OnePlus";
- compatible = "OrangePi H6,opi-h6", "allwinner,sun50i-h6";
- aliases {
- ethernet0 = &emac;
- };
- reg_gmac_2v5: gmac-2v5 {
- compatible = "regulator-fixed";
- regulator-name = "gmac-2v5";
- regulator-min-microvolt = <2500000>;
- regulator-max-microvolt = <2500000>;
- enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
- vin-supply = <®_vcc5v>;
- startup-delay-us = <100000>;
- };
- reg_gmac_3v3: gmac-3v3 {
- compatible = "regulator-fixed";
- regulator-name = "vcc-gmac-3v3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- vin-supply = <®_aldo2>;
- startup-delay-us = <100000>;
- };
- };
- &emac {
- pinctrl-names = "default";
- pinctrl-0 = <&ext_rgmii_pins>;
- phy-mode = "rgmii";
- phy-handle = <&ext_rgmii_phy>;
- phy-supply = <®_gmac_3v3>;
- phy-io-supply = <®_gmac_2v5>;
- allwinner,rx-delay-ps = <1500>;
- allwinner,tx-delay-ps = <700>;
- status = "okay";
- };
- &mdio {
- ext_rgmii_phy: ethernet-phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <1>;
- reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
- reset-assert-us = <15000>;
- reset-deassert-us = <40000>;
- };
- };
my std file..
trying to make it depends on <reg_gmac_2v5: gmac-2v5> for 'phy-io-supply', and
reg_gmac_3v3: gmac-3v3 for 'phy-supply'
but like I showed...it shutsdown by timeout..