499ef982018d699c4fc93ce314b0217dc7e5ce1a
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wa.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &ref {
15 clock-frequency = <25000000>;
16 };
17
18 &spi {
19 status = "okay";
20
21 flash@0 {
22 compatible = "jedec,spi-nor";
23 reg = <0>;
24 spi-max-frequency = <25000000>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 uboot: partition@0 {
32 label = "u-boot";
33 reg = <0x000000 0x020000>;
34 read-only;
35 };
36
37 partition@20000 {
38 compatible = "tplink,firmware";
39 label = "firmware";
40 reg = <0x020000 0x3d0000>;
41 };
42
43 art: partition@3f0000 {
44 label = "art";
45 reg = <0x3f0000 0x010000>;
46 read-only;
47 };
48 };
49 };
50 };
51
52 &eth0 {
53 status = "okay";
54
55 phy-handle = <&swphy0>;
56
57 mtd-mac-address = <&uboot 0x1fc00>;
58
59 gmac-config {
60 device = <&gmac>;
61
62 switch-phy-swap = <1>;
63 };
64 };
65
66 &eth1 {
67 compatible = "syscon", "simple-mfd";
68 };
69
70 &wmac {
71 status = "okay";
72
73 mtd-cal-data = <&art 0x1000>;
74 mtd-mac-address = <&uboot 0x1fc00>;
75 };