ramips: use new image build code for D-Link DCS-930 family
[openwrt/staging/mkresin.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
18 partitions {
19 compatible = "fixed-partitions";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x0 0x20000>;
26 read-only;
27 };
28
29 boardnvram: partition@20000 {
30 label = "board-nvram";
31 reg = <0x20000 0x10000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "u-boot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 partition@40000 {
42 compatible = "denx,uimage";
43 label = "firmware";
44 reg = <0x40000 0x3b0000>;
45 };
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 first {
53 label = "wl-341v3:amber:first";
54 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
55 };
56
57 first2 {
58 label = "wl-341v3:blue:first";
59 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
60 };
61
62 third {
63 label = "wl-341v3:amber:third";
64 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
65 };
66
67 third2 {
68 label = "wl-341v3:blue:third";
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 };
71
72 fourth {
73 label = "wl-341v3:blue:fourth";
74 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
75 };
76
77 fifth {
78 label = "wl-341v3:amber:fifth";
79 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
80 };
81
82 fifth2 {
83 label = "wl-341v3:blue:fifth";
84 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
85 };
86 };
87
88 gpio-keys-polled {
89 compatible = "gpio-keys-polled";
90 poll-interval = <20>;
91
92 reset {
93 label = "reset";
94 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
96 };
97
98 wps {
99 label = "wps";
100 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_WPS_BUTTON>;
102 };
103 };
104 };
105
106 &pinctrl {
107 state_default: pinctrl0 {
108 gpio {
109 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
110 ralink,function = "gpio";
111 };
112 };
113 };
114
115 &ethernet {
116 mtd-mac-address = <&boardnvram 0xffa0>;
117 };
118
119 &esw {
120 mediatek,portmap = <0x3e>;
121 };
122
123 &wmac {
124 ralink,mtd-eeprom = <&boardnvram 0xfd70>;
125 };
126
127 &otg {
128 status = "okay";
129 };