ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / rt5350_poray_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-boot = &led_status;
11                 led-failsafe = &led_status;
12                 led-running = &led_status;
13                 led-upgrade = &led_status;
14         };
15
16         leds {
17                 compatible = "gpio-leds";
18
19                 led_status: status {
20                         label = "m4:blue:status";
21                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22                 };
23         };
24
25         keys {
26                 compatible = "gpio-keys-polled";
27                 poll-interval = <20>;
28
29                 reset {
30                         label = "reset";
31                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
32                         linux,code = <KEY_RESTART>;
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 0x4>;
48 };
49
50 &esw {
51         mediatek,portmap = <0x2f>;
52         mediatek,led_polarity = <1>;
53 };
54
55 &wmac {
56         ralink,mtd-eeprom = <&factory 0>;
57         ralink,led-polarity = <1>;
58 };
59
60 &ehci {
61         status = "okay";
62 };
63
64 &ohci {
65         status = "okay";
66 };