4d19bca6dad3464556a7afb8e97d1b0d3df89466
[openwrt/openwrt.git] / target / linux / ramips / dts / 3G300M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "3G300M", "ralink,rt3052-soc";
9 model = "Tenda 3G300M";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 3grouter {
15 label = "3g300m:blue:3grouter";
16 gpios = <&gpio0 11 1>;
17 };
18
19 ap {
20 label = "3g300m:blue:ap";
21 gpios = <&gpio0 12 1>;
22 };
23
24 wisprouter {
25 label = "3g300m:blue:wisprouter";
26 gpios = <&gpio0 9 1>;
27 };
28
29 wirelessrouter {
30 label = "3g300m:blue:wirelessrouter";
31 gpios = <&gpio0 13 1>;
32 };
33
34 3g {
35 label = "3g300m:blue:3g";
36 gpios = <&gpio0 7 1>;
37 };
38
39 wpsreset {
40 label = "3g300m:blue:wpsreset";
41 gpios = <&gpio0 14 1>;
42 };
43 };
44
45 gpio-keys-polled {
46 compatible = "gpio-keys-polled";
47 #address-cells = <1>;
48 #size-cells = <0>;
49 poll-interval = <20>;
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 0 1>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 mode {
58 label = "mode";
59 gpios = <&gpio0 10 1>;
60 linux,code = <BTN_0>;
61 };
62 };
63 };
64
65 &spi0 {
66 status = "okay";
67
68 m25p80@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 linux,modalias = "m25p80", "mx25l3205d";
74 spi-max-frequency = <10000000>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 label = "firmware";
96 reg = <0x50000 0x3b0000>;
97 };
98 };
99 };
100
101 &pinctrl {
102 state_default: pinctrl0 {
103 gpio {
104 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
105 ralink,function = "gpio";
106 };
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&factory 0x4>;
112 };
113
114 &esw {
115 mediatek,portmap = <0x2f>;
116 };
117
118 &wmac {
119 ralink,mtd-eeprom = <&factory 0>;
120 };
121
122 &otg {
123 status = "okay";
124 };