From patchwork Thu Jan 25 10:04:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chintan Vankar X-Patchwork-Id: 13530840 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8603FC47258 for ; Thu, 25 Jan 2024 13:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gl/mlQZq3QWGuXitD3fh0oZ1eR9jHhhTDezYnV/VoUw=; b=zXEEWnJSPSBlIJ ii0QoiTjBn7TOu19E8vCQmvyXEHrP5n0gqqvpfZ1rH2VNBareBOGacH6EktcJ6himitl7oN00wa/f K4UMDzc1KhwK39TpLUOhuE9YTp9tO7/PTfjAtoVzoDiT6z/YjSCtAS5TbsFlzQMRidcQQOtbPPCYe ZbCW/6Uh4zpf2l2/bBKMV5nWsFaxzAWbZ5Em/UInwlXGDNxIbaHR9aIczy6aIyeZwCW00XXhCXyhj nSPwmHiDJEWUOwDKR5a/7Y/i9ywxt80sRRNciQ5cyqJ6Ae23MvV3I/XVlBFA9od8jxdJUY8qh9ZP9 sI5BQI0nLhZQJcHEF+lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT06T-000000007bm-2VRL; Thu, 25 Jan 2024 13:49:13 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT06R-000000007af-3lhy for linux-arm-kernel@bombadil.infradead.org; Thu, 25 Jan 2024 13:49:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=90Wx4wXz/bfBM2NhwoVGPDRkYZNOgi7Yeec6KpjN/Ls=; b=NsvjxTxw0akS0ojaJ/jeiKP7Rd y2/eKxZEIGgKciYAIcXPu+km2c233sdW4zhY6fnVL4nbFdZpqtwdj401Ty7HwpTmg+RowPxYvG3gf n6IKhd/vqFt6tviMq6NjmOtjU4bwAxbuRV/rwckzyVCqzId7gMktpqoW35B7s6YSiHYY9xPxmyrv/ n7g/yJt21MJXXg0yNtSxrs7ERtfrF19E/EUHUxddZ2cBY2j8Tt1wDlad9+7JnUE6y+tuCCgWXSD6m t9Ha6DiYvSGWYKDDekOy/pJqJ0YVB2SpLump521V1F7CmbIQY8knURdu5hoZzQzOeUfw9B6GLn8cG uhFwHyMA==; Received: from fllv0015.ext.ti.com ([198.47.19.141]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rSwcB-000000052hE-0tty for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 10:05:46 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40PA5Dv8069387; Thu, 25 Jan 2024 04:05:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706177114; bh=90Wx4wXz/bfBM2NhwoVGPDRkYZNOgi7Yeec6KpjN/Ls=; h=From:To:CC:Subject:Date; b=CPeHRxBXGTIzCLbb0ubbCteR0llpO8eSyEdrZpMhdZw2NYEhFwsCl+BSKqXe3wogU ANxhP0kex5cDRqHkPBPrdpkO2HMRun8lkKC2niysoj620HIxyh/dwmYpXioHMvUclR qj3NlhoJupU6h+34z7Q/IKCYIo+hSKwN7qZBf7uE= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40PA5D3I025973 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Jan 2024 04:05:13 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 25 Jan 2024 04:05:13 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 25 Jan 2024 04:05:13 -0600 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.227.220]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40PA5C6p005006; Thu, 25 Jan 2024 04:05:12 -0600 From: Chintan Vankar To: Andrew Davis , Peter Rosin , Greg Kroah-Hartman , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon CC: , , , , , , , Chintan Vankar Subject: [PATCH v3 0/5] Add CPSW2G and CPSW9G nodes for J784S4 Date: Thu, 25 Jan 2024 15:34:56 +0530 Message-ID: <20240125100501.4137977-1-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_100544_751934_40182A8E X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds device-tree nodes for CPSW2G and CPSW9G instance of the CPSW Ethernet Switch on TI's J784S4 SoC. Additionally, two device-tree overlays are also added: 1. QSGMII mode with the CPSW9G instance via the ENET EXPANSION 1 connector. 2. USXGMII mode with MAC Ports 1 and 2 of the CPSW9G instance via ENET EXPANSION 1 and 2 connectors, configured in fixed-link mode of operation at 5Gbps link speed. Similar to Andrew Davis patch at: https://lore.kernel.org/r/20231117222930.228688-5-afd@ti.com/ for J721E, similar changes are also required for J784S4 to remove dependency on the parent node being a syscon node. This series combines the v1 series at: https://lore.kernel.org/r/20230522092201.127598-1-s-vadapalli@ti.com/ and the patch for Main CPSW2G node that is present in [PATCH v6 2/5] at: https://lore.kernel.org/r/20230721132029.123881-1-j-choudhary@ti.com/ but dropped in it's next version at: https://lore.kernel.org/r/20231019054022.175163-1-j-choudhary@ti.com/ Changes from v1 for J784S4 CPSW9G DT Support: 1. Update serdes_ln_ctrl node in k3-j784s4-main.dtsi to remove dependency on the parent node being a syscon node. 2. The patch for Main CPSW2G node is combined. 3. Update description in k3-j784s4-evm-quad-port-eth-exp1.dtso QSGMII overlay file and add product link for QSGMII daughtercard. 4. Add a comment in k3-j784s4-evm-usxgmii-exp1-exp2.dtso USXGMII overlay file for the serdes_wiz2 node since it uses 156.25 MHz clock for USXGMII. Changes from v6 for J784S4 Main CPSW2G node: 1. Rename node name in k3-j784s4-main.dtsi from main_cpsw2g_pins_default to main_cpsw2g_default_pins, main_cpsw2g_mdio_pins_default to main_cpsw2g_mdio_default_pins and main_phy0 to main_cpsw1_phy0 based on Tony's suggestion at: https://lore.kernel.org/all/20230724045032.GU5194@atomide.com/ Chintan Vankar (1): arm64: dts: ti: k3-j784s4-main: Fix mux-reg-masks in serdes_ln_ctrl Siddharth Vadapalli (4): arm64: dts: ti: k3-j784s4-main: Add CPSW2G and CPSW9G nodes arm64: dts: ti: k3-j784s4: Add Main CPSW2G node arm64: dts: ti: k3-j784s4: Add overlay to enable QSGMII mode with CPSW9G arm64: dts: ti: k3-j784s4: Add overlay for dual port USXGMII mode arch/arm64/boot/dts/ti/Makefile | 11 +- .../ti/k3-j784s4-evm-quad-port-eth-exp1.dtso | 146 +++++++++++++ .../ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso | 73 +++++++ arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 47 +++++ arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 194 +++++++++++++++++- 5 files changed, 464 insertions(+), 7 deletions(-) create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-evm-quad-port-eth-exp1.dtso create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso