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