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