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