ramips: use DT trigger for 2G WiFi on ASUS RT-AC51U
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_samsung_cy-swr1100.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "samsung,cy-swr1100", "ralink,rt3662-soc", "ralink,rt3883-soc";
10 model = "Samsung CY-SWR1100";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 flash@1c000000 {
20 compatible = "cfi-flash";
21 reg = <0x1c000000 0x800000>;
22 bank-width = <2>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "uboot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "uboot-env";
37 reg = <0x30000 0x4000>;
38 read-only;
39 };
40
41 factory: partition@34000 {
42 label = "factory";
43 reg = <0x34000 0x4000>;
44 read-only;
45 };
46
47 partition@38000 {
48 label = "nvram";
49 reg = <0x38000 0x8000>;
50 read-only;
51 };
52
53 partition@40000 {
54 label = "devconf";
55 reg = <0x40000 0x10000>;
56 read-only;
57 };
58
59 partition@50000 {
60 compatible = "seama";
61 label = "firmware";
62 reg = <0x50000 0x7b0000>;
63 };
64 };
65 };
66
67 rtl8367 {
68 compatible = "realtek,rtl8367";
69 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
70 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
71 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
72 };
73
74 keys {
75 compatible = "gpio-keys";
76
77 reset {
78 label = "reset";
79 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
81 };
82
83 wps {
84 label = "wps";
85 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
87 };
88 };
89
90 leds {
91 compatible = "gpio-leds";
92
93 wps {
94 label = "cy-swr1100:blue:wps";
95 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96 };
97
98 usb {
99 label = "cy-swr1100:blue:usb";
100 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
101 trigger-sources = <&ohci_port1>, <&ehci_port1>;
102 linux,default-trigger = "usbport";
103 };
104
105 led_power: power {
106 label = "cy-swr1100:blue:power";
107 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
108 };
109 };
110 };
111
112 &gpio1 {
113 status = "okay";
114 };
115
116 &state_default {
117 gpio {
118 groups = "i2c", "spi";
119 function = "gpio";
120 };
121 };
122
123 &ethernet {
124 port@0 {
125 mediatek,fixed-link = <1000 1 1 1>;
126 phy-mode = "rgmii";
127 };
128 };
129
130 &pci {
131 status = "okay";
132 };
133
134 &pci1 {
135 status = "okay";
136
137 wifi@0,0 {
138 compatible = "pci1814,3091";
139 reg = <0x10000 0 0 0 0>;
140 ralink,mtd-eeprom = <&factory 0x2000>;
141 };
142 };
143
144 &wmac {
145 status = "okay";
146 ralink,2ghz = <0>;
147 ralink,mtd-eeprom = <&factory 0x0>;
148 };
149
150 &ehci {
151 status = "okay";
152 };
153
154 &ohci {
155 status = "okay";
156 };