lantiq: add 3.18 support
[openwrt/svn-archive/archive.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 /* FIXME: no partitions defined */
29 /* ethernet@10100000 {
30 mtd-mac-address = <&factory 0x4004>;
31 };
32 */
33 esw@10110000 {
34 ralink,portmap = <0x2f>;
35 };
36
37 /* FIXME: no partitions defined */
38 /* wmac@10180000 {
39 ralink,mtd-eeprom = <&factory 0>;
40 };
41 */
42 gpio-leds {
43 compatible = "gpio-leds";
44 3g {
45 label = "ur336:green:3g";
46 gpios = <&gpio0 9 1>;
47 };
48 gateway {
49 label = "ur336:green:gateway";
50 gpios = <&gpio0 11 1>;
51 };
52 ap {
53 label = "ur336:green:ap";
54 gpios = <&gpio0 12 1>;
55 };
56 wps {
57 label = "ur336:green:wps";
58 gpios = <&gpio0 14 1>;
59 };
60 station {
61 label = "ur336:green:station";
62 gpios = <&gpio0 13 1>;
63 };
64 };
65
66 gpio-keys-polled {
67 compatible = "gpio-keys-polled";
68 #address-cells = <1>;
69 #size-cells = <0>;
70 poll-interval = <20>;
71 reset_wps {
72 label = "reset_wps";
73 gpios = <&gpio0 10 1>;
74 linux,code = <0x198>;
75 };
76 mode {
77 label = "mode";
78 gpios = <&gpio0 7 1>;
79 linux,code = <0x32>;
80 };
81 };
82
83 otg@101c0000 {
84 status = "okay";
85 };
86 };