ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / WR512-3GN.dtsi
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 3g {
13 label = "wr512-3gn:green:3g";
14 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
15 };
16
17 gateway {
18 label = "wr512-3gn:green:gateway";
19 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
20 };
21
22 ap {
23 label = "wr512-3gn:green:ap";
24 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
25 };
26
27 wps {
28 label = "wr512-3gn:green:wps";
29 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
30 };
31
32 station {
33 label = "wr512-3gn:green:station";
34 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 gpio-keys-polled {
39 compatible = "gpio-keys-polled";
40 #address-cells = <1>;
41 #size-cells = <0>;
42 poll-interval = <20>;
43
44 reset_wps {
45 label = "reset_wps";
46 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49
50 mode {
51 label = "mode";
52 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
53 linux,code = <BTN_0>;
54 };
55 };
56 };
57
58 &pinctrl {
59 state_default: pinctrl0 {
60 gpio {
61 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
62 ralink,function = "gpio";
63 };
64 };
65 };
66
67 &esw {
68 mediatek,portmap = <0x2f>;
69 };
70
71 &wmac {
72 ralink,mtd-eeprom = <&factory 0>;
73 };
74
75 &otg {
76 status = "okay";
77 };