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