8c3bbe40588676989a750ada36ae697d1ae6df17
[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 poll-interval = <20>;
39
40 reset {
41 label = "reset";
42 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &ehci {
49 status = "okay";
50 };
51
52 &ethernet {
53 mtd-mac-address = <&factory 0x28>;
54 };
55
56 &ohci {
57 status = "okay";
58 };
59
60 &pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "uart1", "p0led_an", "wdt";
64 ralink,function = "gpio";
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 m25p80@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <10000000>;
76 m25p,chunked-io = <32>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x0 0x30000>;
86 read-only;
87 };
88
89 partition@30000 {
90 label = "u-boot-env";
91 reg = <0x30000 0x10000>;
92 read-only;
93 };
94
95 factory: partition@40000 {
96 label = "factory";
97 reg = <0x40000 0x10000>;
98 read-only;
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x50000 0xeb0000>;
105 };
106
107 partition@f00000 {
108 label = "user-data";
109 reg = <0xf00000 0x100000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &wmac {
117 status = "okay";
118 };