e56ea82610e278ee849ec01792bb72f8c514f35c
[oweals/openwrt.git] / target / linux / ramips / dts / M4.dtsi
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "poray,m4", "ralink,rt5350-soc";
8
9         aliases {
10                 led-status = &led_status;
11         };
12
13         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 led_status: status {
17                         label = "m4:blue:status";
18                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
19                 };
20         };
21
22         gpio-keys-polled {
23                 compatible = "gpio-keys-polled";
24                 poll-interval = <20>;
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32 };
33
34 &pinctrl {
35         state_default: pinctrl0 {
36                 gpio {
37                         ralink,group = "i2c", "jtag", "uartf";
38                         ralink,function = "gpio";
39                 };
40         };
41 };
42
43 &ethernet {
44         mtd-mac-address = <&factory 0x4>;
45 };
46
47 &esw {
48         mediatek,portmap = <0x2f>;
49         mediatek,led_polarity = <1>;
50 };
51
52 &wmac {
53         ralink,mtd-eeprom = <&factory 0>;
54         ralink,led-polarity = <1>;
55 };
56
57 &ehci {
58         status = "okay";
59 };
60
61 &ohci {
62         status = "okay";
63 };