ramips/mt7621: Name DTS files based on scheme
[oweals/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         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         keys {
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
77                 partitions {
78                         compatible = "fixed-partitions";
79                         #address-cells = <1>;
80                         #size-cells = <1>;
81
82                         partition@0 {
83                                 label = "u-boot";
84                                 reg = <0x0 0x30000>;
85                                 read-only;
86                         };
87
88                         partition@30000 {
89                                 label = "u-boot-env";
90                                 reg = <0x30000 0x10000>;
91                                 read-only;
92                         };
93
94                         factory: partition@40000 {
95                                 label = "factory";
96                                 reg = <0x40000 0x10000>;
97                                 read-only;
98                         };
99
100                         partition@50000 {
101                                 compatible = "denx,uimage";
102                                 label = "firmware";
103                                 reg = <0x50000 0xeb0000>;
104                         };
105
106                         partition@f00000 {
107                                 label = "user-data";
108                                 reg = <0xf00000 0x100000>;
109                                 read-only;
110                         };
111                 };
112         };
113 };
114
115 &wmac {
116         status = "okay";
117 };