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