288f5552a849393bb669b8c682d163f1d67fbfb3
[openwrt/openwrt.git] / target / linux / ramips / dts / ASL26555-8M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ASL26555", "ralink,rt3050-soc";
9 model = "Alpha ASL26555 (8M)";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 10 0>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 12 0>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 eth {
34 label = "asl26555:green:eth";
35 gpios = <&gpio0 0 1>;
36 };
37
38 wan-red {
39 label = "asl26555:red:wan";
40 gpios = <&gpio0 1 0>;
41 };
42
43 wan-green {
44 label = "asl26555:green:wan";
45 gpios = <&gpio0 2 0>;
46 };
47
48 wlan {
49 label = "asl26555:green:wlan";
50 gpios = <&gpio0 7 0>;
51 };
52
53 power-green {
54 label = "asl26555:green:power";
55 gpios = <&gpio0 8 0>;
56 };
57
58 power-red {
59 label = "asl26555:red:power";
60 gpios = <&gpio0 9 0>;
61 };
62
63 3g-green {
64 label = "asl26555:green:3g";
65 gpios = <&gpio0 14 1>;
66 };
67
68 3g-red {
69 label = "asl26555:red:3g";
70 gpios = <&gpio0 17 1>;
71 };
72 };
73 };
74
75 &gpio0 {
76 status = "okay";
77 };
78
79 &spi0 {
80 status = "okay";
81
82 m25p80@0 {
83 #address-cells = <1>;
84 #size-cells = <1>;
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 linux,modalias = "m25p80", "s25sl064p";
88 spi-max-frequency = <10000000>;
89
90 partition@0 {
91 label = "uboot";
92 reg = <0x0 0x30000>;
93 read-only;
94 };
95
96 ubootenv: partition@30000 {
97 label = "uboot-env";
98 reg = <0x30000 0x10000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "rgdb";
104 reg = <0x40000 0x10000>;
105 read-only;
106 };
107
108 partition@50000 {
109 label = "firmware";
110 reg = <0x50000 0x790000>;
111 };
112
113 partition@7e0000 {
114 label = "cert";
115 reg = <0x7e0000 0x10000>;
116 read-only;
117 };
118
119 partition@7f0000 {
120 label = "langpack";
121 reg = <0x7f0000 0x10000>;
122 read-only;
123 };
124 };
125 };
126
127 &pinctrl {
128 state_default: pinctrl0 {
129 gpio {
130 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
131 ralink,function = "gpio";
132 };
133 };
134 };
135
136 &ethernet {
137 mtd-mac-address = <&ubootenv 0x4004>;
138 };
139
140 &esw {
141 mediatek,portmap = <0x1e>;
142 };
143
144 &wmac {
145 ralink,mtd-eeprom = <&ubootenv 0x4000>;
146 };
147
148 &otg {
149 status = "okay";
150 };