def722832dadb044eaf7a35fab314de8a2887bee
[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 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81 };
82
83 partition@50000 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 reg = <0x50000 0xeb0000>;
87 };
88
89 partition@f00000 {
90 label = "user-data";
91 reg = <0xf00000 0x100000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &wmac {
99 status = "okay";
100 };
101
102 &factory {
103 compatible = "nvmem-cells";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 macaddr_factory_28: macaddr@28 {
108 reg = <0x28 0x6>;
109 };
110 };