ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_tplink_cpe.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 aliases {
11 label-mac-device = &wmac;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &ref {
26 clock-frequency = <40000000>;
27 };
28
29 &spi {
30 status = "okay";
31
32 flash@0 {
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <25000000>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 uboot: partition@0 {
43 label = "u-boot";
44 reg = <0x000000 0x020000>;
45 read-only;
46 };
47
48 partition@20000 {
49 label = "partition-table";
50 reg = <0x020000 0x010000>;
51 read-only;
52 };
53
54 info: partition@30000 {
55 label = "info";
56 reg = <0x030000 0x010000>;
57 read-only;
58
59 nvmem-layout {
60 compatible = "fixed-layout";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 macaddr_info_8: macaddr@8 {
65 reg = <0x8 0x6>;
66 };
67 };
68 };
69
70 partition@40000 {
71 label = "firmware";
72 reg = <0x040000 0x780000>;
73 compatible = "openwrt,uimage", "denx,uimage";
74 openwrt,ih-magic = <IH_MAGIC_OKLI>;
75 openwrt,offset = <0x3000>;
76 };
77
78 partition@7c0000 {
79 label = "config";
80 reg = <0x7c0000 0x030000>;
81 read-only;
82 };
83
84 art: partition@7f0000 {
85 label = "art";
86 reg = <0x7f0000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &wmac {
94 status = "okay";
95
96 mtd-cal-data = <&art 0x1000>;
97 nvmem-cells = <&macaddr_info_8>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &eth0 {
102 status = "okay";
103
104 phy-handle = <&swphy4>;
105
106 nvmem-cells = <&macaddr_info_8>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &eth1 {
111 status = "okay";
112 };
113
114 &gpio {
115 gpio_ext_lna0 {
116 gpio-hog;
117 gpios = <18 GPIO_ACTIVE_HIGH>;
118 output-high;
119 line-name = "tp-link:ext:lna0";
120 };
121
122 gpio_ext_lna1 {
123 gpio-hog;
124 gpios = <19 GPIO_ACTIVE_HIGH>;
125 output-high;
126 line-name = "tp-link:ext:lna1";
127 };
128 };