[ramips] add the dts files that describe the boards in future
[openwrt.git] / target / linux / ramips / dts / 3G300M.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "3G300M", "ralink,rt3052-soc";
9         model = "Tenda 3G300M";
10
11         memorydetect {
12                 ralink,memory = <0x0 0x200000 0x4000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,3776k@0x50000(firmware)";
17         };
18
19         palmbus@10000000 {
20                 sysc@0 {
21                         ralink,pinmmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
22                         ralink,gpiommux = "jtag";
23                         ralink,uartmux = "gpio";
24                         ralink,wdtmux = <1>;
25                 };
26
27                 gpio0: gpio@600 {
28                         status = "okay";
29                 };
30
31                 spi@b00 {
32                         status = "okay";
33                         m25p80@0 {
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36                                 compatible = "mx25l3205d";
37                                 reg = <0 0>;
38                                 linux,modalias = "m25p80", "mx25l3205d";
39                                 spi-max-frequency = <10000000>;
40                         };
41                 };
42         };
43
44         gpio-leds {
45                 compatible = "gpio-leds";
46                 3grouter {
47                         label = "tenda:blue:3grouter";
48                         gpios = <&gpio0 11 1>;
49                 };
50                 ap {
51                         label = "tenda:blue:ap";
52                         gpios = <&gpio0 12 1>;
53                 };
54                 wisprouter {
55                         label = "tenda:blue:wisprouter";
56                         gpios = <&gpio0 9 1>;
57                 };
58                 wirelessrouter {
59                         label = "tenda:blue:wirelessrouter";
60                         gpios = <&gpio0 13 1>;
61                 };
62                 3g {
63                         label = "tenda:blue:3g";
64                         gpios = <&gpio0 7 1>;
65                 };
66                 wpsreset {
67                         label = "tenda:blue:wpsreset";
68                         gpios = <&gpio0 14 1>;
69                 };
70         };
71
72         gpio-keys-polled {
73                 compatible = "gpio-keys-polled";
74                 #address-cells = <1>;
75                 #size-cells = <0>;
76                 poll-interval = <20>;
77                 reset {
78                         label = "reset";
79                         gpios = <&gpio0 0 1>;
80                         linux,code = <0x198>;
81                 };
82                 mode {
83                         label = "mode";
84                         gpios = <&gpio0 10 1>;
85                         linux,code = <0x100>;
86                 };
87         };
88
89         ethernet@10100000 {
90                 status = "okay";
91         };
92
93         esw@10110000 {
94                 status = "okay";
95                 ralink,portmap = <0x2f>;
96         };
97
98         wmac@10180000 {
99                 status = "okay";
100         };
101
102         otg@101c0000 {
103                 status = "okay";
104         };
105 };