aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi
blob: d539d2e0a6e578be1a0f4eb76251aca3a45a510b (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
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar9344_tplink_cpe.dtsi"

/ {
	aliases {
		led-boot = &led_link4;
		led-failsafe = &led_link4;
		led-running = &led_link4;
		led-upgrade = &led_link4;
	};

	leds {
		compatible = "gpio-leds";

		lan0 {
			label = "green:lan0";
			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
		};

		lan1 {
			label = "green:lan1";
			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
		};

		link1 {
			label = "green:link1";
			gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
		};

		link2 {
			label = "green:link2";
			gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
		};

		link3 {
			label = "green:link3";
			gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
		};

		led_link4: link4 {
			label = "green:link4";
		};
	};
};

&eth1 {
	nvmem-cells = <&macaddr_info_8>;
	nvmem-cell-names = "mac-address";

	gmac-config {
		device = <&gmac>;
		switch-phy-swap = <0>;
		switch-only-mode = <1>;
	};
};

&info {
	compatible = "nvmem-cells";
	#address-cells = <1>;
	#size-cells = <1>;

	macaddr_info_8: macaddr@8 {
		reg = <0x8 0x6>;
	};
};