ath79: add support for TP-Link MR-3040 v2
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242.dtsi
index a5909a9b31500fa6fa7b926aa1a9b2c9d4a99cf1..dd5417e570268cb6bf1c9b671bf14f2bf1884e9b 100644 (file)
 };
 
 &eth0 {
-       compatible = "qca,ar7242-eth", "syscon";
+       compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
 
        pll-data = <0x16000000 0x00000101 0x00001616>;
        pll-reg = <0x4 0x2c 17>;
        pll-handle = <&pll>;
 
-       resets = <&rst 8>, <&rst 9>;
-       reset-names = "mac", "phy";
+       resets = <&rst 9>;
+       reset-names = "mac";
 };
 
 &mdio1 {
        resets = <&rst 23>;
        reset-names = "mdio";
        builtin-switch;
+
+       builtin_switch: switch0@1f {
+               compatible = "qca,ar8216-builtin";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x1f>;
+               resets = <&rst 8>;
+               reset-names = "switch";
+       };
 };
 
 &eth1 {
-       compatible = "qca,ar7242-eth", "syscon";
+       compatible = "qca,ar7242-eth", "syscon", "simple-mfd";
+
+       resets = <&rst 13>;
+       reset-names = "mac";
 
-       resets = <&rst 12>, <&rst 13>;
-       reset-names = "mac", "phy";
+       phy-mode = "gmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+       };
 };