ramips: create shared DTSI for DIR-810L and TEW-810DR
[openwrt/staging/luka.git] / target / linux / ramips / dts / mt7620a_dlink_dir-810l.dts
1 /dts-v1/;
2
3 #include "mt7620a_cameo_810.dtsi"
4
5 / {
6 compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
7 model = "D-Link DIR-810L";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 label-mac-device = &ethernet;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power_green: power_green {
21 label = "dir-810l:green:power";
22 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
23 };
24
25 wan {
26 label = "dir-810l:orange:wan";
27 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
28 };
29
30 power_orange {
31 label = "dir-810l:orange:power";
32 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
33 };
34 };
35 };
36
37 &state_default {
38 gpio {
39 groups = "i2c", "uartf";
40 function = "gpio";
41 };
42 };
43
44 &gsw {
45 pinctrl-names = "default";
46 pinctrl-0 = <&ephy_pins>;
47
48 mediatek,port4 = "ephy";
49 };