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