341d0bad0d6f700abfc4bbee69c776ed21839c93
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar724x_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 / {
7 keys {
8 compatible = "gpio-keys";
9
10 reset {
11 linux,code = <KEY_RESTART>;
12 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
13 debounce-interval = <60>;
14 };
15 };
16 };
17
18 &spi {
19 status = "okay";
20
21 flash@0 {
22 compatible = "jedec,spi-nor";
23 reg = <0>;
24 spi-max-frequency = <25000000>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x000000 0x040000>;
34 read-only;
35 };
36
37 partition@40000 {
38 label = "u-boot-env";
39 reg = <0x040000 0x010000>;
40 read-only;
41 };
42
43 partition@50000 {
44 compatible = "denx,uimage";
45 label = "firmware";
46 reg = <0x050000 0x750000>;
47 };
48
49 partition@7a0000 {
50 label = "board_config";
51 reg = <0x7a0000 0x010000>;
52 read-only;
53 };
54
55 partition@7b0000 {
56 label = "cfg";
57 reg = <0x7b0000 0x040000>;
58 read-only;
59 };
60
61 art: partition@7f0000 {
62 label = "art";
63 reg = <0x7f0000 0x010000>;
64 read-only;
65 };
66 };
67 };
68 };
69
70 &pcie {
71 status = "okay";
72
73 wifi: wifi@0,0 {
74 reg = <0x0000 0 0 0 0>;
75 qca,no-eeprom;
76 };
77 };
78
79 &eth0 {
80 status = "okay";
81
82 nvmem-cells = <&macaddr_art_0>;
83 nvmem-cell-names = "mac-address";
84 };
85
86 &eth1 {
87 status = "okay";
88
89 nvmem-cells = <&macaddr_art_6>;
90 nvmem-cell-names = "mac-address";
91 };
92
93 &art {
94 compatible = "nvmem-cells";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 macaddr_art_0: macaddr@0 {
99 reg = <0x0 0x6>;
100 };
101
102 macaddr_art_6: macaddr@6 {
103 reg = <0x6 0x6>;
104 };
105 };