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