d98250b070475754c871f6959b83007a63f491b6
[oweals/openwrt.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         chosen {
14                 bootargs = "console=ttyS0,115200n8";
15         };
16 };
17
18 &spi {
19         status = "okay";
20
21         num-cs = <1>;
22
23         flash@0 {
24                 compatible = "jedec,spi-nor";
25                 reg = <0>;
26                 spi-max-frequency = <25000000>;
27
28                 partitions {
29                         compatible = "fixed-partitions";
30                         #address-cells = <1>;
31                         #size-cells = <1>;
32
33                         uboot: partition@0 {
34                                 label = "u-boot";
35                                 reg = <0x000000 0x020000>;
36                                 read-only;
37                         };
38
39                         partition@20000 {
40                                 compatible = "tplink,firmware";
41                                 label = "firmware";
42                                 reg = <0x020000 0x3d0000>;
43                         };
44
45                         art: partition@3f0000 {
46                                 label = "art";
47                                 reg = <0x3f0000 0x010000>;
48                                 read-only;
49                         };
50                 };
51         };
52 };
53
54 &uart {
55         status = "okay";
56 };
57
58 &eth0 {
59         status = "okay";
60
61         phy-handle = <&swphy4>;
62
63         mtd-mac-address = <&uboot 0x1fc00>;
64         mtd-mac-address-increment = <1>;
65 };
66
67 &eth1 {
68         status = "okay";
69 };
70
71 &wmac {
72         status = "okay";
73
74         mtd-cal-data = <&art 0x1000>;
75         mtd-mac-address = <&uboot 0x1fc00>;
76 };