ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_ubnt_routerstation.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 aliases {
11 led-boot = &led_rf;
12 led-failsafe = &led_rf;
13 led-running = &led_rf;
14 led-upgrade = &led_rf;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_rf: rf_green {
21 label = "green:rf";
22 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 wps {
30 label = "sw4";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35 };
36 };
37
38 &eth0 {
39 status = "okay";
40 };
41
42 &eth1 {
43 status = "okay";
44 };
45
46 &pcie0 {
47 status = "okay";
48 };
49
50 &spi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <25000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "RedBoot";
65 reg = <0x000000 0x030000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "loader";
71 reg = <0x030000 0x020000>;
72 };
73
74 partition@50000 {
75 label = "firmware";
76 reg = <0x050000 0xfa0000>;
77 compatible = "openwrt,uimage", "denx,uimage";
78 openwrt,ih-magic = <IH_MAGIC_OKLI>;
79 };
80
81 partition@ff0000 {
82 label = "FIS directory";
83 reg = <0xff0000 0x00f000>;
84 read-only;
85 };
86
87 partition@fff000 {
88 label = "RedBoot config";
89 reg = <0xfff000 0x001000>;
90 read-only;
91 };
92 };
93 };
94 };
95
96 &usb_phy {
97 status = "okay";
98 };
99
100 &usb1 {
101 status = "okay";
102 };
103
104 &usb2 {
105 status = "okay";
106 };