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