ad216116a9e731c71afc97aa62c516f65a54beea
[openwrt/staging/rmilecki.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 &uart {
19 status = "okay";
20 };
21
22 &spi {
23 status = "okay";
24
25 num-cs = <1>;
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <25000000>;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "u-boot";
39 reg = <0x000000 0x040000>;
40 read-only;
41 };
42
43 partition@40000 {
44 label = "u-boot-env";
45 reg = <0x040000 0x010000>;
46 read-only;
47 };
48
49 partition@50000 {
50 compatible = "denx,uimage";
51 label = "firmware";
52 reg = <0x050000 0x750000>;
53 };
54
55 partition@7a0000 {
56 label = "board_config";
57 reg = <0x7a0000 0x010000>;
58 read-only;
59 };
60
61 partition@7b0000 {
62 label = "cfg";
63 reg = <0x7b0000 0x040000>;
64 read-only;
65 };
66
67 art: partition@7f0000 {
68 label = "art";
69 reg = <0x7f0000 0x010000>;
70 read-only;
71 };
72 };
73 };
74 };
75
76 &pcie {
77 status = "okay";
78
79 wifi: wifi@0,0 {
80 reg = <0x0000 0 0 0 0>;
81 qca,no-eeprom;
82 };
83 };
84
85 &eth0 {
86 status = "okay";
87
88 mtd-mac-address = <&art 0x0>;
89 };
90
91 &eth1 {
92 status = "okay";
93
94 mtd-mac-address = <&art 0x6>;
95 };