ath79: fix nanobeam ac ethernet interface
[openwrt/openwrt.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 num-cs = <1>;
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 partition@0 {
43 label = "u-boot";
44 reg = <0x000000 0x040000>;
45 read-only;
46 };
47
48 partition@40000 {
49 label = "u-boot-env";
50 reg = <0x040000 0x010000>;
51 read-only;
52 };
53
54 partition@50000 {
55 compatible = "denx,uimage";
56 label = "firmware";
57 reg = <0x050000 0xf60000>;
58 };
59
60 partition@fb0000 {
61 label = "cfg";
62 reg = <0xfb0000 0x040000>;
63 read-only;
64 };
65
66 art: partition@ff0000 {
67 label = "art";
68 reg = <0xff0000 0x010000>;
69 read-only;
70 };
71 };
72 };
73 };
74
75 &uart {
76 status = "okay";
77 };
78
79 &eth0 {
80 status = "okay";
81
82 phy-handle = <&swphy4>;
83
84 mtd-mac-address = <&art 0x0>;
85 };
86
87 &eth1 {
88 mtd-mac-address = <&art 0x6>;
89
90 gmac-config {
91 device = <&gmac>;
92 };
93 };
94
95 &wmac {
96 status = "okay";
97 mtd-cal-data = <&art 0x1000>;
98 };