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