b1377036cced182bf6e7917fb6c0ed121847656b
[15.05/openwrt.git] / target / linux / ramips / dts / UR-336UN.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "UR-336UN", "ralink,rt3052-soc";
7         model = "UR-336UN Wireless N router";
8
9         pinctrl {
10                 state_default: pinctrl0 {
11                         gpio {
12                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
13                                 ralink,function = "gpio";
14                         };
15                 };
16         };
17
18         cfi@1f000000 {
19                 compatible = "cfi-flash";
20                 reg = <0x1f000000 0x800000>;
21
22                 bank-width = <2>;
23                 device-width = <2>;
24                 #address-cells = <1>;
25                 #size-cells = <1>;
26         };
27
28         esw@10110000 {
29                 ralink,portmap = <0x2f>;
30         };
31
32         gpio-leds {
33                 compatible = "gpio-leds";
34                 3g {
35                         label = "ur336:green:3g";
36                         gpios = <&gpio0 9 1>;
37                 };
38                 gateway {
39                         label = "ur336:green:gateway";
40                         gpios = <&gpio0 11 1>;
41                 };
42                 ap {
43                         label = "ur336:green:ap";
44                         gpios = <&gpio0 12 1>;
45                 };
46                 wps {
47                         label = "ur336:green:wps";
48                         gpios = <&gpio0 14 1>;
49                 };
50                 station {
51                         label = "ur336:green:station";
52                         gpios = <&gpio0 13 1>;
53                 };
54         };
55
56         gpio-keys-polled {
57                 compatible = "gpio-keys-polled";
58                 #address-cells = <1>;
59                 #size-cells = <0>;
60                 poll-interval = <20>;
61                 reset_wps {
62                         label = "reset_wps";
63                         gpios = <&gpio0 10 1>;
64                         linux,code = <0x198>;
65                 };
66                 mode {
67                         label = "mode";
68                         gpios = <&gpio0 7 1>;
69                         linux,code = <0x32>;
70                 };
71         };
72
73         otg@101c0000 {
74                 status = "okay";
75         };
76 };