aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-ubnt-unifi-6-lr-v1.dtsi
blob: 91719865dd7417f12b90fd406e6c4f039de6fd6a (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
#include "mt7622-ubnt-unifi-6-lr.dtsi"

&eth {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&eth_pins>;

	gmac0: mac@0 {
		compatible = "mediatek,eth-mac";
		reg = <0>;

		phy-mode = "2500base-x";
		phy-handle = <&phy0>;
		phy-connection-type = "2500base-x";
	};

	mdio: mdio-bus {
		#address-cells = <1>;
		#size-cells = <0>;

		phy0: ethernet-phy@8 {
			compatible = "ethernet-phy-ieee802.3-c45";
			reg = <0x8>;
		};
	};
};

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins>;
	status = "okay";

	led-controller@30 {
		compatible = "ubnt,ledbar";
		reg = <0x30>;

		enable-gpio = <&pio 59 GPIO_ACTIVE_LOW>;
		reset-gpio = <&pio 60 GPIO_ACTIVE_LOW>;

		red {
			label = "red";
		};

		green {
			label = "green";
		};

		led_blue: blue {
			label = "blue";
		};
	};
};