ce59463d9e8658cb9bc8627af88559a3d0f87ca0
[openwrt/staging/rmilecki.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ubnt,unifi", "qca,ar7241";
10 model = "Ubiquiti UniFi";
11
12 aliases {
13 led-boot = &led_dome_green;
14 led-failsafe = &led_dome_green;
15 led-running = &led_dome_green;
16 led-upgrade = &led_dome_green;
17 label-mac-device = &wifi;
18 };
19
20 extosc: ref {
21 compatible = "fixed-clock";
22 #clock-cells = <0>;
23 clock-frequency = <40000000>;
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_dome_green: dome_green {
40 label = "green:dome";
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42 };
43
44 dome_orange {
45 label = "orange:dome";
46 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
47 };
48 };
49 };
50
51 &uart {
52 status = "okay";
53 };
54
55 &pll {
56 clocks = <&extosc>;
57 };
58
59 &spi {
60 status = "okay";
61
62 num-cs = <1>;
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <25000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x040000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "u-boot-env";
82 reg = <0x040000 0x010000>;
83 read-only;
84 };
85
86 partition@50000 {
87 compatible = "denx,uimage";
88 label = "firmware";
89 reg = <0x050000 0x750000>;
90 };
91
92 partition@7a0000 {
93 label = "board_config";
94 reg = <0x7a0000 0x010000>;
95 read-only;
96 };
97
98 partition@7b0000 {
99 label = "cfg";
100 reg = <0x7b0000 0x040000>;
101 read-only;
102 };
103
104 art: partition@7f0000 {
105 label = "art";
106 reg = <0x7f0000 0x010000>;
107 read-only;
108 };
109 };
110 };
111 };
112
113 &pcie {
114 status = "okay";
115
116 wifi: wifi@0,0 {
117 reg = <0x0000 0 0 0 0>;
118 qca,no-eeprom;
119 };
120 };
121
122 &eth0 {
123 status = "okay";
124
125 mtd-mac-address = <&art 0x0>;
126 };
127
128 &eth1 {
129 compatible = "syscon", "simple-mfd";
130 };