172b0af1eb3bfe0c5561f92e1a5966cfe3ceac37
[openwrt/staging/ansuel.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 extosc: ref {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-output-names = "ref";
21 clock-frequency = <40000000>;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 led_rf: rf_green {
28 label = "green:rf";
29 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 wps {
37 label = "sw4";
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 };
42 };
43 };
44
45 &eth0 {
46 status = "okay";
47 };
48
49 &eth1 {
50 status = "okay";
51 };
52
53 &pcie0 {
54 status = "okay";
55 };
56
57 &spi {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "RedBoot";
72 reg = <0x000000 0x030000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "loader";
78 reg = <0x030000 0x020000>;
79 };
80
81 partition@50000 {
82 label = "firmware";
83 reg = <0x050000 0xfa0000>;
84 compatible = "openwrt,uimage", "denx,uimage";
85 openwrt,ih-magic = <IH_MAGIC_OKLI>;
86 };
87
88 partition@ff0000 {
89 label = "FIS directory";
90 reg = <0xff0000 0x00f000>;
91 read-only;
92 };
93
94 partition@fff000 {
95 label = "RedBoot config";
96 reg = <0xfff000 0x001000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &usb_phy {
104 status = "okay";
105 };
106
107 &usb1 {
108 status = "okay";
109 #address-cells = <1>;
110 #size-cells = <0>;
111
112 usb_ohci_port: port@1 {
113 reg = <1>;
114 #trigger-source-cells = <0>;
115 };
116 };
117
118 &usb2 {
119 status = "okay";
120 #address-cells = <1>;
121 #size-cells = <0>;
122
123 usb_ehci_port: port@1 {
124 reg = <1>;
125 #trigger-source-cells = <0>;
126 };
127 };