ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3052_dlink_dap-1350.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "dlink,dap-1350", "ralink,rt3052-soc";
8 model = "D-Link DAP-1350";
9
10 aliases {
11 led-boot = &led_power_blue;
12 led-failsafe = &led_power_blue;
13 led-running = &led_power_blue;
14 led-upgrade = &led_power_blue;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 flash@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
24 bank-width = <2>;
25 device-width = <2>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 devdata: partition@30000 {
39 label = "devdata";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 partition@40000 {
45 label = "devconf";
46 reg = <0x40000 0x30000>;
47 read-only;
48 };
49
50 partition@70000 {
51 label = "devlang";
52 reg = <0x70000 0x40000>;
53 read-only;
54 };
55
56 partition@b0000 {
57 compatible = "denx,uimage";
58 label = "firmware";
59 reg = <0xb0000 0x750000>;
60 };
61 };
62 };
63
64 leds {
65 compatible = "gpio-leds";
66
67 led_power_blue: power {
68 label = "blue:power";
69 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
70 };
71
72 power2 {
73 label = "red:power";
74 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
75 };
76
77 wps {
78 label = "blue:wps";
79 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
80 };
81 };
82
83 keys {
84 compatible = "gpio-keys-polled";
85 poll-interval = <20>;
86
87 reset {
88 label = "reset";
89 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
91 };
92
93 wps {
94 label = "wps";
95 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
97 };
98
99 rt {
100 label = "rt";
101 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_0>;
103 };
104
105 ap {
106 label = "ap";
107 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
108 linux,code = <BTN_1>;
109 };
110 };
111 };
112
113 &state_default {
114 gpio {
115 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
116 function = "gpio";
117 };
118 };
119
120 &ethernet {
121 mtd-mac-address = <&devdata 0x2e>;
122 };
123
124 &esw {
125 mediatek,portmap = <0x2f>;
126 };
127
128 &wmac {
129 ralink,mtd-eeprom = <&devdata 0x0>;
130 };
131
132 &otg {
133 status = "okay";
134 };