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