ath79: add firmware partition compatible for OCEDO
[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 aliases {
13 led-boot = &link4;
14 led-failsafe = &link4;
15 };
16
17 /* extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <40000000>;
21 };
22 */
23 keys {
24 compatible = "gpio-keys-polled";
25 poll-interval = <20>;
26 reset {
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35 link1 {
36 label = "ubnt:red:link1";
37 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
38 };
39
40 link2 {
41 label = "ubnt:orange:link2";
42 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
43 };
44
45 link3 {
46 label = "ubnt:green:link3";
47 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
48 };
49
50 link4: link4 {
51 label = "ubnt:green:link4";
52 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
53 };
54 };
55 };
56
57 &uart {
58 status = "okay";
59 };
60
61 /*&pll {
62 clocks = <&extosc>;
63 };*/
64
65 &spi {
66 status = "okay";
67 num-cs = <1>;
68
69 flash@0 {
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 wifi@0,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 };