ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / rt3052_petatel_psr-680w.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "petatel,psr-680w", "ralink,rt3052-soc";
8 model = "Petatel PSR-680W Wireless 3G Router";
9
10 aliases {
11 led-boot = &led_wan;
12 led-failsafe = &led_wan;
13 led-running = &led_wan;
14 led-upgrade = &led_wan;
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 partition@30000 {
39 label = "u-boot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48 };
49
50 partition@50000 {
51 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x3b0000>;
54 };
55 };
56 };
57
58 leds {
59 compatible = "gpio-leds";
60
61 led_wan: wan {
62 label = "red:wan";
63 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys-polled";
69 poll-interval = <20>;
70
71 reset {
72 label = "reset";
73 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_RESTART>;
75 };
76 };
77 };
78
79 &state_default {
80 gpio {
81 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
82 function = "gpio";
83 };
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88 };
89
90 &esw {
91 mediatek,portmap = <0x3e>;
92 };
93
94 &wmac {
95 ralink,mtd-eeprom = <&factory 0x0>;
96 };
97
98 &otg {
99 status = "okay";
100 };