dfe5192e12c5b9bbd70f092db471e8f587019103
[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 &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 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 eeprom_factory_0: eeprom@0 {
88 reg = <0x0 0x400>;
89 };
90
91 macaddr_factory_28: macaddr@28 {
92 reg = <0x28 0x6>;
93 };
94 };
95 };
96
97 partition@50000 {
98 compatible = "denx,uimage";
99 label = "firmware";
100 reg = <0x50000 0xeb0000>;
101 };
102
103 partition@f00000 {
104 label = "user-data";
105 reg = <0xf00000 0x100000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &wmac {
113 status = "okay";
114
115 nvmem-cells = <&eeprom_factory_0>;
116 nvmem-cell-names = "eeprom";
117 };