7f00db99867e6b80749844323e9f454db0858ab1
[openwrt/staging/stintel.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 &ethernet {
41 nvmem-cells = <&macaddr_factory_28>;
42 nvmem-cell-names = "mac-address";
43 };
44
45 &state_default {
46 gpio {
47 groups = "uart1", "p0led_an", "wdt";
48 function = "gpio";
49 };
50 };
51
52 &spi0 {
53 status = "okay";
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <10000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 compatible = "nvmem-cells";
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 #address-cells = <1>;
82 #size-cells = <1>;
83 read-only;
84
85 eeprom_factory_0: eeprom@0 {
86 reg = <0x0 0x400>;
87 };
88
89 macaddr_factory_28: macaddr@28 {
90 reg = <0x28 0x6>;
91 };
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
112 nvmem-cells = <&eeprom_factory_0>;
113 nvmem-cell-names = "eeprom";
114 };