ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_belkin_f5d8235-v2.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 = "belkin,f5d8235-v2", "ralink,rt3052-soc";
10 model = "Belkin F5D8235 v2";
11
12 aliases {
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
17 };
18
19 flash@1f000000 {
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
22 bank-width = <2>;
23 device-width = <2>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 uboot: partition@0 {
31 label = "uboot";
32 reg = <0x0 0x50000>;
33 read-only;
34 };
35
36 partition@50000 {
37 compatible = "denx,uimage";
38 label = "firmware";
39 reg = <0x50000 0x790000>;
40 };
41
42 partition@7e0000 {
43 label = "nvram";
44 reg = <0x7e0000 0x10000>;
45 };
46
47 factory: partition@7f0000 {
48 label = "factory";
49 reg = <0x7f0000 0x10000>;
50 };
51 };
52 };
53
54 rtl8366rb {
55 compatible = "realtek,rtl8366rb";
56 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
57 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 internet {
64 label = "f5d8235-v2:blue:internet";
65 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
66 };
67
68 internet2 {
69 label = "f5d8235-v2:amber:internet";
70 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
71 };
72
73 modem {
74 label = "f5d8235-v2:blue:modem";
75 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
76 };
77
78 modem2 {
79 label = "f5d8235-v2:amber:modem";
80 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
81 };
82
83 led_router: router {
84 label = "f5d8235-v2:blue:router";
85 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
86 };
87
88 storage {
89 label = "f5d8235-v2:blue:storage";
90 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
91 trigger-sources = <&otg_port1>;
92 linux,default-trigger = "usbport";
93 };
94
95 storage2 {
96 label = "f5d8235-v2:amber:storage";
97 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
98 };
99
100 security {
101 label = "f5d8235-v2:blue:security";
102 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
103 };
104
105 security2 {
106 label = "f5d8235-v2:amber:security";
107 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
108 };
109 };
110 };
111
112 &state_default {
113 gpio {
114 groups = "spi", "i2c", "jtag", "mdio", "uartf";
115 function = "gpio";
116 };
117 };
118
119 &ethernet {
120 mtd-mac-address = <&uboot 0x40004>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&rgmii_pins>;
123 };
124
125 &esw {
126 ralink,rgmii = <1>;
127 mediatek,portmap = <0x3f>;
128 ralink,fct2 = <0x0002500c>;
129 /*
130 * ext phy base addr 31, rx/tx clock skew 0,
131 * turbo mii off, rgmi 3.3v off, port 5 polling off
132 * port5: enabled, gige, full-duplex, rx/tx-flow-control
133 * port6: enabled, gige, full-duplex, rx/tx-flow-control
134 */
135 ralink,fpa2 = <0x1f003fff>;
136 };
137
138 &wmac {
139 ralink,mtd-eeprom = <&uboot 0x40000>;
140 };
141
142 &otg {
143 status = "okay";
144 };