ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3050_edimax_3g-6200n.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
8 model = "Edimax 3g-6200n";
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@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "u-boot-env";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x10000>;
43 read-only;
44 };
45
46 partition@3e0000 {
47 label = "cimage";
48 reg = <0x3e0000 0x20000>;
49 read-only;
50 };
51
52 partition@50000 {
53 compatible = "edimax,uimage";
54 label = "firmware";
55 reg = <0x50000 0x390000>;
56 };
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led_power: power {
64 label = "green:power";
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66 };
67
68 wlan {
69 label = "amber:wlan";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 };
72
73 3g {
74 label = "blue:3g";
75 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&otg_port1>;
77 linux,default-trigger = "usbport";
78 };
79 };
80
81 keys {
82 compatible = "gpio-keys-polled";
83 poll-interval = <20>;
84
85 reset {
86 label = "reset";
87 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
89 };
90
91 rfkill {
92 label = "wlanswitch";
93 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_RFKILL>;
95 };
96 };
97 };
98
99 &state_default {
100 gpio {
101 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
102 function = "gpio";
103 };
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x4>;
108 };
109
110 &esw {
111 mediatek,portmap = <0x2f>;
112 };
113
114 &wmac {
115 ralink,mtd-eeprom = <&factory 0x0>;
116 };
117
118 &otg {
119 status = "okay";
120 };