ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.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_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &wmac;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "green:system";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &spi {
38 status = "okay";
39
40 flash@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <50000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 uboot: partition@0 {
51 label = "u-boot";
52 reg = <0x000000 0x020000>;
53 read-only;
54
55 nvmem-layout {
56 compatible = "fixed-layout";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 macaddr_uboot_1fc00: macaddr@1fc00 {
61 compatible = "mac-base";
62 reg = <0x1fc00 0x6>;
63 #nvmem-cell-cells = <1>;
64 };
65 };
66 };
67
68 partition@20000 {
69 label = "firmware";
70 reg = <0x020000 0x3d0000>;
71 compatible = "tplink,firmware";
72 };
73
74 art: partition@3f0000 {
75 label = "art";
76 reg = <0x3f0000 0x010000>;
77 read-only;
78 };
79 };
80 };
81 };
82
83 &eth0 {
84 status = "okay";
85
86 phy-handle = <&swphy4>;
87
88 nvmem-cells = <&macaddr_uboot_1fc00 1>;
89 nvmem-cell-names = "mac-address";
90 };
91
92 &eth1 {
93 compatible = "syscon", "simple-mfd";
94 };
95
96 &wmac {
97 status = "okay";
98
99 mtd-cal-data = <&art 0x1000>;
100 nvmem-cells = <&macaddr_uboot_1fc00 0>;
101 nvmem-cell-names = "mac-address";
102 };