ramips: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PSR-680W.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "petatel,psr-680w", "ralink,rt3052-soc";
10 model = "Petatel PSR-680W Wireless 3G Router";
11
12 aliases {
13 led-boot = &led_wan;
14 led-failsafe = &led_wan;
15 led-running = &led_wan;
16 led-upgrade = &led_wan;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 cfi@1f000000 {
24 compatible = "cfi-flash";
25 reg = <0x1f000000 0x800000>;
26 bank-width = <2>;
27 device-width = <2>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x0 0x30000>;
37 read-only;
38 };
39
40 partition@30000 {
41 label = "u-boot-env";
42 reg = <0x30000 0x10000>;
43 read-only;
44 };
45
46 factory: partition@40000 {
47 label = "factory";
48 reg = <0x40000 0x10000>;
49 read-only;
50 };
51
52 partition@50000 {
53 compatible = "denx,uimage";
54 label = "firmware";
55 reg = <0x50000 0x3b0000>;
56 };
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led_wan: wan {
64 label = "psr-680w:red:wan";
65 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys-polled";
71 poll-interval = <20>;
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78 };
79 };
80
81 &pinctrl {
82 state_default: pinctrl0 {
83 gpio {
84 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
85 ralink,function = "gpio";
86 };
87 };
88 };
89
90 &ethernet {
91 mtd-mac-address = <&factory 0x4>;
92 };
93
94 &esw {
95 mediatek,portmap = <0x3e>;
96 };
97
98 &wmac {
99 ralink,mtd-eeprom = <&factory 0>;
100 };
101
102 &otg {
103 status = "okay";
104 };