ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_dlink_dir-615-d.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-615-d", "ralink,rt3050-soc";
10 model = "D-Link DIR-615 D";
11
12 aliases {
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_green;
17 label-mac-device = &wmac;
18 };
19
20 flash@1f000000 {
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
23 bank-width = <2>;
24 device-width = <2>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 devdata: partition@30000 {
38 label = "devdata";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 partition@40000 {
44 label = "devconf";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 compatible = "denx,uimage";
51 label = "firmware";
52 reg = <0x50000 0x3b0000>;
53 };
54 };
55 };
56
57 keys {
58 compatible = "gpio-keys-polled";
59 poll-interval = <20>;
60
61 reset {
62 label = "reset";
63 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
65 };
66
67 wps {
68 label = "wps";
69 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
71 };
72 };
73
74 leds {
75 compatible = "gpio-leds";
76
77 status {
78 label = "dir-615-d:amber:status";
79 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
80 };
81
82 led_status_green: status2 {
83 label = "dir-615-d:green:status";
84 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
85 default-state = "on";
86 };
87
88 wan {
89 label = "dir-615-d:amber:wan";
90 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
91 };
92
93 wan2 {
94 label = "dir-615-d:green:wan";
95 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
96 };
97
98 wps {
99 label = "dir-615-d:blue:wps";
100 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
101 };
102 };
103 };
104
105 &esw {
106 mediatek,portmap = <0x2f>;
107 };
108
109 &wmac {
110 ralink,mtd-eeprom = <&devdata 0x4000>;
111 };
112
113 &state_default {
114 gpio {
115 groups = "i2c", "spi", "jtag", "mdio", "rgmii", "uartf";
116 function = "gpio";
117 };
118 };