7458165bc44c2f7afa11f3b080e82f1d16d88cc0
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_allnet_all0256n.dtsi
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "allnet,all0256n", "ralink,rt3050-soc";
8
9 leds {
10 compatible = "gpio-leds";
11
12 rssilow {
13 label = "green:rssilow";
14 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
15 };
16
17 rssimed {
18 label = "green:rssimed";
19 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
20 };
21
22 rssihigh {
23 label = "green:rssihigh";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38 };
39
40 &state_default {
41 gpio {
42 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
43 function = "gpio";
44 };
45 };
46
47 &ethernet {
48 mtd-mac-address = <&factory 0x28>;
49 };
50
51 &esw {
52 mediatek,portmap = <0x3f>;
53 };
54
55 &wmac {
56 ralink,mtd-eeprom = <&factory 0x0>;
57 };