e0cf114bf4a7a516c146d5fe57c4b8211893e586
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / V11STFE.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
10 model = "Ralink V11ST-FE";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 nor-flash@1c000000 {
20 compatible = "cfi-flash";
21 reg = <0x1c000000 0x800000>;
22 bank-width = <2>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 reg = <0x0 0x0030000>;
31 label = "u-boot";
32 read-only;
33 };
34
35 partition@30000 {
36 reg = <0x00030000 0x00010000>;
37 label = "u-boot-env";
38 read-only;
39 };
40
41 factory: partition@40000 {
42 reg = <0x00040000 0x00010000>;
43 label = "factory";
44 read-only;
45 };
46
47 partition@50000 {
48 reg = <0x00050000 0x003b0000>;
49 label = "firmware";
50 };
51 };
52 };
53
54 gpio-keys-polled {
55 compatible = "gpio-keys-polled";
56 poll-interval = <100>;
57
58 wps {
59 label = "wps";
60 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
61 linux,code = <KEY_WPS_BUTTON>;
62 };
63 };
64
65 gpio-leds {
66 compatible = "gpio-leds";
67
68 led_status: status {
69 label = "v11st-fe:green:status";
70 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
71 };
72 };
73 };
74
75 &gpio0 {
76 status = "okay";
77 };
78
79 &ethernet {
80 status = "okay";
81 };
82
83 &pci {
84 status = "okay";
85 };
86
87 &wmac {
88 ralink,mtd-eeprom = <&factory 0>;
89 };