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,mr12", "qca,ar7242";
11 model = "Meraki MR12";
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:link1";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 label = "green:link2";
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 label = "green:link3";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 label = "green:link4";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 function = LED_FUNCTION_LAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 led_power_orange: power_orange {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 led_power_green: power_green {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-keys";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
78 compatible = "pci168c,002a";
79 reg = <0x0000 0 0 0 0>;
81 nvmem-cells = <&macaddr_config_66 1>;
82 nvmem-cell-names = "mac-address";
89 phy4: ethernet-phy@4 {
97 nvmem-cells = <&macaddr_config_66 0>;
98 nvmem-cell-names = "mac-address";
100 pll-data = <0x02000000 0x00000101 0x00001313>;
102 phy-mode = "rgmii-id";
103 phy-handle = <&phy4>;
113 nvmem-cells = <&macaddr_config_66 0>;
114 nvmem-cell-names = "mac-address";
121 compatible = "jedec,spi-nor";
123 spi-max-frequency = <50000000>;
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>;