ralink: add FireWRT power button
[openwrt.git] / target / linux / ramips / dts / M2M.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "M2M", "ralink,rt5350-soc";
7         model = "Intenso Memory 2 Move";
8
9         chosen {
10                 bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
11         };
12
13         palmbus@10000000 {
14                 spi@b00 {
15                         status = "okay";
16                         m25p80@0 {
17                                 #address-cells = <1>;
18                                 #size-cells = <1>;
19                                 compatible = "mx25l6405d";
20                                 reg = <0 0>;
21                                 linux,modalias = "m25p80", "mx25l6405d";
22                                 spi-max-frequency = <10000000>;
23
24                                 partition@0 {
25                                         label = "Bootloader";
26                                         reg = <0x0 0x30000>;
27                                         read-only;
28                                 };
29
30                                 partition@30000 {
31                                         label = "Config";
32                                         reg = <0x30000 0x10000>;
33                                         read-only;
34                                 };
35
36                                 factory: partition@40000 {
37                                         label = "Factory";
38                                         reg = <0x40000 0x10000>;
39                                         read-only;
40                                 };
41
42                                 partition@50000 {
43                                         label = "firmware";
44                                         reg = <0x50000 0x7b0000>;
45                                 };
46                         };
47                 };
48         };
49
50         pinctrl {
51                 state_default: pinctrl0 {
52                         gpio {
53                                 ralink,group = "i2c", "uartf";
54                                 ralink,function = "gpio";
55                         };
56                 };
57         };
58
59         gpio-leds {
60                 compatible = "gpio-leds";
61                 wifi {
62                         label = "m2m:blue:wifi";
63                         gpios = <&gpio0 7 1>;
64                 };
65                 wan {
66                         label = "m2m:green:wan";
67                         gpios = <&gpio0 12 1>;
68                 };
69         };
70
71         gpio-keys-polled {
72                 compatible = "gpio-keys-polled";
73                 #address-cells = <1>;
74                 #size-cells = <0>;
75                 poll-interval = <20>;
76                 power {
77                         label = "power";
78                         gpios = <&gpio0 1 1>;
79                         linux,code = <0x116>;
80                 };
81                 reset {
82                         label = "reset";
83                         gpios = <&gpio0 10 1>;
84                         linux,code = <0x198>;
85                 };
86         };
87
88         ethernet@10100000 {
89                 mtd-mac-address = <&factory 0x28>;
90         };
91
92         esw@10110000 {
93                 ralink,portmap = <0x2f>;
94         };
95
96         ehci@101c0000 {
97                 status = "okay";
98         };
99
100         ohci@101c1000 {
101                 status = "okay";
102         };
103
104         wmac@10180000 {
105                 ralink,mtd-eeprom = <&factory 0x0>;
106         };
107 };