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;
20 compatible = "gpio-leds";
23 label = "ubnt:red:link1";
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 label = "ubnt:orange:link2";
29 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
33 label = "ubnt:green:link3";
34 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 label = "ubnt:green:link4";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys";
47 label = "Reset button";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
56 clock-frequency = <40000000>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <25000000>;
77 compatible = "fixed-partitions";
83 reg = <0x000000 0x040000>;
89 reg = <0x040000 0x010000>;
94 compatible = "denx,uimage";
96 reg = <0x050000 0x760000>;
101 reg = <0x7b0000 0x040000>;
105 eeprom: partition@ff0000 {
107 reg = <0x7f0000 0x010000>;
117 mtd-cal-data = <&eeprom 0x1000>;
118 mtd-mac-address = <&eeprom 0x1002>;
122 mtd-mac-address = <&eeprom 0x0>;