1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the RZ/G2[MN] HiHope sub board common parts
4 *
5 * Copyright (C) 2019 Renesas Electronics Corp.
6 */
7
8/ {
9	aliases {
10		ethernet0 = &avb;
11	};
12
13	chosen {
14		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
15	};
16};
17
18&avb {
19	pinctrl-0 = <&avb_pins>;
20	pinctrl-names = "default";
21	phy-handle = <&phy0>;
22	phy-mode = "rgmii-txid";
23	status = "okay";
24
25	phy0: ethernet-phy@0 {
26		rxc-skew-ps = <1500>;
27		reg = <0>;
28		interrupt-parent = <&gpio2>;
29		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
30		reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
31	};
32};
33
34&pciec0 {
35	status = "okay";
36};
37
38&pciec1 {
39	status = "okay";
40};
41
42&pfc {
43	pinctrl-0 = <&scif_clk_pins>;
44	pinctrl-names = "default";
45
46	avb_pins: avb {
47		mux {
48			groups = "avb_link", "avb_mdio", "avb_mii";
49			function = "avb";
50		};
51
52		pins_mdio {
53			groups = "avb_mdio";
54			drive-strength = <24>;
55		};
56
57		pins_mii_tx {
58			pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
59			       "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
60			drive-strength = <12>;
61		};
62	};
63};
64