ralink: set the mac addr via the dts file
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / ASL26555-16M.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "ASL26555", "ralink,rt3050-soc";
7 model = "Alpha ASL26555";
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 = "s25sl12801";
20 reg = <0 0>;
21 linux,modalias = "m25p80", "s25sl12801";
22 spi-max-frequency = <10000000>;
23
24 partition@0 {
25 label = "uboot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29 partition@30000 {
30 label = "uboot-env";
31 reg = <0x30000 0x10000>;
32 read-only;
33 };
34 partition@40000 {
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 read-only;
38 };
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0xf80000>;
42 };
43 partition@fd0000 {
44 label = "cert";
45 reg = <0xfd0000 0x10000>;
46 read-only;
47 };
48 partition@fe0000 {
49 label = "langpack";
50 reg = <0xfe0000 0x10000>;
51 read-only;
52 };
53 partition@ff0000 {
54 label = "devdata";
55 reg = <0xff0000 0x10000>;
56 read-only;
57 };
58 };
59 };
60 };
61
62 pinctrl {
63 state_default: pinctrl0 {
64 gpio {
65 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
66 ralink,function = "gpio";
67 };
68 };
69 };
70
71 ethernet@10100000 {
72 mtd-mac-address = <&factory 0x4004>;
73 };
74
75 esw@10110000 {
76 ralink,portmap = <0x1e>;
77 };
78
79 otg@101c0000 {
80 status = "okay";
81 };
82
83 gpio-keys-polled {
84 compatible = "gpio-keys-polled";
85 #address-cells = <1>;
86 #size-cells = <0>;
87 poll-interval = <20>;
88 reset {
89 label = "reset";
90 gpios = <&gpio0 10 0>;
91 linux,code = <0x198>;
92 };
93 wps {
94 label = "wps";
95 gpios = <&gpio0 12 0>;
96 linux,code = <0x211>;
97 };
98 };
99
100 gpio-leds {
101 compatible = "gpio-leds";
102 eth {
103 label = "asl26555:green:eth";
104 gpios = <&gpio0 0 1>;
105 };
106 wan-red {
107 label = "asl26555:red:wan";
108 gpios = <&gpio0 1 0>;
109 };
110 wan-green {
111 label = "asl26555:green:wan";
112 gpios = <&gpio0 2 0>;
113 };
114 wlan {
115 label = "asl26555:green:wlan";
116 gpios = <&gpio0 7 0>;
117 };
118 power-green {
119 label = "asl26555:green:power";
120 gpios = <&gpio0 8 0>;
121 };
122 power-red {
123 label = "asl26555:red:power";
124 gpios = <&gpio0 9 0>;
125 };
126 3g-green {
127 label = "asl26555:green:3g";
128 gpios = <&gpio0 14 1>;
129 };
130 3g-red {
131 label = "asl26555:red:3g";
132 gpios = <&gpio0 17 1>;
133 };
134 };
135 };