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