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