ramips: remove model name from LED labels
[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 reg = <0x30000 0x10000>;
35 label = "factory";
36 read-only;
37 };
38
39 partition@40000 {
40 compatible = "lzma";
41 reg = <0x40000 0x3c0000>;
42 label = "firmware";
43 };
44 };
45 };
46
47 leds {
48 compatible = "gpio-leds";
49
50 led_power: power {
51 label = "green:power";
52 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
53 };
54
55 wpsblue {
56 label = "blue:wps";
57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
58 };
59 };
60
61 keys {
62 compatible = "gpio-keys-polled";
63 poll-interval = <100>;
64
65 wps {
66 label = "wps";
67 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
69 };
70
71 reset {
72 label = "reset";
73 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
75 };
76 };
77 };
78
79 &gpio0 {
80 status = "okay";
81 };
82
83 &state_default {
84 gpio {
85 groups = "i2c", "spi", "uartlite";
86 function = "gpio";
87 };
88 };
89
90 &ethernet {
91 status = "okay";
92 mtd-mac-address = <&factory 0x2004>;
93
94 port@0 {
95 phy-handle = <&phy0>;
96 phy-mode = "mii";
97 };
98
99 mdio-bus {
100 status = "okay";
101
102 phy0: ethernet-phy@0 {
103 phy-mode = "mii";
104 reg = <0>;
105 };
106 };
107 };
108
109 &wmac {
110 status = "okay";
111 ralink,mtd-eeprom = <&factory 0x2000>;
112 };