ath79: split ubnt outdoor device leds into separate dtsi
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / ar7241_ubnt_xm.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar7241.dtsi"
7
8 / {
9 compatible = "ubnt,xm", "qca,ar7241";
10 model = "Ubiquiti Networks XM (rev 1.0) board";
11
12 /* extosc: ref {
13 compatible = "fixed-clock";
14 #clock-cells = <0>;
15 clock-frequency = <40000000>;
16 };
17 */
18 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <20>;
21 reset {
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27 };
28
29 &uart {
30 status = "okay";
31 };
32
33 /*&pll {
34 clocks = <&extosc>;
35 };*/
36
37 &spi {
38 status = "okay";
39 num-cs = <1>;
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <25000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x000000 0x040000>;
54 read-only;
55 };
56
57 partition@1 {
58 label = "u-boot-env";
59 reg = <0x040000 0x010000>;
60 };
61
62 partition@2 {
63 label = "firmware";
64 reg = <0x050000 0x750000>;
65 };
66
67 partition@3 {
68 label = "board_config";
69 reg = <0x7a0000 0x010000>;
70 read-only;
71 };
72
73 partition@4 {
74 label = "cfg";
75 reg = <0x7b0000 0x040000>;
76 read-only;
77 };
78
79 art: partition@5 {
80 label = "art";
81 reg = <0x7f0000 0x010000>;
82 read-only;
83 };
84 };
85 };
86 };
87
88 &pcie {
89 status = "okay";
90
91 wifi@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 qca,no-eeprom;
94 };
95 };
96
97 &eth0 {
98 status = "okay";
99
100 mtd-mac-address = <&art 0x0>;
101 };
102
103 &eth1 {
104 status = "okay";
105
106 mtd-mac-address = <&art 0x6>;
107 };