ramips: add support for I-O DATA WNPR2600G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_tama_w06.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "tama,w06", "mediatek,mt7628an-soc";
10         model = "Tama W06";
11
12         leds {
13                 compatible = "gpio-leds";
14
15                 wps {
16                         label = "w06:green:wps";
17                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
18                 };
19
20                 wan {
21                         label = "w06:green:wan";
22                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
23                 };
24
25                 wireless {
26                         label = "w06:green:wlan";
27                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
28                 };
29         };
30
31         keys {
32                 compatible = "gpio-keys-polled";
33                 poll-interval = <20>;
34
35                 reset {
36                         label = "reset";
37                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
38                         linux,code = <KEY_RESTART>;
39                 };
40         };
41 };
42
43 &ehci {
44         status = "okay";
45 };
46
47 &ethernet {
48         mtd-mac-address = <&factory 0x28>;
49 };
50
51 &ohci {
52         status = "okay";
53 };
54
55 &pinctrl {
56         state_default: pinctrl0 {
57                 gpio {
58                         ralink,group = "uart1", "p0led_an", "wdt";
59                         ralink,function = "gpio";
60                 };
61         };
62 };
63
64 &spi0 {
65         status = "okay";
66
67         m25p80@0 {
68                 compatible = "jedec,spi-nor";
69                 reg = <0>;
70                 spi-max-frequency = <10000000>;
71
72                 partitions {
73                         compatible = "fixed-partitions";
74                         #address-cells = <1>;
75                         #size-cells = <1>;
76
77                         partition@0 {
78                                 label = "u-boot";
79                                 reg = <0x0 0x30000>;
80                                 read-only;
81                         };
82
83                         partition@30000 {
84                                 label = "u-boot-env";
85                                 reg = <0x30000 0x10000>;
86                                 read-only;
87                         };
88
89                         factory: partition@40000 {
90                                 label = "factory";
91                                 reg = <0x40000 0x10000>;
92                                 read-only;
93                         };
94
95                         partition@50000 {
96                                 compatible = "denx,uimage";
97                                 label = "firmware";
98                                 reg = <0x50000 0xeb0000>;
99                         };
100
101                         partition@f00000 {
102                                 label = "user-data";
103                                 reg = <0xf00000 0x100000>;
104                                 read-only;
105                         };
106                 };
107         };
108 };
109
110 &wmac {
111         status = "okay";
112 };