xref: /linux/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-dualemac.dtso (revision ae0aba1218a0c67f144706c48502f534b2756491)
1*ae0aba12SMD Danish Anwar// SPDX-License-Identifier: GPL-2.0-only OR MIT
2*ae0aba12SMD Danish Anwar/**
3*ae0aba12SMD Danish Anwar * DT overlay for enabling 2nd ICSSG1 port on AM642 EVM
4*ae0aba12SMD Danish Anwar *
5*ae0aba12SMD Danish Anwar * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
6*ae0aba12SMD Danish Anwar */
7*ae0aba12SMD Danish Anwar
8*ae0aba12SMD Danish Anwar/dts-v1/;
9*ae0aba12SMD Danish Anwar/plugin/;
10*ae0aba12SMD Danish Anwar
11*ae0aba12SMD Danish Anwar#include <dt-bindings/gpio/gpio.h>
12*ae0aba12SMD Danish Anwar#include "k3-pinctrl.h"
13*ae0aba12SMD Danish Anwar
14*ae0aba12SMD Danish Anwar&{/} {
15*ae0aba12SMD Danish Anwar	aliases {
16*ae0aba12SMD Danish Anwar		ethernet1 = "/icssg1-eth/ethernet-ports/port@1";
17*ae0aba12SMD Danish Anwar	};
18*ae0aba12SMD Danish Anwar
19*ae0aba12SMD Danish Anwar	mdio-mux-2 {
20*ae0aba12SMD Danish Anwar		compatible = "mdio-mux-multiplexer";
21*ae0aba12SMD Danish Anwar		mux-controls = <&mdio_mux>;
22*ae0aba12SMD Danish Anwar		mdio-parent-bus = <&icssg1_mdio>;
23*ae0aba12SMD Danish Anwar		#address-cells = <1>;
24*ae0aba12SMD Danish Anwar		#size-cells = <0>;
25*ae0aba12SMD Danish Anwar
26*ae0aba12SMD Danish Anwar		mdio@0 {
27*ae0aba12SMD Danish Anwar			reg = <0x0>;
28*ae0aba12SMD Danish Anwar			#address-cells = <1>;
29*ae0aba12SMD Danish Anwar			#size-cells = <0>;
30*ae0aba12SMD Danish Anwar
31*ae0aba12SMD Danish Anwar			icssg1_phy2: ethernet-phy@3 {
32*ae0aba12SMD Danish Anwar				reg = <3>;
33*ae0aba12SMD Danish Anwar				tx-internal-delay-ps = <250>;
34*ae0aba12SMD Danish Anwar				rx-internal-delay-ps = <2000>;
35*ae0aba12SMD Danish Anwar			};
36*ae0aba12SMD Danish Anwar		};
37*ae0aba12SMD Danish Anwar	};
38*ae0aba12SMD Danish Anwar};
39*ae0aba12SMD Danish Anwar
40*ae0aba12SMD Danish Anwar&main_pmx0 {
41*ae0aba12SMD Danish Anwar	icssg1_rgmii2_pins_default: icssg1-rgmii2-default-pins {
42*ae0aba12SMD Danish Anwar		pinctrl-single,pins = <
43*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0108, PIN_INPUT, 2) /* (W11) PRG1_PRU1_GPO0.RGMII2_RD0 */
44*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x010c, PIN_INPUT, 2) /* (V11) PRG1_PRU1_GPO1.RGMII2_RD1 */
45*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0110, PIN_INPUT, 2) /* (AA12) PRG1_PRU1_GPO2.RGMII2_RD2 */
46*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0114, PIN_INPUT, 2) /* (Y12) PRG1_PRU1_GPO3.RGMII2_RD3 */
47*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0120, PIN_INPUT, 2) /* (U11) PRG1_PRU1_GPO6.RGMII2_RXC */
48*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0118, PIN_INPUT, 2) /* (W12) PRG1_PRU1_GPO4.RGMII2_RX_CTL */
49*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0134, PIN_OUTPUT, 2) /* (AA10) PRG1_PRU1_GPO11.RGMII2_TD0 */
50*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0138, PIN_OUTPUT, 2) /* (V10) PRG1_PRU1_GPO12.RGMII2_TD1 */
51*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x013c, PIN_OUTPUT, 2) /* (U10) PRG1_PRU1_GPO13.RGMII2_TD2 */
52*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0140, PIN_OUTPUT, 2) /* (AA11) PRG1_PRU1_GPO14.RGMII2_TD3 */
53*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0148, PIN_OUTPUT, 2) /* (Y10) PRG1_PRU1_GPO16.RGMII2_TXC */
54*ae0aba12SMD Danish Anwar			AM64X_IOPAD(0x0144, PIN_OUTPUT, 2) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_CTL */
55*ae0aba12SMD Danish Anwar		>;
56*ae0aba12SMD Danish Anwar	};
57*ae0aba12SMD Danish Anwar};
58*ae0aba12SMD Danish Anwar
59*ae0aba12SMD Danish Anwar&cpsw3g {
60*ae0aba12SMD Danish Anwar	pinctrl-0 = <&rgmii1_pins_default>;
61*ae0aba12SMD Danish Anwar};
62*ae0aba12SMD Danish Anwar
63*ae0aba12SMD Danish Anwar&cpsw_port2 {
64*ae0aba12SMD Danish Anwar	status = "disabled";
65*ae0aba12SMD Danish Anwar};
66*ae0aba12SMD Danish Anwar
67*ae0aba12SMD Danish Anwar&mdio_mux_1 {
68*ae0aba12SMD Danish Anwar	status = "disabled";
69*ae0aba12SMD Danish Anwar};
70*ae0aba12SMD Danish Anwar
71*ae0aba12SMD Danish Anwar&icssg1_eth {
72*ae0aba12SMD Danish Anwar	pinctrl-0 = <&icssg1_rgmii1_pins_default>, <&icssg1_rgmii2_pins_default>;
73*ae0aba12SMD Danish Anwar};
74*ae0aba12SMD Danish Anwar
75*ae0aba12SMD Danish Anwar&icssg1_emac1 {
76*ae0aba12SMD Danish Anwar	status = "okay";
77*ae0aba12SMD Danish Anwar	phy-handle = <&icssg1_phy2>;
78*ae0aba12SMD Danish Anwar	phy-mode = "rgmii-id";
79*ae0aba12SMD Danish Anwar};
80