ath79: add support for TP-Link MR-3040 v2
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7242.dtsi
index 427d67a85401ced26f0d3db4f5ed0efc965a1279..dd5417e570268cb6bf1c9b671bf14f2bf1884e9b 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
 #include "ar724x.dtsi"
 
 };
 
 &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;
+       };
 };