3a38b8025abdd9f8c7728b21f65e46e0d5556f1a
[openwrt/staging/hauke.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
33 partition@20000 {
34 compatible = "tplink,firmware";
35 label = "firmware";
36 reg = <0x020000 0x3d0000>;
37 };
38
39 art: partition@3f0000 {
40 label = "art";
41 reg = <0x3f0000 0x010000>;
42 read-only;
43 };
44 };
45 };
46 };
47
48 &eth0 {
49 status = "okay";
50
51 phy-handle = <&swphy4>;
52
53 nvmem-cells = <&macaddr_uboot_1fc00>;
54 nvmem-cell-names = "mac-address";
55 mac-address-increment = <1>;
56 };
57
58 &eth1 {
59 status = "okay";
60 };
61
62 &wmac {
63 status = "okay";
64
65 mtd-cal-data = <&art 0x1000>;
66 nvmem-cells = <&macaddr_uboot_1fc00>;
67 nvmem-cell-names = "mac-address";
68 };
69
70 &uboot {
71 compatible = "nvmem-cells";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 macaddr_uboot_1fc00: macaddr@1fc00 {
76 reg = <0x1fc00 0x6>;
77 };
78 };