ath79: add support for TP-Link MR-3040 v2
[oweals/openwrt.git] / target / linux / ath79 / dts / ar7240.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar724x.dtsi"
4
5 / {
6         usb_phy: usb-phy {
7                 compatible = "qca,ar7200-usb-phy";
8
9                 reset-names = "usb-phy", "usb-ohci-dll";
10                 resets = <&rst 4>, <&rst 3>;
11
12                 #phy-cells = <0>;
13
14                 status = "disabled";
15         };
16 };
17
18 &ahb {
19         usb: usb@1b000000 {
20                 compatible = "generic-ohci";
21                 reg = <0x1b000000 0x1000>;
22
23                 interrupts = <3>;
24
25                 resets = <&rst 5>;
26                 reset-names = "usb-host";
27
28                 phy-names = "usb-phy";
29                 phys = <&usb_phy>;
30
31                 status = "disabled";
32         };
33 };
34
35 &mdio0 {
36         status = "okay";
37
38         compatible = "qca,ar7240-mdio";
39         builtin-switch;
40
41         builtin_switch: switch0@1f {
42                 compatible = "qca,ar8216-builtin";
43
44                 reg = <0x1f>;
45                 resets = <&rst 8>;
46                 reset-names = "switch";
47
48                 mdio-bus {
49                         #address-cells = <1>;
50                         #size-cells = <0>;
51
52                         swphy4: ethernet-phy@4 {
53                                 reg = <4>;
54                                 phy-mode = "mii";
55                         };
56                 };
57         };
58 };
59
60 &eth0 {
61         compatible = "qca,ar7240-eth", "syscon";
62
63         pll-data = <0x00110000 0x00001099 0x00991099>;
64
65         resets = <&rst 9>;
66         reset-names = "mac";
67         phy-mode = "mii";
68         phy-handle = <&swphy4>;
69 };
70
71 &eth1 {
72         compatible = "qca,ar7240-eth", "syscon";
73
74         pll-data = <0x00110000 0x00001099 0x00991099>;
75
76         resets = <&rst 13>;
77         reset-names = "mac";
78
79         phy-mode = "gmii";
80
81         fixed-link {
82                 speed = <1000>;
83                 full-duplex;
84         };
85 };