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 compatible = "fixed-clock";
15 clock-frequency = <40000000>;
19 compatible = "gpio-keys-polled";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
29 compatible = "gpio-leds";
31 label = "ubnt:red:link1";
32 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
36 label = "ubnt:orange:link2";
37 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
41 label = "ubnt:green:link3";
42 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
46 label = "ubnt:green:link4";
47 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <25000000>;
70 compatible = "fixed-partitions";
76 reg = <0x000000 0x040000>;
82 reg = <0x040000 0x010000>;
87 reg = <0x050000 0x750000>;
91 label = "board_config";
92 reg = <0x7a0000 0x010000>;
98 reg = <0x7b0000 0x040000>;
104 reg = <0x7f0000 0x010000>;
115 reg = <0x0000 0 0 0 0>;
123 mtd-mac-address = <&art 0x0>;
129 mtd-mac-address = <&art 0x6>;