From patchwork Tue Oct 18 08:58:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddharth Vadapalli X-Patchwork-Id: 13010188 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 EE7EEC4332F for ; Tue, 18 Oct 2022 09:01:10 +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=ZvH03fuuXbLowTHfD6jK/4HDG4Fsxbifanyl47FGeFg=; b=ZlondanCX2efJG ZAFPXvQgvLO27VrkwKUSxe179zU6fvr8rYifcS+HO5gziRZHRw8YB+5oi5Mr5sTbC8jfeVmRY84yD GPpAWrpfRMML+X5+44ZpRK2JwR1y+UwCc/1bbrMrFBabETeBrEJf3/vwb9/uOZ+e3qgTLvbPr3bDh NB8gMvmpnHB4QU7EdCYb8eCewEkvjmHJEz4BdC5/pSSgRt1JPgUDmpKcif6E0Af9T6XMJDO37LIlB BJqpbsbRY2zALKXTIVSWBawBVYN7uy6PDwoHOzPvoSX12qVTj9kAeotb01NTDEJiBxHEmm3LO6kCf dXHrQOaZLtycM/8m+2ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okiS5-004cQQ-6U; Tue, 18 Oct 2022 08:59:57 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okiQo-004bCv-KL for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2022 08:58:40 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29I8wFxL060199; Tue, 18 Oct 2022 03:58:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666083495; bh=a4aTMrSiw0Gekbub/J5bEkA3ZfjWo5cplKqwT3q37NQ=; h=From:To:CC:Subject:Date; b=aLdd/Mu9pNrIc3UFb4hp7oKbaZics76a7ovUSkD/kLCvNyTJuGeam9wMd4OYCBIWY a/OmptKMtotK+Zknw7lgIlx3Kgp98EChW3bd/RHowA6i7b479hwhzX8n9rPfi7Pafp t2ki/5UtL8E+XnJPoBIUG58ryFMICVdOtHrsjK44= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29I8wFWR128014 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 18 Oct 2022 03:58:15 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 18 Oct 2022 03:58:15 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 18 Oct 2022 03:58:15 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29I8wAcO010100; Tue, 18 Oct 2022 03:58:11 -0500 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , Subject: [PATCH v2 0/3] Add support for QSGMII mode for J721e CPSW9G to am65-cpsw driver Date: Tue, 18 Oct 2022 14:28:07 +0530 Message-ID: <20221018085810.151327-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.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-20221018_015839_065100_046A3826 X-CRM114-Status: GOOD ( 14.18 ) 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 Add compatible to am65-cpsw driver for J721e CPSW9G, which contains 8 external ports and 1 internal host port. Add support to power on and power off the SERDES PHY which is used by the CPSW MAC. ========= Changelog ========= v1 -> v2: 1. Drop all patches corresponding to SGMII mode. This is done since I do not have a method to test SGMII in the standard mode which uses an SGMII PHY. The previous series used SGMII in a fixed-link mode, bypassing the SGMII PHY. I will post the SGMII patches in a future series after testing them. 2. Drop all patches corresponding to fixed-link in the am65-cpsw driver. This is done since PHYLINK takes care of fixed-link automatically and there is no need to deal with fixed-link in a custom fashion. 3. Fix indentation errors in k3-am65-cpsw-nuss.yaml. 4. Remove the stale code which tries to power on and power off the CPSW MAC's phy, since the CPSW MAC's phy driver does not support it. 5. Rename the function "am65_cpsw_init_phy()" to "am65_cpsw_init_serdes_phy()", to indicate that the phy corresponds to the SERDES. 6. Invoke "am65_cpsw_disable_serdes_phy()" as a part of the cleanup that is associated with the "am65_cpsw_nuss_remove()" function. v1: https://lore.kernel.org/r/20220914095053.189851-1-s-vadapalli@ti.com/ Siddharth Vadapalli (3): dt-bindings: net: ti: k3-am654-cpsw-nuss: Update bindings for J721e CPSW9G net: ethernet: ti: am65-cpsw: Enable QSGMII mode for J721e CPSW9G net: ethernet: ti: am65-cpsw: Add support for SERDES configuration .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 23 +++++- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 73 +++++++++++++++++++ 2 files changed, 94 insertions(+), 2 deletions(-)