Fresh pull from upstream lede-17.01 branch to fix several outstanding
[librecmc/librecmc.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                 spi-max-frequency = <10000000>;
88
89                 partition@0 {
90                         label = "uboot";
91                         reg = <0x0 0x30000>;
92                         read-only;
93                 };
94
95                 ubootenv: partition@30000 {
96                         label = "uboot-env";
97                         reg = <0x30000 0x10000>;
98                         read-only;
99                 };
100
101                 partition@40000 {
102                         label = "rgdb";
103                         reg = <0x40000 0x10000>;
104                         read-only;
105                 };
106
107                 partition@50000 {
108                         label = "firmware";
109                         reg = <0x50000 0x790000>;
110                 };
111
112                 partition@7e0000 {
113                         label = "cert";
114                         reg = <0x7e0000 0x10000>;
115                         read-only;
116                 };
117
118                 partition@7f0000 {
119                         label = "langpack";
120                         reg = <0x7f0000 0x10000>;
121                         read-only;
122                 };
123         };
124 };
125
126 &pinctrl {
127         state_default: pinctrl0 {
128                 gpio {
129                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
130                         ralink,function = "gpio";
131                 };
132         };
133 };
134
135 &ethernet {
136         mtd-mac-address = <&ubootenv 0x4004>;
137 };
138
139 &esw {
140         mediatek,portmap = <0x1e>;
141 };
142
143 &wmac {
144         ralink,mtd-eeprom = <&ubootenv 0x4000>;
145 };
146
147 &otg {
148         status = "okay";
149 };