1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "meraki,mr16", "qca,ar7161";
11 model = "Meraki MR16";
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_orange;
21 compatible = "gpio-leds";
24 label = "green:wifi1";
25 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
29 label = "green:wifi2";
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 label = "green:wifi3";
35 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
39 label = "green:wifi4";
40 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
44 function = LED_FUNCTION_WAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
49 led_power_orange: power_orange {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
56 led_power_green: power_green {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
77 ath9k0: wifi@11,0 { /* 2.4 GHz */
78 compatible = "pci168c,0029";
79 reg = <0x8800 0 0 0 0>;
81 nvmem-cells = <&macaddr_config_66 1>;
82 nvmem-cell-names = "mac-address";
87 ath9k1: wifi@12,0 { /* 5 GHz */
88 compatible = "pci168c,0029";
89 reg = <0x9000 0 0 0 0>;
91 nvmem-cells = <&macaddr_config_66 2>;
92 nvmem-cell-names = "mac-address";
101 phy0: ethernet-phy@0 {
108 nvmem-cells = <&macaddr_config_66 0>;
109 nvmem-cell-names = "mac-address";
111 pll-data = <0x00110000 0x00001099 0x00991099>;
114 phy-handle = <&phy0>;
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <25000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x000000 0x40000>;
137 label = "u-boot-env";
138 reg = <0x40000 0x40000>;
142 config: partition@80000 {
144 reg = <0x80000 0x20000>;
148 compatible = "fixed-layout";
149 #address-cells = <1>;
152 macaddr_config_66: macaddr@66 {
153 compatible = "mac-base";
155 #nvmem-cell-cells = <1>;
162 reg = <0xa0000 0xf40000>;
163 compatible = "denx,uimage";
168 reg = <0xfe0000 0x20000>;