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