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