ath79: drop num-cs for SPI controller
[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 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <50000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 uboot: partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x40000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "u-boot-env";
74 reg = <0x40000 0x10000>;
75 read-only;
76 };
77
78 partition@50000 {
79 label = "firmware";
80 reg = <0x50000 0xf60000>;
81
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "kernel";
88 reg = <0x0 0x300000>;
89 /* Can be resized w/o issues.
90 * U-Boot can load kernel from the
91 * entirety of the "firmware" partition space.
92 */
93 };
94
95 partition@300000 {
96 label = "rootfs";
97 reg = <0x300000 0xc60000>;
98 };
99 };
100
101 partition@fb0000 {
102 label = "cfg";
103 reg = <0xfb0000 0x40000>;
104 read-only;
105 };
106
107 art: partition@ff0000 {
108 label = "art";
109 reg = <0xff0000 0x10000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &pcie {
117 status = "okay";
118
119 wifi@0,0 {
120 compatible = "pci168c,0033";
121 reg = <0 0 0 0 0>;
122 qca,no-eeprom;
123 };
124 };
125
126 &wmac {
127 status = "okay";
128
129 mtd-cal-data = <&art 0x1000>;
130 };
131
132 &mdio0 {
133 status = "okay";
134
135 phy0: ethernet-phy@0 {
136 reg = <0>;
137
138 qca,ar8327-initvals = <
139 0x4 0x7600000 /* PORT0 PAD MODE CTRL */
140 0x10 0x80000080 /* POWER_ON_STRAP */
141 0x7c 0x7e /* PORT0_STATUS */
142 >;
143 };
144 };
145
146 &eth0 {
147 status = "okay";
148
149 pll-data = <0x6000000 0x101 0x1616>;
150
151 mtd-mac-address = <&art 0x0>;
152
153 phy-mode = "rgmii";
154 phy-handle = <&phy0>;
155 };