};
&mdio_bus1 {
- phy24: ethernet-phy@8 {
- reg = <8>;
- compatible = "ethernet-phy-ieee802.3-c45";
- enet-phy-pair-order = <1>;
- };
+ PHY_C45_PAIR_ORDER(24, 8, 1)
};
&mdio_bus2 {
- phy25: ethernet-phy@9 {
- reg = <9>;
- compatible = "ethernet-phy-ieee802.3-c45";
- enet-phy-pair-order = <1>;
- };
+ PHY_C45_PAIR_ORDER(25, 9, 1)
};
};
&mdio_bus1 {
- phy24: ethernet-phy@8 {
- reg = <8>;
- compatible = "ethernet-phy-ieee802.3-c45";
- enet-phy-pair-order = <1>;
- };
+ PHY_C45_PAIR_ORDER(24, 8, 1)
};
&mdio_bus2 {
- phy25: ethernet-phy@9 {
- reg = <9>;
- compatible = "ethernet-phy-ieee802.3-c45";
- enet-phy-pair-order = <1>;
- };
+ PHY_C45_PAIR_ORDER(25, 9, 1)
};
};
&mdio_bus1 {
- phy24: ethernet-phy@1 {
- reg = <1>;
- compatible = "ethernet-phy-ieee802.3-c45";
- };
+ PHY_C45(24, 1)
};
&mdio_bus2 {
- phy25: ethernet-phy@2 {
- reg = <2>;
- compatible = "ethernet-phy-ieee802.3-c45";
- };
+ PHY_C45(25, 2)
};
};
&mdio_bus0 {
- /* External RTL8218D or RTL8218E PHY */
- phy0: ethernet-phy@0 {
- reg = <0>;
- compatible = "ethernet-phy-ieee802.3-c22";
- // Disabled because we do not know how to bring up again
- // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- };
- phy1: ethernet-phy@1 {
- reg = <1>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy2: ethernet-phy@2 {
- reg = <2>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy3: ethernet-phy@3 {
- reg = <3>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy4: ethernet-phy@4 {
- reg = <4>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy5: ethernet-phy@5 {
- reg = <5>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy6: ethernet-phy@6 {
- reg = <6>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy7: ethernet-phy@7 {
- reg = <7>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
+ /*
+ * External RTL8218D or RTL8218E PHY
+ *
+ * reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ * disabled because we do not know how to bring up again
+ */
+ PHY_C22(0, 0)
+ PHY_C22(1, 1)
+ PHY_C22(2, 2)
+ PHY_C22(3, 3)
+ PHY_C22(4, 4)
+ PHY_C22(5, 5)
+ PHY_C22(6, 6)
+ PHY_C22(7, 7)
};
&switch0 {
};
&mdio_bus0 {
- /* External RTL8218D PHY */
- phy0: ethernet-phy@0 {
- reg = <0>;
- compatible = "ethernet-phy-ieee802.3-c22";
- // Disabled because we do not know how to bring up again
- // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
- };
- phy1: ethernet-phy@1 {
- reg = <1>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy2: ethernet-phy@2 {
- reg = <2>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy3: ethernet-phy@3 {
- reg = <3>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy4: ethernet-phy@4 {
- reg = <4>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy5: ethernet-phy@5 {
- reg = <5>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy6: ethernet-phy@6 {
- reg = <6>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
- phy7: ethernet-phy@7 {
- reg = <7>;
- compatible = "ethernet-phy-ieee802.3-c22";
- };
+ /*
+ * External RTL8218D PHY
+ *
+ * reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ * disabled because we do not know how to bring up again
+ */
+ PHY_C22(0, 0)
+ PHY_C22(1, 1)
+ PHY_C22(2, 2)
+ PHY_C22(3, 3)
+ PHY_C22(4, 4)
+ PHY_C22(5, 5)
+ PHY_C22(6, 6)
+ PHY_C22(7, 7)
};
&switch0 {