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