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