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>
9 compatible = "ubnt,xw", "qca,ar9342";
10 model = "Ubiquiti Networks XW board";
13 led-boot = &led_link4;
14 led-running = &led_link4;
15 led-upgrade = &led_link4;
16 led-failsafe = &led_link4;
17 label-mac-device = &wmac;
21 compatible = "gpio-leds";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 label = "orange:link2";
30 gpios = <&gpio 16 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>;
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>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <25000000>;
69 compatible = "fixed-partitions";
75 reg = <0x000000 0x040000>;
81 reg = <0x040000 0x010000>;
86 compatible = "denx,uimage";
88 reg = <0x050000 0x760000>;
93 reg = <0x7b0000 0x040000>;
97 art: partition@7f0000 {
99 reg = <0x7f0000 0x010000>;
109 mtd-cal-data = <&art 0x1000>;
113 nvmem-cells = <&macaddr_art_0>;
114 nvmem-cell-names = "mac-address";
118 compatible = "nvmem-cells";
119 #address-cells = <1>;
122 macaddr_art_0: macaddr@0 {