aliases {
serial0 = &gsbi7_serial;
serial1 = &gsbi2_serial;
- mdio-gpio0 = &mdio0;
ethernet0 = &gmac0;
ethernet1 = &gmac2;
};
};
-&soc {
- mdio1: mdio {
- compatible = "virtual,mdio-gpio";
- #address-cells = <1>;
- #size-cells = <0>;
-
- status = "okay";
-
- pinctrl-0 = <&mdio0_pins>;
- pinctrl-names = "default";
-
- gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
+&mdio0 {
+ status = "okay";
- phy1: ethernet-phy@1 {
- reg = <1>;
- };
+ phy1: ethernet-phy@1 {
+ reg = <1>;
+ };
- phy2: ethernet-phy@2 {
- reg = <2>;
- };
+ phy2: ethernet-phy@2 {
+ reg = <2>;
};
};
status = "okay";
qcom,id = <0>;
- mdiobus = <&mdio1>;
+ mdiobus = <&mdio0>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
status = "okay";
qcom,id = <2>;
- mdiobus = <&mdio1>;
+ mdiobus = <&mdio0>;
phy-mode = "sgmii";
phy-handle = <&phy2>;