ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_meraki_mr16.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 = "meraki,mr16", "qca,ar7161";
11 model = "Meraki MR16";
12
13 aliases {
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_orange;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wifi1 {
24 label = "green:wifi1";
25 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
26 };
27
28 wifi2 {
29 label = "green:wifi2";
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 };
32
33 wifi3 {
34 label = "green:wifi3";
35 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
36 };
37
38 wifi4 {
39 label = "green:wifi4";
40 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
41 };
42
43 wan {
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
47 };
48
49 led_power_orange: power_orange {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
53 panic-indicator;
54 };
55
56 led_power_green: power_green {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 reset {
67 label = "reset";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
70 };
71 };
72 };
73
74 &pcie0 {
75 status = "okay";
76
77 ath9k0: wifi@11,0 { /* 2.4 GHz */
78 compatible = "pci168c,0029";
79 reg = <0x8800 0 0 0 0>;
80 qca,no-eeprom;
81 nvmem-cells = <&macaddr_config_66 1>;
82 nvmem-cell-names = "mac-address";
83 #gpio-cells = <2>;
84 gpio-controller;
85 };
86
87 ath9k1: wifi@12,0 { /* 5 GHz */
88 compatible = "pci168c,0029";
89 reg = <0x9000 0 0 0 0>;
90 qca,no-eeprom;
91 nvmem-cells = <&macaddr_config_66 2>;
92 nvmem-cell-names = "mac-address";
93 #gpio-cells = <2>;
94 gpio-controller;
95 };
96 };
97
98 &mdio0 {
99 status = "okay";
100
101 phy0: ethernet-phy@0 {
102 reg = <0>;
103 };
104 };
105
106 &eth0 {
107 status = "okay";
108 nvmem-cells = <&macaddr_config_66 0>;
109 nvmem-cell-names = "mac-address";
110
111 pll-data = <0x00110000 0x00001099 0x00991099>;
112
113 phy-mode = "rgmii";
114 phy-handle = <&phy0>;
115 };
116
117 &spi {
118 status = "okay";
119
120 flash@0 {
121 compatible = "jedec,spi-nor";
122 reg = <0>;
123 spi-max-frequency = <25000000>;
124
125 partitions {
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 partition@0 {
131 label = "u-boot";
132 reg = <0x000000 0x40000>;
133 read-only;
134 };
135
136 partition@40000 {
137 label = "u-boot-env";
138 reg = <0x40000 0x40000>;
139 read-only;
140 };
141
142 config: partition@80000 {
143 label = "config";
144 reg = <0x80000 0x20000>;
145 read-only;
146
147 nvmem-layout {
148 compatible = "fixed-layout";
149 #address-cells = <1>;
150 #size-cells = <1>;
151
152 macaddr_config_66: macaddr@66 {
153 compatible = "mac-base";
154 reg = <0x66 0x6>;
155 #nvmem-cell-cells = <1>;
156 };
157 };
158 };
159
160 partition@a0000 {
161 label = "firmware";
162 reg = <0xa0000 0xf40000>;
163 compatible = "denx,uimage";
164 };
165
166 partition@fe0000 {
167 label = "art";
168 reg = <0xfe0000 0x20000>;
169 read-only;
170 };
171 };
172 };
173 };