02166a26eb8610e6fba9f0a5cf2eaead030f92aa
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar7241_ubnt_unifi-ap.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7241_ubnt_unifi.dtsi"
4
5 / {
6 aliases {
7 led-boot = &led_dome_green;
8 led-failsafe = &led_dome_green;
9 led-running = &led_dome_green;
10 led-upgrade = &led_dome_green;
11 };
12
13 leds {
14 compatible = "gpio-leds";
15
16 led_dome_green: dome_green {
17 label = "green:dome";
18 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
19 };
20
21 dome_orange {
22 label = "orange:dome";
23 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
24 };
25 };
26 };
27
28 &spi {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <25000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x000000 0x040000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "u-boot-env";
49 reg = <0x040000 0x010000>;
50 read-only;
51 };
52
53 partition@50000 {
54 compatible = "denx,uimage";
55 label = "firmware";
56 reg = <0x050000 0x750000>;
57 };
58
59 partition@7a0000 {
60 label = "board_config";
61 reg = <0x7a0000 0x010000>;
62 read-only;
63 };
64
65 partition@7b0000 {
66 label = "cfg";
67 reg = <0x7b0000 0x040000>;
68 read-only;
69 };
70
71 partition@7f0000 {
72 label = "art";
73 reg = <0x7f0000 0x010000>;
74 read-only;
75
76 compatible = "nvmem-cells";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 macaddr_art_0: macaddr@0 {
81 reg = <0x0 0x6>;
82 };
83
84 calibration_art_1000: calibration@1000 {
85 reg = <0x1000 0x440>;
86 };
87 };
88 };
89 };
90 };
91
92 &wifi {
93 nvmem-cells = <&calibration_art_1000>;
94 nvmem-cell-names = "calibration";
95 };
96
97 &eth0 {
98 nvmem-cells = <&macaddr_art_0>;
99 nvmem-cell-names = "mac-address";
100 };
101
102 &eth1 {
103 compatible = "syscon", "simple-mfd";
104 };