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