ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7242_meraki_mr12.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.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,mr12", "qca,ar7242";
11 model = "Meraki MR12";
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 link1 {
24 label = "green:link1";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 };
27
28 link2 {
29 label = "green:link2";
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 };
32
33 link3 {
34 label = "green:link3";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 };
37
38 link4 {
39 label = "green:link4";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 };
42
43 lan {
44 function = LED_FUNCTION_LAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 15 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 16 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 17 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 8 GPIO_ACTIVE_LOW>;
70 };
71 };
72 };
73
74 &pcie {
75 status = "okay";
76
77 wifi@0,0 {
78 compatible = "pci168c,002a";
79 reg = <0x0000 0 0 0 0>;
80 qca,no-eeprom;
81 nvmem-cells = <&macaddr_config_66 1>;
82 nvmem-cell-names = "mac-address";
83 };
84 };
85
86 &mdio0 {
87 status = "okay";
88
89 phy4: ethernet-phy@4 {
90 reg = <4>;
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 nvmem-cells = <&macaddr_config_66 0>;
98 nvmem-cell-names = "mac-address";
99
100 pll-data = <0x02000000 0x00000101 0x00001313>;
101
102 phy-mode = "rgmii-id";
103 phy-handle = <&phy4>;
104 };
105
106 &mdio1 {
107 status = "okay";
108 };
109
110 &eth1 {
111 status = "okay";
112
113 nvmem-cells = <&macaddr_config_66 0>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &spi {
118 status = "okay";
119
120 flash@0 {
121 compatible = "jedec,spi-nor";
122 reg = <0>;
123 spi-max-frequency = <50000000>;
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 };