3e591ec90829e3b193519ee0fd787e5ca81e0da5
[openwrt/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 "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 &uart {
49 status = "okay";
50 };
51
52 &eth0 {
53 status = "okay";
54
55 phy-handle = <&swphy4>;
56
57 mtd-mac-address = <&uboot 0x1fc00>;
58 mtd-mac-address-increment = <1>;
59 };
60
61 &eth1 {
62 status = "okay";
63 };
64
65 &wmac {
66 status = "okay";
67
68 mtd-cal-data = <&art 0x1000>;
69 mtd-mac-address = <&uboot 0x1fc00>;
70 };