ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.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 &spi {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <25000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 uboot: partition@0 {
28 label = "u-boot";
29 reg = <0x000000 0x020000>;
30 read-only;
31
32 nvmem-layout {
33 compatible = "fixed-layout";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 macaddr_uboot_1fc00: macaddr@1fc00 {
38 compatible = "mac-base";
39 reg = <0x1fc00 0x6>;
40 #nvmem-cell-cells = <1>;
41 };
42 };
43 };
44
45 partition@20000 {
46 compatible = "tplink,firmware";
47 label = "firmware";
48 reg = <0x020000 0x3d0000>;
49 };
50
51 art: partition@3f0000 {
52 label = "art";
53 reg = <0x3f0000 0x010000>;
54 read-only;
55 };
56 };
57 };
58 };
59
60 &eth0 {
61 status = "okay";
62
63 phy-handle = <&swphy4>;
64
65 nvmem-cells = <&macaddr_uboot_1fc00 1>;
66 nvmem-cell-names = "mac-address";
67 };
68
69 &eth1 {
70 status = "okay";
71 };
72
73 &wmac {
74 status = "okay";
75
76 mtd-cal-data = <&art 0x1000>;
77 nvmem-cells = <&macaddr_uboot_1fc00 0>;
78 nvmem-cell-names = "mac-address";
79 };