ramips: replace pinctrl property names
[oweals/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 = "all0256n:green:rssilow";
14                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
15                 };
16
17                 rssimed {
18                         label = "all0256n:green:rssimed";
19                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
20                 };
21
22                 rssihigh {
23                         label = "all0256n: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 &gpio0 {
41         status = "okay";
42 };
43
44 &state_default {
45         gpio {
46                 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
47                 function = "gpio";
48         };
49 };
50
51 &ethernet {
52         mtd-mac-address = <&factory 0x28>;
53 };
54
55 &esw {
56         mediatek,portmap = <0x3f>;
57 };
58
59 &wmac {
60         ralink,mtd-eeprom = <&factory 0>;
61 };