ramips: remove useless status property from wmac dts node
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_airlink101_ar670w.dts
1 #include "rt2880.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "airlink101,ar670w", "ralink,rt2880-soc";
8 model = "Airlink101 AR670W";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 flash@bdc00000 {
18 compatible = "cfi-flash";
19 reg = <0xbc400000 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 0x30000>;
29 label = "u-boot";
30 read-only;
31 };
32
33 factory: partition@30000 {
34 compatible = "nvmem-cells";
35 label = "factory";
36 reg = <0x30000 0x10000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 read-only;
40
41 eeprom_factory_2000: eeprom@2000 {
42 reg = <0x2000 0x200>;
43 };
44
45 macaddr_factory_2004: macaddr@2004 {
46 reg = <0x2004 0x6>;
47 };
48 };
49
50 partition@40000 {
51 compatible = "lzma";
52 reg = <0x40000 0x3c0000>;
53 label = "firmware";
54 };
55 };
56 };
57
58 leds {
59 compatible = "gpio-leds";
60
61 led_power: power {
62 label = "green:power";
63 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
64 };
65
66 wpsblue {
67 label = "blue:wps";
68 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69 };
70 };
71
72 keys {
73 compatible = "gpio-keys-polled";
74 poll-interval = <100>;
75
76 wps {
77 label = "wps";
78 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
80 };
81
82 reset {
83 label = "reset";
84 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 };
87 };
88 };
89
90 &state_default {
91 gpio {
92 groups = "i2c", "spi", "uartlite";
93 function = "gpio";
94 };
95 };
96
97 &ethernet {
98 status = "okay";
99 nvmem-cells = <&macaddr_factory_2004>;
100 nvmem-cell-names = "mac-address";
101
102 port@0 {
103 phy-handle = <&phy0>;
104 phy-mode = "mii";
105 };
106
107 mdio-bus {
108 status = "okay";
109
110 phy0: ethernet-phy@0 {
111 phy-mode = "mii";
112 reg = <0>;
113 };
114 };
115 };
116
117 &wmac {
118 nvmem-cells = <&eeprom_factory_2000>;
119 nvmem-cell-names = "eeprom";
120 };