ath79: fix compatible strings
[openwrt/openwrt.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 #address-cells = <1>;
21 #size-cells = <0>;
22
23 poll-interval = <20>;
24 reset {
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33 link1 {
34 label = "ubnt:red:link1";
35 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
36 };
37
38 link2 {
39 label = "ubnt:orange:link2";
40 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
41 };
42
43 link3 {
44 label = "ubnt:green:link3";
45 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
46 };
47
48 link4 {
49 label = "ubnt:green:link4";
50 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
51 };
52 };
53 };
54
55 &uart {
56 status = "okay";
57 };
58
59 /*&pll {
60 clocks = <&extosc>;
61 };*/
62
63 &spi {
64 status = "okay";
65 num-cs = <1>;
66
67 flash@0 {
68 #address-cells = <1>;
69 #size-cells = <1>;
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <25000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x000000 0x040000>;
82 read-only;
83 };
84
85 partition@1 {
86 label = "u-boot-env";
87 reg = <0x040000 0x010000>;
88 };
89
90 partition@2 {
91 label = "firmware";
92 reg = <0x050000 0x750000>;
93 };
94
95 partition@3 {
96 label = "board_config";
97 reg = <0x7a0000 0x010000>;
98 read-only;
99 };
100
101 partition@4 {
102 label = "cfg";
103 reg = <0x7b0000 0x040000>;
104 read-only;
105 };
106
107 art: partition@5 {
108 label = "art";
109 reg = <0x7f0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &pcie {
117 status = "okay";
118
119 ath9k@0 {
120 reg = <0x0000 0 0 0 0>;
121 qca,no-eeprom;
122 };
123 };
124
125 &eth0 {
126 status = "okay";
127
128 mtd-mac-address = <&art 0x0>;
129 };
130
131 &eth1 {
132 status = "okay";
133
134 mtd-mac-address = <&art 0x6>;
135 };