Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.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                                 ubootenv: partition@30000 {
30                                         label = "uboot-env";
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 = <&ubootenv 0x4004>;
68         };
69
70         esw@10110000 {
71                 ralink,portmap = <0x1e>;
72         };
73
74         wmac@10180000 {
75                 ralink,mtd-eeprom = <&ubootenv 0x4000>;
76         };
77
78         otg@101c0000 {
79                 status = "okay";
80         };
81
82         gpio-keys-polled {
83                 compatible = "gpio-keys-polled";
84                 #address-cells = <1>;
85                 #size-cells = <0>;
86                 poll-interval = <20>;
87                 reset {
88                         label = "reset";
89                         gpios = <&gpio0 10 0>;
90                         linux,code = <0x198>;
91                 };
92                 wps {
93                         label = "wps";
94                         gpios = <&gpio0 12 0>;
95                         linux,code = <0x211>;
96                 };
97         };
98
99         gpio-leds {
100                 compatible = "gpio-leds";
101                 eth {
102                         label = "asl26555:green:eth";
103                         gpios = <&gpio0 0 1>;
104                 };
105                 wan-red {
106                         label = "asl26555:red:wan";
107                         gpios = <&gpio0 1 0>;
108                 };
109                 wan-green {
110                         label = "asl26555:green:wan";
111                         gpios = <&gpio0 2 0>;
112                 };
113                 wlan {
114                         label = "asl26555:green:wlan";
115                         gpios = <&gpio0 7 0>;
116                 };
117                 power-green {
118                         label = "asl26555:green:power";
119                         gpios = <&gpio0 8 0>;
120                 };
121                 power-red {
122                         label = "asl26555:red:power";
123                         gpios = <&gpio0 9 0>;
124                 };
125                 3g-green {
126                         label = "asl26555:green:3g";
127                         gpios = <&gpio0 14 1>;
128                 };
129                 3g-red {
130                         label = "asl26555:red:3g";
131                         gpios = <&gpio0 17 1>;
132                 };
133         };
134 };