ralink: set the mac addr via the dts file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AIR3GII.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "AIR3GII", "ralink,rt5350-soc";
7 model = "AirLive Air3GII";
8
9 palmbus@10000000 {
10 gpio0: gpio@600 {
11 status = "okay";
12 };
13
14 spi@b00 {
15 status = "okay";
16 m25p80@0 {
17 #address-cells = <1>;
18 #size-cells = <1>;
19 compatible = "en25q32b";
20 reg = <0 0>;
21 linux,modalias = "m25p80", "en25q32b";
22 spi-max-frequency = <10000000>;
23
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 factory: partition@40000 {
37 label = "factory";
38 reg = <0x40000 0x10000>;
39 read-only;
40 };
41
42 partition@50000 {
43 label = "firmware";
44 reg = <0x50000 0x3b0000>;
45 };
46 };
47 };
48 };
49
50 pinctrl {
51 state_default: pinctrl0 {
52 gpio {
53 ralink,group = "i2c", "jtag", "uartf";
54 ralink,function = "gpio";
55 };
56 };
57 };
58
59 ethernet@10100000 {
60 mtd-mac-address = <&factory 0x4>;
61 };
62
63 esw@10110000 {
64 ralink,portmap = <0x2f>;
65 };
66
67 gpio-leds {
68 compatible = "gpio-leds";
69 wlan {
70 label = "airlive:green:wlan";
71 gpios = <&gpio0 8 0>;
72 };
73 mobile {
74 label = "airlive:green:mobile";
75 gpios = <&gpio0 9 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 wps {
85 label = "wps";
86 gpios = <&gpio0 7 1>;
87 linux,code = <0x211>;
88 };
89 };
90 };