ath79: fix DTS node names for Ubiquiti XM partitions
[oweals/openwrt.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wr94x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10         chosen {
11                 bootargs = "console=ttyS0,115200n8";
12         };
13
14         aliases {
15                 label-mac-device = &wmac;
16         };
17
18         keys {
19                 compatible = "gpio-keys";
20
21                 wifi {
22                         label = "WiFi button";
23                         linux,code = <KEY_RFKILL>;
24                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
25                 };
26
27                 reset {
28                         label = "Reset button";
29                         linux,code = <KEY_RESTART>;
30                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31                 };
32         };
33 };
34
35 &spi {
36         status = "okay";
37         num-cs = <1>;
38
39         flash@0 {
40                 compatible = "jedec,spi-nor";
41                 reg = <0>;
42                 spi-max-frequency = <25000000>;
43
44                 partitions {
45                         compatible = "fixed-partitions";
46                         #address-cells = <1>;
47                         #size-cells = <1>;
48
49                         uboot:  partition@0 {
50                                 label = "u-boot";
51                                 reg = <0x000000 0x020000>;
52                                 read-only;
53                         };
54
55                         partition@20000 {
56                                 compatible = "tplink,firmware";
57                                 label = "firmware";
58                                 reg = <0x020000 0x3d0000>;
59                         };
60
61                         art: partition@3f0000 {
62                                 label = "art";
63                                 reg = <0x3f0000 0x010000>;
64                                 read-only;
65                         };
66                 };
67         };
68 };
69
70 &uart {
71         status = "okay";
72 };
73
74 &eth0 {
75         status = "okay";
76
77         phy-mode = "mii";
78         phy-handle = <&swphy4>;
79
80         mtd-mac-address = <&uboot 0x1fc00>;
81         mtd-mac-address-increment = <1>;
82 };
83
84 &eth1 {
85         status = "okay";
86 };
87
88 &wmac {
89         status = "okay";
90
91         mtd-cal-data = <&art 0x1000>;
92         mtd-mac-address = <&uboot 0x1fc00>;
93 };