67dc34787e09c175fc18e9e9ed0c1b9e5133d5a7
[openwrt/openwrt.git] / target / linux / ramips / dts / 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 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 poll-interval = <20>;
14
15 reset {
16 label = "reset";
17 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
18 linux,code = <KEY_RESTART>;
19 };
20
21 wps {
22 label = "wps";
23 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
24 linux,code = <KEY_WPS_BUTTON>;
25 };
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 eth {
32 label = "asl26555:green:eth";
33 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
34 };
35
36 wan-red {
37 label = "asl26555:red:wan";
38 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
39 };
40
41 wan-green {
42 label = "asl26555:green:wan";
43 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
44 };
45
46 wlan {
47 label = "asl26555:green:wlan";
48 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
49 };
50
51 power-green {
52 label = "asl26555:green:power";
53 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
54 };
55
56 power-red {
57 label = "asl26555:red:power";
58 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
59 };
60
61 3g-green {
62 label = "asl26555:green:3g";
63 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
64 };
65
66 3g-red {
67 label = "asl26555:red:3g";
68 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
69 };
70 };
71 };
72
73 &gpio0 {
74 status = "okay";
75 };
76
77 &pinctrl {
78 state_default: pinctrl0 {
79 gpio {
80 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
81 ralink,function = "gpio";
82 };
83 };
84 };
85
86 &ethernet {
87 mtd-mac-address = <&devdata 0x4004>;
88 };
89
90 &esw {
91 mediatek,portmap = <0x1e>;
92 };
93
94 &wmac {
95 ralink,mtd-eeprom = <&devdata 0x4000>;
96 };
97
98 &otg {
99 status = "okay";
100 };