ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / UR-336UN.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "UR-336UN", "ralink,rt3052-soc";
9 model = "UPVEL UR-336UN";
10
11 cfi@1f000000 {
12 compatible = "cfi-flash";
13 reg = <0x1f000000 0x800000>;
14 bank-width = <2>;
15 device-width = <2>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 3g {
24 label = "ur-336un:green:3g";
25 gpios = <&gpio0 9 1>;
26 };
27
28 gateway {
29 label = "ur-336un:green:gateway";
30 gpios = <&gpio0 11 1>;
31 };
32
33 ap {
34 label = "ur-336un:green:ap";
35 gpios = <&gpio0 12 1>;
36 };
37
38 wps {
39 label = "ur-336un:green:wps";
40 gpios = <&gpio0 14 1>;
41 };
42
43 station {
44 label = "ur-336un:green:station";
45 gpios = <&gpio0 13 1>;
46 };
47 };
48
49 gpio-keys-polled {
50 compatible = "gpio-keys-polled";
51 #address-cells = <1>;
52 #size-cells = <0>;
53 poll-interval = <20>;
54
55 reset_wps {
56 label = "reset_wps";
57 gpios = <&gpio0 10 1>;
58 linux,code = <KEY_RESTART>;
59 };
60
61 mode {
62 label = "mode";
63 gpios = <&gpio0 7 1>;
64 linux,code = <BTN_0>;
65 };
66 };
67 };
68
69 &pinctrl {
70 state_default: pinctrl0 {
71 gpio {
72 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
73 ralink,function = "gpio";
74 };
75 };
76 };
77
78 /* FIXME: no partitions defined */
79 /*&ethernet {
80 mtd-mac-address = <&factory 0x4004>;
81 };
82 */
83 &esw {
84 mediatek,portmap = <0x2f>;
85 };
86
87 /* FIXME: no partitions defined */
88 /*&wmac {
89 ralink,mtd-eeprom = <&factory 0>;
90 };
91 */
92 &otg {
93 status = "okay";
94 };