ath79: enable UART in SoC DTSI files
[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
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 };
71 };
72 };
73
74 &eth0 {
75 status = "okay";
76
77 phy-handle = <&swphy4>;
78
79 mtd-mac-address = <&art 0x0>;
80 };
81
82 &eth1 {
83 mtd-mac-address = <&art 0x6>;
84
85 gmac-config {
86 device = <&gmac>;
87 };
88 };
89
90 &wmac {
91 status = "okay";
92 mtd-cal-data = <&art 0x1000>;
93 };