ramips: TEW-692GR: fix switch and wireless
[oweals/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         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 wifi {
17                         label = "m2m:blue:wifi";
18                         gpios = <&gpio0 7 1>;
19                 };
20
21                 wan {
22                         label = "m2m:green:wan";
23                         gpios = <&gpio0 12 1>;
24                 };
25         };
26
27         gpio-keys-polled {
28                 compatible = "gpio-keys-polled";
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <20>;
32
33                 power {
34                         label = "power";
35                         gpios = <&gpio0 1 1>;
36                         linux,code = <0x116>;
37                 };
38
39                 reset {
40                         label = "reset";
41                         gpios = <&gpio0 10 1>;
42                         linux,code = <0x198>;
43                 };
44         };
45 };
46
47 &spi0 {
48         status = "okay";
49
50         m25p80@0 {
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53                 compatible = "jedec,spi-nor";
54                 reg = <0>;
55                 linux,modalias = "m25p80", "mx25l6405d";
56                 spi-max-frequency = <10000000>;
57
58                 partition@0 {
59                         label = "Bootloader";
60                         reg = <0x0 0x30000>;
61                         read-only;
62                 };
63
64                 partition@30000 {
65                         label = "Config";
66                         reg = <0x30000 0x10000>;
67                         read-only;
68                 };
69
70                 factory: partition@40000 {
71                         label = "Factory";
72                         reg = <0x40000 0x10000>;
73                         read-only;
74                 };
75
76                 partition@50000 {
77                         label = "firmware";
78                         reg = <0x50000 0x7b0000>;
79                 };
80         };
81 };
82
83 &pinctrl {
84         state_default: pinctrl0 {
85                 gpio {
86                         ralink,group = "i2c", "uartf";
87                         ralink,function = "gpio";
88                 };
89         };
90 };
91
92 &ethernet {
93         mtd-mac-address = <&factory 0x28>;
94 };
95
96 &esw {
97         mediatek,portmap = <0x2f>;
98 };
99
100 &ehci {
101         status = "okay";
102 };
103
104 &ohci {
105         status = "okay";
106 };
107
108 &wmac {
109         ralink,mtd-eeprom = <&factory 0x0>;
110 };