ramips: improve netis WF-2881 support
[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";
33
34                 reset {
35                         label = "reset";
36                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
37                         linux,code = <KEY_RESTART>;
38                 };
39         };
40 };
41
42 &ehci {
43         status = "okay";
44 };
45
46 &ethernet {
47         mtd-mac-address = <&factory 0x28>;
48 };
49
50 &ohci {
51         status = "okay";
52 };
53
54 &pinctrl {
55         state_default: pinctrl0 {
56                 gpio {
57                         ralink,group = "uart1", "p0led_an", "wdt";
58                         ralink,function = "gpio";
59                 };
60         };
61 };
62
63 &spi0 {
64         status = "okay";
65
66         m25p80@0 {
67                 compatible = "jedec,spi-nor";
68                 reg = <0>;
69                 spi-max-frequency = <10000000>;
70
71                 partitions {
72                         compatible = "fixed-partitions";
73                         #address-cells = <1>;
74                         #size-cells = <1>;
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                                 compatible = "denx,uimage";
96                                 label = "firmware";
97                                 reg = <0x50000 0xeb0000>;
98                         };
99
100                         partition@f00000 {
101                                 label = "user-data";
102                                 reg = <0xf00000 0x100000>;
103                                 read-only;
104                         };
105                 };
106         };
107 };
108
109 &wmac {
110         status = "okay";
111 };