ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / W502U.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "W502U", "ralink,rt3052-soc";
9 model = "ALFA Networks W502U";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 cfi@1f000000 {
16 compatible = "cfi-flash";
17 reg = <0x1f000000 0x800000>;
18 bank-width = <2>;
19 device-width = <2>;
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x0 0x30000>;
26 read-only;
27 };
28
29 partition@30000 {
30 label = "u-boot-env";
31 reg = <0x30000 0x10000>;
32 read-only;
33 };
34
35 factory: partition@40000 {
36 label = "factory";
37 reg = <0x40000 0x10000>;
38 read-only;
39 };
40
41 partition@50000 {
42 label = "firmware";
43 reg = <0x50000 0x7b0000>;
44 };
45 };
46
47 gpio-leds {
48 compatible = "gpio-leds";
49
50 usb {
51 label = "w502u:blue:usb";
52 gpios = <&gpio0 13 1>;
53 };
54
55 wps {
56 label = "w502u:blue:wps";
57 gpios = <&gpio0 14 1>;
58 };
59 };
60
61 gpio-keys-polled {
62 compatible = "gpio-keys-polled";
63 #address-cells = <1>;
64 #size-cells = <0>;
65 poll-interval = <20>;
66
67 reset {
68 label = "reset";
69 gpios = <&gpio0 10 1>;
70 linux,code = <KEY_RESTART>;
71 };
72
73 wps {
74 label = "wps";
75 gpios = <&gpio0 0 1>;
76 linux,code = <KEY_WPS_BUTTON>;
77 };
78 };
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &ethernet {
91 mtd-mac-address = <&factory 0x28>;
92 };
93
94 &esw {
95 mediatek,portmap = <0x3e>;
96 };
97
98 &wmac {
99 ralink,mtd-eeprom = <&factory 0>;
100 };
101
102 &otg {
103 status = "okay";
104 };