ramips: soc wmac eeprom cleanup
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / ASL26555-8M.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 = "s25sl064p";
20 reg = <0 0>;
21 linux,modalias = "m25p80", "s25sl064p";
22 spi-max-frequency = <10000000>;
23
24 partition@0 {
25 label = "uboot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29 factory: partition@30000 {
30 label = "factory";
31 reg = <0x30000 0x10000>;
32 read-only;
33 };
34 partition@40000 {
35 label = "rgdb";
36 reg = <0x40000 0x10000>;
37 read-only;
38 };
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0x790000>;
42 };
43 partition@7e0000 {
44 label = "cert";
45 reg = <0x7e0000 0x10000>;
46 read-only;
47 };
48 partition@7f0000 {
49 label = "langpack";
50 reg = <0x7f0000 0x10000>;
51 read-only;
52 };
53 };
54 };
55 };
56
57 pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 ethernet@10100000 {
67 mtd-mac-address = <&factory 0x4004>;
68 };
69
70 esw@10110000 {
71 ralink,portmap = <0x1e>;
72 };
73
74 /* devdata partition seems to be missing */
75 /* wmac@10180000 {
76 ralink,mtd-eeprom = <&devdata 0x4000>;
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 };