ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wx.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 "qca956x.dtsi"
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &spi {
15 status = "okay";
16
17 num-cs = <1>;
18
19 flash@0 {
20 compatible = "jedec,spi-nor";
21 reg = <0>;
22 spi-max-frequency = <25000000>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 uboot: partition@0 {
30 label = "u-boot";
31 reg = <0x000000 0x020000>;
32 read-only;
33 };
34
35 partition@20000 {
36 compatible = "tplink,firmware";
37 label = "firmware";
38 reg = <0x020000 0x3d0000>;
39 };
40
41 art: partition@3f0000 {
42 label = "art";
43 reg = <0x3f0000 0x010000>;
44 read-only;
45 };
46 };
47 };
48 };
49
50 &uart {
51 status = "okay";
52 };
53
54 &eth0 {
55 status = "okay";
56
57 phy-handle = <&swphy4>;
58
59 mtd-mac-address = <&uboot 0x1fc00>;
60 mtd-mac-address-increment = <1>;
61 };
62
63 &eth1 {
64 status = "okay";
65 };
66
67 &wmac {
68 status = "okay";
69
70 mtd-cal-data = <&art 0x1000>;
71 mtd-mac-address = <&uboot 0x1fc00>;
72 };