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