ramips: cleanup SPI flash device tree properties usage
[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 spi-max-frequency = <10000000>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 label = "firmware";
95 reg = <0x50000 0x3b0000>;
96 };
97 };
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 gpio {
103 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
104 ralink,function = "gpio";
105 };
106 };
107 };
108
109 &ethernet {
110 mtd-mac-address = <&factory 0x4>;
111 };
112
113 &esw {
114 mediatek,portmap = <0x2f>;
115 };
116
117 &wmac {
118 ralink,mtd-eeprom = <&factory 0>;
119 };
120
121 &otg {
122 status = "okay";
123 };