ac47ed845743cebcb0aea55035e082d922e4b239
[openwrt/openwrt.git] / target / linux / ramips / dts / PX-4885.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "7links,px-4885", "ralink,rt5350-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_LOW>;
18 linux,code = <KEY_RESTART>;
19 };
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 orange {
26 label = "px-4885:orange:wifi";
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28 };
29
30 blue {
31 label = "px-4885:blue:storage";
32 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &pinctrl {
38 state_default: pinctrl0 {
39 gpio {
40 ralink,group = "i2c", "jtag", "uartf";
41 ralink,function = "gpio";
42 };
43 };
44 };
45
46 &ethernet {
47 mtd-mac-address = <&factory 0x28>;
48 };
49
50 &esw {
51 mediatek,portmap = <0x3f>;
52 };
53
54 &wmac {
55 ralink,mtd-eeprom = <&factory 0>;
56 };