[ramips] move memory detect node to dtsi files
[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         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii", "jtag";
12                         ralink,uartmux = "gpio";
13                         ralink,wdtmux = <1>;
14                 };
15
16                 gpio0: gpio@600 {
17                         status = "okay";
18                 };
19         };
20
21         cfi@1f000000 {
22                 compatible = "cfi-flash";
23                 reg = <0x1f000000 0x800000>;
24
25                 bank-width = <2>;
26                 device-width = <2>;
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29
30                 partition@0 {
31                         label = "u-boot";
32                         reg = <0x0 0x30000>;
33                         read-only;
34                 };
35
36                 partition@30000 {
37                         label = "u-boot-env";
38                         reg = <0x30000 0x10000>;
39                         read-only;
40                 };
41
42                 factory: partition@40000 {
43                         label = "factory";
44                         reg = <0x40000 0x10000>;
45                         read-only;
46                 };
47
48                 partition@50000 {
49                         label = "firmware";
50                         reg = <0x50000 0x3c8000>;
51                 };
52         };
53
54         gpio-leds {
55                 compatible = "gpio-leds";
56                 3grouter {
57                         label = "tenda:blue:3grouter";
58                         gpios = <&gpio0 11 1>;
59                 };
60                 ap {
61                         label = "tenda:blue:ap";
62                         gpios = <&gpio0 12 1>;
63                 };
64                 wisprouter {
65                         label = "tenda:blue:wisprouter";
66                         gpios = <&gpio0 9 1>;
67                 };
68                 wirelessrouter {
69                         label = "tenda:blue:wirelessrouter";
70                         gpios = <&gpio0 13 1>;
71                 };
72                 3g {
73                         label = "tenda:blue:3g";
74                         gpios = <&gpio0 7 1>;
75                 };
76                 wpsreset {
77                         label = "tenda:blue:wpsreset";
78                         gpios = <&gpio0 14 1>;
79                 };
80         };
81
82         gpio-keys-polled {
83                 compatible = "gpio-keys-polled";
84                 #address-cells = <1>;
85                 #size-cells = <0>;
86                 poll-interval = <20>;
87                 reset {
88                         label = "reset";
89                         gpios = <&gpio0 0 1>;
90                         linux,code = <0x198>;
91                 };
92                 mode {
93                         label = "mode";
94                         gpios = <&gpio0 10 1>;
95                         linux,code = <0x100>;
96                 };
97         };
98
99         ethernet@10100000 {
100                 status = "okay";
101         };
102
103         esw@10110000 {
104                 status = "okay";
105                 ralink,portmap = <0x2f>;
106         };
107
108         wmac@10180000 {
109                 status = "okay";
110         };
111 };