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