aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_zyxel_nwa50ax.dts
blob: 62ba49e797ee56d87e8e9e0d506012c66fc99643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "mt7621_zyxel_nwa-ax.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "zyxel,nwa50ax", "mediatek,mt7621-soc";
	model = "ZyXEL NWA50AX";

	aliases {
		led-boot = &led_system_green;
		led-failsafe = &led_system_red;
		led-running = &led_system_green;
		led-upgrade = &led_system_red;
	};

	leds {
		compatible = "gpio-leds";

		led_system_red: system_red {
			label = "red:system";
			gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
		};

		led_system_green: system_green {
			label = "green:system";
			gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
		};

		system_blue {
			label = "blue:system";
			gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
		};
	};

	keys {
		compatible = "gpio-keys";

		reset {
			label = "reset";
			gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
	};
};

&ethernet {
	pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};

&state_default {
        gpio {
                groups = "uart3", "rgmii2";
                function = "gpio";
        };
};