ath79: add ubiquiti unifi ap ac lite/lr
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_ubnt-unifiac-lite.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 "qca956x.dtsi"
8
9 / {
10 compatible = "ubnt,ubnt-unifiac-lite", "qca,qca9563";
11 model = "Ubiquiti UniFi-AC-LITE/MESH/LR";
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x8000000>;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200n8";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 wifi_ac {
26 label = "ubnt:white:dome";
27 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
28 default-state = "off";
29 linux,default-trigger = "phy0tpt";
30 };
31
32 wifi_n {
33 label = "ubnt:blue:dome";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 default-state = "off";
36 linux,default-trigger = "phy1tpt";
37 };
38
39 };
40
41 keys {
42 compatible = "gpio-keys";
43 #address-cells = <1>;
44 #size-cells = <0>;
45
46 reset {
47 label = "Reset button";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
51 };
52 };
53 };
54
55 &uart {
56 status = "okay";
57 };
58
59 &gpio {
60 status = "okay";
61 };
62
63 &pcie {
64 status = "okay";
65 };
66
67 &spi {
68 status = "okay";
69 num-cs = <1>;
70
71 flash@0 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x060000>;
86 read-only;
87 };
88
89 partition@60000 {
90 label = "u-boot-env";
91 reg = <0x060000 0x010000>;
92 read-only;
93 };
94
95 partition@70000 {
96 label = "firmware";
97 reg = <0x070000 0x790000>;
98 };
99
100 partition@800000 {
101 label = "ubnt-airos";
102 reg = <0x800000 0x790000>;
103 read-only;
104 };
105
106 partition@f90000 {
107 label = "bs";
108 reg = <0xf90000 0x020000>;
109 read-only;
110 };
111
112 partition@fb0000 {
113 label = "cfg";
114 reg = <0xfb0000 0x040000>;
115 read-only;
116 };
117
118 eeprom: partition@ff0000 {
119 label = "EEPROM";
120 reg = <0xff0000 0x010000>;
121 read-only;
122 };
123 };
124 };
125 };
126
127 &mdio0 {
128 status = "okay";
129
130 phy-mask = <4>;
131 phy4: ethernet-phy@4 {
132 phy-mode = "sgmii";
133 reg = <4>;
134 };
135 };
136
137 &eth0 {
138 status = "okay";
139
140 mtd-mac-address = <&eeprom 0x0>;
141 phy-handle = <&phy4>;
142 };
143
144 &wmac {
145 status = "okay";
146 mtd-cal-data = <&eeprom 0x1000>;
147 mtd-mac-address = <&eeprom 0x0>;
148 };