xref: /linux/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-dualemac-mii.dtso (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1*4d0101e8SMD Danish Anwar// SPDX-License-Identifier: GPL-2.0-only OR MIT
2*4d0101e8SMD Danish Anwar/**
3*4d0101e8SMD Danish Anwar * DT overlay for enabling both ICSSG1 port on AM642 EVM in MII mode
4*4d0101e8SMD Danish Anwar *
5*4d0101e8SMD Danish Anwar * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
6*4d0101e8SMD Danish Anwar */
7*4d0101e8SMD Danish Anwar
8*4d0101e8SMD Danish Anwar/dts-v1/;
9*4d0101e8SMD Danish Anwar/plugin/;
10*4d0101e8SMD Danish Anwar#include <dt-bindings/gpio/gpio.h>
11*4d0101e8SMD Danish Anwar#include "k3-pinctrl.h"
12*4d0101e8SMD Danish Anwar
13*4d0101e8SMD Danish Anwar&{/} {
14*4d0101e8SMD Danish Anwar	aliases {
15*4d0101e8SMD Danish Anwar		ethernet1 = "/icssg1-eth/ethernet-ports/port@1";
16*4d0101e8SMD Danish Anwar	};
17*4d0101e8SMD Danish Anwar
18*4d0101e8SMD Danish Anwar	mdio-mux-2 {
19*4d0101e8SMD Danish Anwar		compatible = "mdio-mux-multiplexer";
20*4d0101e8SMD Danish Anwar		mux-controls = <&mdio_mux>;
21*4d0101e8SMD Danish Anwar		mdio-parent-bus = <&icssg1_mdio>;
22*4d0101e8SMD Danish Anwar		#address-cells = <1>;
23*4d0101e8SMD Danish Anwar		#size-cells = <0>;
24*4d0101e8SMD Danish Anwar
25*4d0101e8SMD Danish Anwar		mdio@0 {
26*4d0101e8SMD Danish Anwar			reg = <0x0>;
27*4d0101e8SMD Danish Anwar			#address-cells = <1>;
28*4d0101e8SMD Danish Anwar			#size-cells = <0>;
29*4d0101e8SMD Danish Anwar
30*4d0101e8SMD Danish Anwar			icssg1_phy2: ethernet-phy@3 {
31*4d0101e8SMD Danish Anwar				reg = <3>;
32*4d0101e8SMD Danish Anwar			};
33*4d0101e8SMD Danish Anwar		};
34*4d0101e8SMD Danish Anwar	};
35*4d0101e8SMD Danish Anwar};
36*4d0101e8SMD Danish Anwar
37*4d0101e8SMD Danish Anwar&main_pmx0 {
38*4d0101e8SMD Danish Anwar	icssg1_mii1_pins_default: icssg1-mii1-default-pins {
39*4d0101e8SMD Danish Anwar		pinctrl-single,pins = <
40*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00f8, PIN_INPUT, 1) /* (V9) PRG1_PRU0_GPO16.PR1_MII_MT0_CLK */
41*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00f4, PIN_OUTPUT, 0) /* (Y9) PRG1_PRU0_GPO15.PR1_MII0_TXEN */
42*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00f0, PIN_OUTPUT, 0) /* (AA9) PRG1_PRU0_GPO14.PR1_MII0_TXD3 */
43*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00ec, PIN_OUTPUT, 0) /* (W9) PRG1_PRU0_GPO13.PR1_MII0_TXD2 */
44*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00e8, PIN_OUTPUT, 0) /* (U9) PRG1_PRU0_GPO12.PR1_MII0_TXD1 */
45*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00e4, PIN_OUTPUT, 0) /* (AA8) PRG1_PRU0_GPO11.PR1_MII0_TXD0 */
46*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00c8, PIN_INPUT, 1) /* (Y8) PRG1_PRU0_GPO4.PR1_MII0_RXDV */
47*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00d0, PIN_INPUT, 1) /* (AA7) PRG1_PRU0_GPO6.PR1_MII_MR0_CLK */
48*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00c4, PIN_INPUT, 1) /* (V8) PRG1_PRU0_GPO3.PR1_MII0_RXD3 */
49*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00c0, PIN_INPUT, 1) /* (W8) PRG1_PRU0_GPO2.PR1_MII0_RXD2 */
50*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00cc, PIN_INPUT, 1) /* (V13) PRG1_PRU0_GPO5.PR1_MII0_RXER */
51*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00bc, PIN_INPUT, 1) /* (U8) PRG1_PRU0_GPO1.PR1_MII0_RXD1 */
52*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00b8, PIN_INPUT, 1) /* (Y7) PRG1_PRU0_GPO0.PR1_MII0_RXD0 */
53*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x00d8, PIN_INPUT, 1) /* (W13) PRG1_PRU0_GPO8.PR1_MII0_RXLINK */
54*4d0101e8SMD Danish Anwar		>;
55*4d0101e8SMD Danish Anwar	};
56*4d0101e8SMD Danish Anwar
57*4d0101e8SMD Danish Anwar	icssg1_mii2_pins_default: icssg1-mii2-default-pins {
58*4d0101e8SMD Danish Anwar		pinctrl-single,pins = <
59*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0148, PIN_INPUT, 1) /* (Y10) PRG1_PRU1_GPO16.PR1_MII_MT1_CLK */
60*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0144, PIN_OUTPUT, 0) /* (Y11) PRG1_PRU1_GPO15.PR1_MII1_TXEN */
61*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0140, PIN_OUTPUT, 0) /* (AA11) PRG1_PRU1_GPO14.PR1_MII1_TXD3 */
62*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x013c, PIN_OUTPUT, 0) /* (U10) PRG1_PRU1_GPO13.PR1_MII1_TXD2 */
63*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0138, PIN_OUTPUT, 0) /* (V10) PRG1_PRU1_GPO12.PR1_MII1_TXD1 */
64*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0134, PIN_OUTPUT, 0) /* (AA10) PRG1_PRU1_GPO11.PR1_MII1_TXD0 */
65*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0118, PIN_INPUT, 1) /* (W12) PRG1_PRU1_GPO4.PR1_MII1_RXDV */
66*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0120, PIN_INPUT, 1) /* (U11) PRG1_PRU1_GPO6.PR1_MII_MR1_CLK */
67*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0114, PIN_INPUT, 1) /* (Y12) PRG1_PRU1_GPO3.PR1_MII1_RXD3 */
68*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0110, PIN_INPUT, 1) /* (AA12) PRG1_PRU1_GPO2.PR1_MII1_RXD2 */
69*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x011c, PIN_INPUT, 1) /* (AA13) PRG1_PRU1_GPO5.PR1_MII1_RXER */
70*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x010c, PIN_INPUT, 1) /* (V11) PRG1_PRU1_GPO1.PR1_MII1_RXD1 */
71*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0108, PIN_INPUT, 1) /* (W11) PRG1_PRU1_GPO0.PR1_MII1_RXD0 */
72*4d0101e8SMD Danish Anwar			AM64X_IOPAD(0x0128, PIN_INPUT, 1) /* (U12) PRG1_PRU1_GPO8.PR1_MII1_RXLINK */
73*4d0101e8SMD Danish Anwar		>;
74*4d0101e8SMD Danish Anwar	};
75*4d0101e8SMD Danish Anwar};
76*4d0101e8SMD Danish Anwar
77*4d0101e8SMD Danish Anwar&cpsw3g {
78*4d0101e8SMD Danish Anwar	pinctrl-0 = <&rgmii1_pins_default>;
79*4d0101e8SMD Danish Anwar};
80*4d0101e8SMD Danish Anwar
81*4d0101e8SMD Danish Anwar&cpsw_port2 {
82*4d0101e8SMD Danish Anwar	status = "disabled";
83*4d0101e8SMD Danish Anwar};
84*4d0101e8SMD Danish Anwar
85*4d0101e8SMD Danish Anwar&mdio_mux_1 {
86*4d0101e8SMD Danish Anwar	status = "disabled";
87*4d0101e8SMD Danish Anwar};
88*4d0101e8SMD Danish Anwar
89*4d0101e8SMD Danish Anwar&icssg1_eth {
90*4d0101e8SMD Danish Anwar	pinctrl-0 = <&icssg1_mii1_pins_default &icssg1_mii2_pins_default>;
91*4d0101e8SMD Danish Anwar};
92*4d0101e8SMD Danish Anwar
93*4d0101e8SMD Danish Anwar&icssg1_emac0 {
94*4d0101e8SMD Danish Anwar	phy-mode = "mii";
95*4d0101e8SMD Danish Anwar};
96*4d0101e8SMD Danish Anwar
97*4d0101e8SMD Danish Anwar&icssg1_emac1 {
98*4d0101e8SMD Danish Anwar	status = "okay";
99*4d0101e8SMD Danish Anwar	phy-handle = <&icssg1_phy2>;
100*4d0101e8SMD Danish Anwar	phy-mode = "mii";
101*4d0101e8SMD Danish Anwar};
102