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,xm", "qca,ar7241";
10 model = "Ubiquiti Networks XM (rev 1.0) board";
13 device_type = "memory";
14 reg = <0x0 0x2000000>;
18 compatible = "fixed-clock";
20 clock-frequency = <40000000>;
24 compatible = "gpio-keys-polled";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
37 compatible = "gpio-leds";
39 label = "ubnt:red:link1";
40 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
44 label = "ubnt:orange:link2";
45 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
49 label = "ubnt:green:link3";
50 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
54 label = "ubnt:green:link4";
55 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
75 compatible = "mx25l6405d";
77 spi-max-frequency = <25000000>;
80 compatible = "fixed-partitions";
86 reg = <0x000000 0x040000>;
92 reg = <0x040000 0x010000>;
97 reg = <0x050000 0x750000>;
101 label = "board_config";
102 reg = <0x7a0000 0x010000>;
108 reg = <0x7b0000 0x040000>;
114 reg = <0x7f0000 0x010000>;
125 reg = <0x0000 0 0 0 0>;
133 phy4: ethernet-phy@4 {
142 mtd-mac-address = <&art 0x0>;
145 phy-handle = <&phy4>;
151 mtd-mac-address = <&art 0x6>;