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