ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_ubnt_aircube-isp.dts
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 compatible = "ubnt,aircube-isp", "qca,qca9533";
10 model = "Ubiquiti airCube ISP";
11
12 aliases {
13 label-mac-device = &wmac;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26 };
27
28 &spi {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <25000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x000000 0x040000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "u-boot-env";
49 reg = <0x040000 0x010000>;
50 read-only;
51 };
52
53 partition@50000 {
54 compatible = "denx,uimage";
55 label = "firmware";
56 reg = <0x050000 0xf60000>;
57 };
58
59 partition@fb0000 {
60 label = "cfg";
61 reg = <0xfb0000 0x040000>;
62 read-only;
63 };
64
65 art: partition@ff0000 {
66 label = "art";
67 reg = <0xff0000 0x010000>;
68 read-only;
69
70 nvmem-layout {
71 compatible = "fixed-layout";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 macaddr_art_0: macaddr@0 {
76 reg = <0x0 0x6>;
77 };
78
79 macaddr_art_6: macaddr@6 {
80 reg = <0x6 0x6>;
81 };
82 };
83 };
84 };
85 };
86 };
87
88 &eth0 {
89 status = "okay";
90
91 phy-handle = <&swphy4>;
92
93 nvmem-cells = <&macaddr_art_0>;
94 nvmem-cell-names = "mac-address";
95 };
96
97 &eth1 {
98 nvmem-cells = <&macaddr_art_6>;
99 nvmem-cell-names = "mac-address";
100
101 gmac-config {
102 device = <&gmac>;
103 };
104 };
105
106 &wmac {
107 status = "okay";
108 mtd-cal-data = <&art 0x1000>;
109 };