ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7240_dlink_dir-615-e4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7240.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "D-Link DIR-615 E4";
11 compatible = "dlink,dir-615-e4", "qca,ar7240";
12
13 aliases {
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29
30 wps {
31 label = "wps";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&switch_led_pins>;
42
43 led_power_green: power_green {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
47 };
48
49 led_power_amber: power_amber {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_AMBER>;
52 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
53 };
54
55 wps {
56 function = LED_FUNCTION_WPS;
57 color = <LED_COLOR_ID_BLUE>;
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 };
60
61 lan1 {
62 label = "green:lan1";
63 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
64 };
65
66 lan2 {
67 label = "green:lan2";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 };
70
71 lan3 {
72 label = "green:lan3";
73 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
74 };
75
76 lan4 {
77 label = "green:lan4";
78 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
79 };
80
81 wan_amber {
82 function = LED_FUNCTION_WAN;
83 color = <LED_COLOR_ID_AMBER>;
84 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
85 };
86
87 wan_green {
88 function = LED_FUNCTION_WAN;
89 color = <LED_COLOR_ID_GREEN>;
90 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
91 };
92 };
93
94 ath9k-leds {
95 compatible = "gpio-leds";
96
97 wlan {
98 function = LED_FUNCTION_WLAN;
99 color = <LED_COLOR_ID_GREEN>;
100 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
101 linux,default-trigger = "phy0tpt";
102 };
103 };
104 };
105
106 &spi {
107 status = "okay";
108
109 flash@0 {
110 compatible = "jedec,spi-nor";
111 reg = <0>;
112 spi-max-frequency = <33000000>;
113
114 partitions {
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 partition@0 {
120 reg = <0x0 0x30000>;
121 label = "u-boot";
122 read-only;
123 };
124
125 partition@30000 {
126 reg = <0x30000 0x10000>;
127 label = "nvram";
128 read-only;
129 };
130
131 partition@40000 {
132 compatible = "denx,uimage";
133 reg = <0x40000 0x3b0000>;
134 label = "firmware";
135 };
136
137 partition@3f0000 {
138 reg = <0x3f0000 0x10000>;
139 label = "art";
140 read-only;
141 };
142 };
143 };
144 };
145
146 &eth1 {
147 status = "okay";
148 };
149
150 &pcie {
151 status = "okay";
152
153 ath9k: wifi@0,0 {
154 compatible = "pci168c,002b";
155 reg = <0x0000 0 0 0 0>;
156 qca,no-eeprom;
157 #gpio-cells = <2>;
158 gpio-controller;
159 };
160 };
161
162 &pinmux {
163 switch_led_pins: pinmux_switch_led_pins {
164 pinctrl-single,bits = <0x0 0x0 0xf8>;
165 };
166 };