summaryrefslogtreecommitdiff
path: root/arch/arm/dts/imx6qdl-sr-som-u-boot.dtsi
blob: 0bd7df02dd66071ec83a233f9c3868390bc95b1b (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
// SPDX-License-Identifier: (GPL-2.0 OR MIT)

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

&fec {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_microsom_enet_ar8035>;
	phy-handle = <&phy>;
	phy-mode = "rgmii-id";

	/*
	 * The PHY seems to require a long-enough reset duration to avoid
	 * some rare issues where the PHY gets stuck in an inconsistent and
	 * non-functional state at boot-up. 10ms proved to be fine .
	 */
	phy-reset-duration = <10>;
	phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
	status = "okay";

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

		ethernet-phy@0 {
			status = "disabled";
		};

		ethernet-phy@1 {
			status = "disabled";
		};

		ethernet-phy@4 {
			status = "disabled";
		};

		phy: ethernet-phy@ffffffff {
			/*
			 * The PHY can appear either:
			 * - AR8035: at address 0 or 4
			 * - ADIN1300: at address 1
			 * Actual address being detected at runtime.
			 */
			reg = <0xffffffff>;
			qca,clk-out-frequency = <125000000>;
			qca,smarteee-tw-us-1g = <24>;
			adi,phy-output-clock = "125mhz-free-running";
		};
	};
};