1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
9 compatible = "ubnt,xw", "qca,ar9342";
10 model = "Ubiquiti Networks XW board";
14 led-running = &system;
15 led-upgrade = &system;
16 led-failsafe = &system;
17 label-mac-device = &wmac;
21 compatible = "gpio-leds";
24 label = "ubnt:red:link1";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 label = "ubnt:orange:link2";
30 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 label = "ubnt:green:link3";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 label = "ubnt:green:link4";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
48 label = "Reset button";
49 linux,code = <KEY_RESTART>;
50 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
57 clock-frequency = <40000000>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <25000000>;
78 compatible = "fixed-partitions";
84 reg = <0x000000 0x040000>;
90 reg = <0x040000 0x010000>;
95 compatible = "denx,uimage";
97 reg = <0x050000 0x760000>;
102 reg = <0x7b0000 0x040000>;
106 eeprom: partition@ff0000 {
108 reg = <0x7f0000 0x010000>;
118 mtd-cal-data = <&eeprom 0x1000>;
119 mtd-mac-address = <&eeprom 0x1002>;
123 mtd-mac-address = <&eeprom 0x0>;