summaryrefslogtreecommitdiff
path: root/arch/arm/dts/sun50i-a64-pine64-plus-u-boot.dtsi
blob: 9c61beac01111c1e52ea4e35b95f98bb23b5bd58 (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
/ {
	aliases {
		ethernet0 = &emac;
	};

	soc {
		emac: ethernet@01c30000 {
			compatible = "allwinner,sun50i-a64-emac";
			reg = <0x01c30000 0x2000>, <0x01c00030 0x4>;
			reg-names = "emac", "syscon";
			interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
			resets = <&ccu RST_BUS_EMAC>;
			reset-names = "ahb";
			clocks = <&ccu CLK_BUS_EMAC>;
			clock-names = "ahb";
			#address-cells = <1>;
			#size-cells = <0>;
			pinctrl-names = "default";
			pinctrl-0 = <&rgmii_pins>;
			phy-mode = "rgmii";
			phy = <&phy1>;
			status = "okay";

			phy1: ethernet-phy@1 {
				reg = <1>;
			};
		};
	};
};

&pio {
	rmii_pins: rmii_pins {
		allwinner,pins = "PD10", "PD11", "PD13", "PD14",
				 "PD17", "PD18", "PD19", "PD20",
				 "PD22", "PD23";
		allwinner,function = "emac";
		allwinner,drive = <3>;
		allwinner,pull = <0>;
	};

	rgmii_pins: rgmii_pins {
		allwinner,pins = "PD8", "PD9", "PD10", "PD11",
				 "PD12", "PD13", "PD15",
				 "PD16", "PD17", "PD18", "PD19",
				 "PD20", "PD21", "PD22", "PD23";
		allwinner,function = "emac";
		allwinner,drive = <3>;
		allwinner,pull = <0>;
	};
};