ath79: remove model name from LED labels
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_ubnt_unifi-ap-pro.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Ubiquiti UniFi AP Pro";
10 compatible = "ubnt,unifi-ap-pro";
11
12 aliases {
13 led-boot = &led_white;
14 led-failsafe = &led_white;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_white: led-white {
24 label = "white:dome";
25 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
26 };
27
28 led_blue: led-blue {
29 label = "blue:dome";
30 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 };
42 };
43 };
44
45 &ref {
46 clock-frequency = <40000000>;
47 };
48
49 &uart {
50 status = "okay";
51 };
52
53 &spi {
54 status = "okay";
55
56 num-cs = <1>;
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <50000000>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 uboot: partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x40000>;
71 read-only;
72 };
73
74 partition@40000 {
75 label = "u-boot-env";
76 reg = <0x40000 0x10000>;
77 read-only;
78 };
79
80 partition@50000 {
81 label = "firmware";
82 reg = <0x50000 0xf60000>;
83
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "kernel";
90 reg = <0x0 0x300000>;
91 /* Can be resized w/o issues.
92 * U-Boot can load kernel from the
93 * entirety of the "firmware" partition space.
94 */
95 };
96
97 partition@300000 {
98 label = "rootfs";
99 reg = <0x300000 0xc60000>;
100 };
101 };
102
103 partition@fb0000 {
104 label = "cfg";
105 reg = <0xfb0000 0x40000>;
106 read-only;
107 };
108
109 art: partition@ff0000 {
110 label = "art";
111 reg = <0xff0000 0x10000>;
112 read-only;
113 };
114 };
115 };
116 };
117
118 &pcie {
119 status = "okay";
120
121 wifi@0,0 {
122 compatible = "pci168c,0033";
123 reg = <0 0 0 0 0>;
124 qca,no-eeprom;
125 };
126 };
127
128 &wmac {
129 status = "okay";
130
131 mtd-cal-data = <&art 0x1000>;
132 };
133
134 &mdio0 {
135 status = "okay";
136
137 phy0: ethernet-phy@0 {
138 reg = <0>;
139
140 qca,ar8327-initvals = <
141 0x4 0x7600000 /* PORT0 PAD MODE CTRL */
142 0x10 0x80000080 /* POWER_ON_STRAP */
143 0x7c 0x7e /* PORT0_STATUS */
144 >;
145 };
146 };
147
148 &eth0 {
149 status = "okay";
150
151 pll-data = <0x6000000 0x101 0x1616>;
152
153 mtd-mac-address = <&art 0x0>;
154
155 phy-mode = "rgmii";
156 phy-handle = <&phy0>;
157 };