ramips: fix dtc warnings
[openwrt/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 gpio-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 gpio-keys-polled {
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 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <10000000>;
78 m25p,chunked-io = <32>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
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 &wmac {
112 status = "okay";
113 };