ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar7241.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-suspend-override";
10 resets = <&rst 4>, <&rst 3>;
11
12 #phy-cells = <0>;
13
14 status = "disabled";
15 };
16 };
17
18 &gpio {
19 ngpios = <20>;
20 };
21
22 &ahb {
23 usb: usb@1b000000 {
24 compatible = "generic-ehci";
25 reg = <0x1b000000 0x1000>;
26
27 interrupts = <3>;
28
29 resets = <&rst 5>;
30 reset-names = "usb-host";
31
32 has-transaction-translator;
33 caps-offset = <0x100>;
34
35 phy-names = "usb-phy";
36 phys = <&usb_phy>;
37
38 status = "disabled";
39 };
40 };
41
42 &eth0 {
43 compatible = "qca,ar7241-eth", "syscon";
44
45 pll-data = <0x00110000 0x00001099 0x00991099>;
46
47 resets = <&rst 9>;
48 reset-names = "mac";
49 phy-handle = <&swphy4>;
50 };
51
52 &mdio1 {
53 status = "okay";
54
55 resets = <&rst 23>;
56 reset-names = "mdio";
57 builtin-switch;
58
59 builtin_switch: switch0@1f {
60 compatible = "qca,ar7240sw";
61
62 reg = <0x1f>;
63 resets = <&rst 8>;
64 reset-names = "switch";
65 qca,mib-poll-interval = <500>;
66
67 mdio-bus {
68 #address-cells = <1>;
69 #size-cells = <0>;
70
71 swphy4: ethernet-phy@4 {
72 reg = <4>;
73 phy-mode = "mii";
74 };
75 };
76 };
77 };
78
79 &eth1 {
80 compatible = "qca,ar7241-eth", "syscon";
81
82 pll-data = <0x00110000 0x00001099 0x00991099>;
83
84 resets = <&rst 13>;
85 reset-names = "mac";
86
87 phy-mode = "gmii";
88
89 fixed-link {
90 speed = <1000>;
91 full-duplex;
92 };
93 };