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