ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_netgear_wndap360.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "netgear,wndap360", "qca,ar7161";
11 model = "Netgear WNDAP360";
12
13 aliases {
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_orange;
17 led-upgrade = &led_power_orange;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power_orange: power_orange {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_ORANGE>;
26 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 ath9k-leds {
31 compatible = "gpio-leds";
32
33 wifi_2g_green {
34 label = "green:wlan2g";
35 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 wifi_5g_green {
40 label = "green:wlan5g";
41 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1tpt";
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &mdio0 {
58 status = "okay";
59
60 phy1: ethernet-phy@1 {
61 reg = <0x1>;
62 };
63 };
64
65 &eth0 {
66 status = "okay";
67
68 phy-mode = "rgmii";
69 phy-handle = <&phy1>;
70
71 nvmem-cells = <&macaddr_art_0>;
72 nvmem-cell-names = "mac-address";
73 };
74
75 &spi {
76 status = "okay";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <50000000>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x0 0x040000>;
91 read-only;
92 };
93
94 partition@40000 {
95 label = "u-boot-env";
96 reg = <0x40000 0x010000>;
97 read-only;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x50000 0x790000>;
104 };
105
106 partition@7e0000 {
107 label = "nvram";
108 reg = <0x7e0000 0x010000>;
109 read-only;
110 };
111
112 partition@7f0000 {
113 label = "art";
114 reg = <0x7f0000 0x010000>;
115 read-only;
116
117 nvmem-layout {
118 compatible = "fixed-layout";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 macaddr_art_0: macaddr@0 {
123 reg = <0x0 0x6>;
124 };
125
126 macaddr_art_120c: macaddr@120c {
127 reg = <0x120c 0x6>;
128 };
129
130 macaddr_art_520c: macaddr@520c {
131 compatible = "mac-base";
132 reg = <0x520c 0x6>;
133 #nvmem-cell-cells = <1>;
134 };
135
136 calibration_art_1000: calibration@1000 {
137 reg = <0x1000 0xeb8>;
138 };
139
140 calibration_art_5000: calibration@5000 {
141 reg = <0x5000 0xeb8>;
142 };
143 };
144 };
145 };
146 };
147 };
148
149 &pcie0 {
150 status = "okay";
151
152 ath9k0: wifi@11,0 {
153 compatible = "pci168c,0029";
154 reg = <0x8800 0 0 0 0>;
155 nvmem-cells = <&macaddr_art_120c>, <&calibration_art_1000>;
156 nvmem-cell-names = "mac-address", "calibration";
157 #gpio-cells = <2>;
158 gpio-controller;
159 };
160
161 ath9k1: wifi@12,0 {
162 compatible = "pci168c,0029";
163 reg = <0x9000 0 0 0 0>;
164 nvmem-cells = <&macaddr_art_520c 1>, <&calibration_art_5000>;
165 nvmem-cell-names = "mac-address", "calibration";
166 #gpio-cells = <2>;
167 gpio-controller;
168 };
169 };