ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WL-341V3.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "sitecom,wl-341-v3", "ralink,rt3052-soc";
10 model = "Sitecom WL-341 v3";
11
12 cfi@1f000000 {
13 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
15 bank-width = <2>;
16 device-width = <2>;
17 #address-cells = <1>;
18 #size-cells = <1>;
19
20 partition@0 {
21 label = "u-boot";
22 reg = <0x0 0x20000>;
23 read-only;
24 };
25
26 boardnvram: partition@20000 {
27 label = "board-nvram";
28 reg = <0x20000 0x10000>;
29 read-only;
30 };
31
32 partition@30000 {
33 label = "u-boot-env";
34 reg = <0x30000 0x10000>;
35 read-only;
36 };
37
38 partition@40000 {
39 label = "firmware";
40 reg = <0x40000 0x3b0000>;
41 };
42 };
43
44 gpio-leds {
45 compatible = "gpio-leds";
46
47 first {
48 label = "wl-341v3:amber:first";
49 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
50 };
51
52 first2 {
53 label = "wl-341v3:blue:first";
54 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
55 };
56
57 third {
58 label = "wl-341v3:amber:third";
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 };
61
62 third2 {
63 label = "wl-341v3:blue:third";
64 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
65 };
66
67 fourth {
68 label = "wl-341v3:blue:fourth";
69 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
70 };
71
72 fifth {
73 label = "wl-341v3:amber:fifth";
74 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
75 };
76
77 fifth2 {
78 label = "wl-341v3:blue:fifth";
79 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
80 };
81 };
82
83 gpio-keys-polled {
84 compatible = "gpio-keys-polled";
85 poll-interval = <20>;
86
87 reset {
88 label = "reset";
89 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
91 };
92
93 wps {
94 label = "wps";
95 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
97 };
98 };
99 };
100
101 &pinctrl {
102 state_default: pinctrl0 {
103 gpio {
104 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
105 ralink,function = "gpio";
106 };
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&boardnvram 0xffa0>;
112 };
113
114 &esw {
115 mediatek,portmap = <0x3e>;
116 };
117
118 &wmac {
119 ralink,mtd-eeprom = <&boardnvram 0xfd70>;
120 };
121
122 &otg {
123 status = "okay";
124 };