aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9344_mikrotik_routerboard-951g-2hnd.dts
blob: 6229eefb1f0c8ec16f00e34825e245bfe3cff5b9 (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
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar9344_mikrotik_routerboard-951x-2hnd.dtsi"

/ {
	compatible = "mikrotik,routerboard-951g-2hnd", "qca,ar9344";
	model = "Mikrotik RouterBOARD 951G-2HnD";

	/delete-node/ aliases;
	/delete-node/ leds;

	gpio-export {
		compatible = "gpio-export";

		gpio_usb_power {
			gpio-export,name = "rb951g-2hnd:power:usb";
			gpio-export,output = <1>;
			gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
		};
		
		buzzer {
			gpio-export,name = "buzzer";
			gpio-export,output = <1>;
			gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
		};
	};
};

&ref {
	clock-frequency = <25000000>;
};

&mdio0 {
	status = "okay";

	phy0: ethernet-phy@0 {
		reg = <0>;

                qca,ar8327-initvals = <
			0x04 0x07600000 /* PAD0_MODE */
			0x7c 0x0000007e /* PORT0_STATUS */
		>;
	};
};

&eth0 {
	status = "okay";

	pll-data = <0x6f000000 0x00000101 0x00001616>;

	phy-mode = "rgmii";
	phy-handle = <&phy0>;

	gmac-config {
		device = <&gmac>;
		rgmii-gmac0 = <1>;
		rxd-delay = <1>;
		switch-only-mode = <1>;
	};
};

&eth1 {
	status = "disabled";
};