ramips: TEW-692GR.dts fixes
[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
39         gpio-leds {
40                 compatible = "gpio-leds";
41                 3grouter {
42                         label = "tenda:blue:3grouter";
43                         gpios = <&gpio0 11 1>;
44                 };
45                 ap {
46                         label = "tenda:blue:ap";
47                         gpios = <&gpio0 12 1>;
48                 };
49                 wisprouter {
50                         label = "tenda:blue:wisprouter";
51                         gpios = <&gpio0 9 1>;
52                 };
53                 wirelessrouter {
54                         label = "tenda:blue:wirelessrouter";
55                         gpios = <&gpio0 13 1>;
56                 };
57                 3g {
58                         label = "tenda:blue:3g";
59                         gpios = <&gpio0 7 1>;
60                 };
61                 wpsreset {
62                         label = "tenda:blue:wpsreset";
63                         gpios = <&gpio0 14 1>;
64                 };
65         };
66
67         gpio-keys-polled {
68                 compatible = "gpio-keys-polled";
69                 #address-cells = <1>;
70                 #size-cells = <0>;
71                 poll-interval = <20>;
72                 reset {
73                         label = "reset";
74                         gpios = <&gpio0 0 1>;
75                         linux,code = <0x198>;
76                 };
77                 mode {
78                         label = "mode";
79                         gpios = <&gpio0 10 1>;
80                         linux,code = <0x100>;
81                 };
82         };
83
84         ethernet@10100000 {
85                 status = "okay";
86         };
87
88         esw@10110000 {
89                 status = "okay";
90                 ralink,portmap = <0x2f>;
91         };
92
93         wmac@10180000 {
94                 status = "okay";
95         };
96 };