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