ramips: add support for Netgear EX6130
[oweals/openwrt.git] / target / linux / ramips / dts / rt3050_alphanetworks_asl26555.dtsi
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "alphanetworks,asl26555", "ralink,rt3050-soc";
8
9         aliases {
10                 led-boot = &led_power_green;
11                 led-failsafe = &led_power_green;
12                 led-running = &led_power_green;
13                 led-upgrade = &led_power_green;
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
23                         linux,code = <KEY_RESTART>;
24                 };
25
26                 wps {
27                         label = "wps";
28                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
29                         linux,code = <KEY_WPS_BUTTON>;
30                 };
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 eth {
37                         label = "asl26555:green:eth";
38                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
39                 };
40
41                 wan-red {
42                         label = "asl26555:red:wan";
43                         gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
44                 };
45
46                 wan-green {
47                         label = "asl26555:green:wan";
48                         gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
49                 };
50
51                 wlan {
52                         label = "asl26555:green:wlan";
53                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
54                 };
55
56                 led_power_green: power-green {
57                         label = "asl26555:green:power";
58                         gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
59                 };
60
61                 power-red {
62                         label = "asl26555:red:power";
63                         gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
64                 };
65
66                 3g-green {
67                         label = "asl26555:green:3g";
68                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
69                         trigger-sources = <&otg_port1>;
70                         linux,default-trigger = "usbport";
71                 };
72
73                 3g-red {
74                         label = "asl26555:red:3g";
75                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
76                 };
77         };
78 };
79
80 &gpio0 {
81         status = "okay";
82 };
83
84 &pinctrl {
85         state_default: pinctrl0 {
86                 gpio {
87                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
88                         ralink,function = "gpio";
89                 };
90         };
91 };
92
93 &ethernet {
94         mtd-mac-address = <&devdata 0x4004>;
95 };
96
97 &esw {
98         mediatek,portmap = <0x1e>;
99 };
100
101 &wmac {
102         ralink,mtd-eeprom = <&devdata 0x4000>;
103 };
104
105 &otg {
106         status = "okay";
107 };