mediatek: add support for Ubiquiti UniFi 6 LR v3
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v1.dtsi
index b3299a988fe873c4b48bb595caf0aa3109a5190d..91719865dd7417f12b90fd406e6c4f039de6fd6a 100644 (file)
@@ -1,5 +1,30 @@
 #include "mt7622-ubnt-unifi-6-lr.dtsi"
 
+&eth {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&eth_pins>;
+
+       gmac0: mac@0 {
+               compatible = "mediatek,eth-mac";
+               reg = <0>;
+
+               phy-mode = "2500base-x";
+               phy-handle = <&phy0>;
+               phy-connection-type = "2500base-x";
+       };
+
+       mdio: mdio-bus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               phy0: ethernet-phy@8 {
+                       compatible = "ethernet-phy-ieee802.3-c45";
+                       reg = <0x8>;
+               };
+       };
+};
+
 &i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins>;