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