From nobody Fri Dec 19 17:18:20 2025 Received: from server.couthit.com (server.couthit.com [162.240.164.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4620A221282; Mon, 13 Oct 2025 12:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.240.164.96 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760360081; cv=none; b=Ul0PLzL0iMY9RCSO82wkAzgJJAG2byLNQNSofffQlZb/3AHoqIeeEBLEPOxPZEdWbYksZ7i2ypb6focEYU7pdh5jnRMQ0dSEttdJwCCcG4sONrFcZKODRRiP5x7qUlv8kFfkHuhIyCXfQhUtWT6wm9F5kGQLYmJLaYuB5AQ8xB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760360081; c=relaxed/simple; bh=tZeCaMjzraQTkInJXQSE1dzS908Mk+y4aoyoX4ugaUw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s10XjZ5sRbu2J20vAPub90wbEbxARRbrFb+XWyToC/6EKZjRsnWvyKy9sfFFKxDX+1C/RZNpMEaf5Ihqm/K0FsJGPXJwFDkrzkirbkijNGaeC1u2FE/XPboU6ENJkVsugQSUZtJt1uBI3lKeojaoQM3JvBtmqEXWO1X3f3OfLLU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=couthit.com; spf=pass smtp.mailfrom=couthit.com; dkim=pass (2048-bit key) header.d=couthit.com header.i=@couthit.com header.b=bOYf5bmA; arc=none smtp.client-ip=162.240.164.96 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=couthit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=couthit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=couthit.com header.i=@couthit.com header.b="bOYf5bmA" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=couthit.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=u/MhMNwwEKFQY2G5u1sLiVCFMBw1HlZPd6Yd4IHozLo=; b=bOYf5bmAO90K8YUuEhVou2q+fg RTreGmSexinABHXI3cIeueYfbazDNebPjct3zqb3jRc78yd2DU9wI5axgJg1of/uIgMuHrIaWKSml MjYE3ew15LaCaboIheGEN5juFnU16zdZ2MQCXj16woYUTllZp8IciAPqdhg+ySPyQzDPPwLWkrZGC DFjR0U2jwAXOwu8vGejotMBu4RDjO0EvlwUqL/xC/mc4ahRzf/IUbI1moZ24//gyLgniqexl1HcI5 6DrR4bf5av5kLeWVtIOLUUB4oMtu9EzF6LR87/MSp7yo20IANV+LXqyc6vDLlfQR12lFbt9K1gDZA XO9+rsPQ==; Received: from [122.175.9.182] (port=8361 helo=cypher.couthit.local) by server.couthit.com with esmtpa (Exim 4.98.1) (envelope-from ) id 1v8I4S-00000004TOu-3L9X; Mon, 13 Oct 2025 08:54:37 -0400 From: Parvathi Pudi To: tony@atomide.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, richardcochran@gmail.com Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, danishanwar@ti.com, pratheesh@ti.com, prajith@ti.com, vigneshr@ti.com, praneeth@ti.com, srk@ti.com, rogerq@ti.com, krishna@couthit.com, mohan@couthit.com, pmohan@couthit.com, basharath@couthit.com, parvathi@couthit.com, "Andrew F . Davis" , Murali Karicheri Subject: [PATCH 1/2] arm: dts: ti: Adds device tree nodes for PRU Cores, IEP and eCAP modules of PRU-ICSS2 Instance. Date: Mon, 13 Oct 2025 18:22:43 +0530 Message-ID: <20251013125401.1435486-2-parvathi@couthit.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251013125401.1435486-1-parvathi@couthit.com> References: <20251013125401.1435486-1-parvathi@couthit.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.couthit.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - couthit.com X-Get-Message-Sender-Via: server.couthit.com: authenticated_id: parvathi@couthit.com X-Authenticated-Sender: server.couthit.com: parvathi@couthit.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset="utf-8" From: Roger Quadros The TI Sitara AM57xx series of devices consists of 2 PRU-ICSS instances (PRU-ICSS1 and PRU-ICSS2). This patch adds the device tree nodes for the PRU-ICSS2 instance to support DUAL-MAC mode of operation. Each PRU-ICSS instance consists of two PRU cores along with various peripherals such as the Interrupt Controller (PRU_INTC), the Industrial Ethernet Peripheral(IEP), the Real Time Media Independent Interface controller (MII_RT), and the Enhanced Capture (eCAP) event module. am57-pruss.dtsi - Adds IEP and eCAP peripheral as child nodes of the PRUSS subsystem node. am57xx-idk-common.dtsi - Adds PRU-ICSS2 instance node along with PRU eth port information and corresponding port configuration. It includes interrupt mapping for packet reception, HW timestamp collection, and PRU Ethernet ports in MII mode. am571x-idk.dts, am572x-idk.dts and am574x-idk.dts - GPIO configuration along with delay configuration for individual PRU Ethernet port. Reviewed-by: Mohan Reddy Putluru Signed-off-by: Roger Quadros Signed-off-by: Andrew F. Davis Signed-off-by: Murali Karicheri Signed-off-by: Basharath Hussain Khaja Signed-off-by: Parvathi Pudi --- arch/arm/boot/dts/ti/omap/am57-pruss.dtsi | 11 ++++ arch/arm/boot/dts/ti/omap/am571x-idk.dts | 8 ++- arch/arm/boot/dts/ti/omap/am572x-idk.dts | 10 +-- arch/arm/boot/dts/ti/omap/am574x-idk.dts | 10 +-- .../boot/dts/ti/omap/am57xx-idk-common.dtsi | 61 +++++++++++++++++++ 5 files changed, 91 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/am57-pruss.dtsi b/arch/arm/boot/dts/= ti/omap/am57-pruss.dtsi index 46c5383f0eee..f73316625608 100644 --- a/arch/arm/boot/dts/ti/omap/am57-pruss.dtsi +++ b/arch/arm/boot/dts/ti/omap/am57-pruss.dtsi @@ -170,6 +170,17 @@ pruss2_iepclk_mux: iepclk-mux@30 { }; }; =20 + pruss2_iep: iep@2e000 { + compatible =3D "ti,am5728-icss-iep"; + reg =3D <0x2e000 0x31c>; + clocks =3D <&pruss2_iepclk_mux>; + }; + + pruss2_ecap: ecap@30000 { + compatible =3D "ti,pruss-ecap"; + reg =3D <0x30000 0x60>; + }; + pruss2_mii_rt: mii-rt@32000 { compatible =3D "ti,pruss-mii", "syscon"; reg =3D <0x32000 0x58>; diff --git a/arch/arm/boot/dts/ti/omap/am571x-idk.dts b/arch/arm/boot/dts/t= i/omap/am571x-idk.dts index 322cf79d22e9..02653b440585 100644 --- a/arch/arm/boot/dts/ti/omap/am571x-idk.dts +++ b/arch/arm/boot/dts/ti/omap/am571x-idk.dts @@ -214,5 +214,11 @@ &pruss1_mdio { }; =20 &pruss2_mdio { - status =3D "disabled"; + reset-gpios =3D <&gpio5 9 GPIO_ACTIVE_LOW>; + reset-delay-us =3D <2>; /* PHY datasheet states 1uS min */ +}; + +&pruss2_eth { + ti,pruss-gp-mux-sel =3D <4>, /* MII2, needed for PRUSS1_MII0 */ + <4>; /* MII2, needed for PRUSS1_MII1 */ }; diff --git a/arch/arm/boot/dts/ti/omap/am572x-idk.dts b/arch/arm/boot/dts/t= i/omap/am572x-idk.dts index 94a738cb0a4d..54a8ccb9ca14 100644 --- a/arch/arm/boot/dts/ti/omap/am572x-idk.dts +++ b/arch/arm/boot/dts/ti/omap/am572x-idk.dts @@ -28,10 +28,12 @@ &mmc2 { pinctrl-2 =3D <&mmc2_pins_ddr_rev20>; }; =20 -&pruss1_mdio { - status =3D "disabled"; +&pruss2_eth0_phy { + reset-gpios =3D <&gpio5 8 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <2>; /* PHY datasheet states 1uS min */ }; =20 -&pruss2_mdio { - status =3D "disabled"; +&pruss2_eth1_phy { + reset-gpios =3D <&gpio5 9 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <2>; /* PHY datasheet states 1uS min */ }; diff --git a/arch/arm/boot/dts/ti/omap/am574x-idk.dts b/arch/arm/boot/dts/t= i/omap/am574x-idk.dts index 47b9174d2353..47b6c6cb210c 100644 --- a/arch/arm/boot/dts/ti/omap/am574x-idk.dts +++ b/arch/arm/boot/dts/ti/omap/am574x-idk.dts @@ -40,10 +40,12 @@ &emif1 { status =3D "okay"; }; =20 -&pruss1_mdio { - status =3D "disabled"; +&pruss2_eth0_phy { + reset-gpios =3D <&gpio5 8 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <2>; /* PHY datasheet states 1uS min */ }; =20 -&pruss2_mdio { - status =3D "disabled"; +&pruss2_eth1_phy { + reset-gpios =3D <&gpio5 9 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <2>; /* PHY datasheet states 1uS min */ }; diff --git a/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi b/arch/arm/bo= ot/dts/ti/omap/am57xx-idk-common.dtsi index 43e3623f079c..2407d5640aed 100644 --- a/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/ti/omap/am57xx-idk-common.dtsi @@ -155,6 +155,52 @@ src_clk_x1: src_clk_x1 { compatible =3D "fixed-clock"; clock-frequency =3D <20000000>; }; + + /* Dual-MAC Ethernet application node on PRU-ICSS2 */ + pruss2_eth: pruss2-eth { + compatible =3D "ti,am57-prueth"; + ti,prus =3D <&pru2_0>, <&pru2_1>; + sram =3D <&ocmcram1>; + ti,mii-rt =3D <&pruss2_mii_rt>; + ti,iep =3D <&pruss2_iep>; + ti,ecap =3D <&pruss2_ecap>; + interrupts =3D <20 2 2>, <21 3 3>; + interrupt-names =3D "rx_hp", "rx_lp"; + interrupt-parent =3D <&pruss2_intc>; + + ethernet-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + pruss2_emac0: ethernet-port@0 { + reg =3D <0>; + phy-handle =3D <&pruss2_eth0_phy>; + phy-mode =3D "mii"; + interrupts =3D <20 2 2>, <26 6 6>, <23 6 6>; + interrupt-names =3D "rx", "emac_ptp_tx", + "hsr_ptp_tx"; + /* Filled in by bootloader */ + local-mac-address =3D [00 00 00 00 00 00]; + }; + + pruss2_emac1: ethernet-port@1 { + reg =3D <1>; + phy-handle =3D <&pruss2_eth1_phy>; + phy-mode =3D "mii"; + interrupts =3D <21 3 3>, <27 9 7>, <24 9 7>; + interrupt-names =3D "rx", "emac_ptp_tx", + "hsr_ptp_tx"; + /* Filled in by bootloader */ + local-mac-address =3D [00 00 00 00 00 00]; + }; + }; + }; + +}; + +&pruss2_iep { + interrupt-parent =3D <&pruss2_intc>; + interrupts =3D <7 7 8>; + interrupt-names =3D "iep_cap_cmp"; }; =20 &dra7_pmx_core { @@ -606,3 +652,18 @@ dpi_out: endpoint { }; }; }; + +&pruss2_mdio { + status =3D "okay"; + pruss2_eth0_phy: ethernet-phy@0 { + reg =3D <0>; + interrupt-parent =3D <&gpio3>; + interrupts =3D <30 IRQ_TYPE_EDGE_FALLING>; + }; + + pruss2_eth1_phy: ethernet-phy@1 { + reg =3D <1>; + interrupt-parent =3D <&gpio3>; + interrupts =3D <31 IRQ_TYPE_EDGE_FALLING>; + }; +}; --=20 2.43.0