From patchwork Tue Mar 21 11:19:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddharth Vadapalli X-Patchwork-Id: 13182625 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 8042EC74A5B for ; Tue, 21 Mar 2023 11:21:18 +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=BDHjjtf7n0xt9fVJZglF2K0NTp9cl3TvVNfzEn7H+2E=; b=odc7xXv/WpoB12 CiJDGtr8fVk73/kHh6wKbZFJKUBAyxclxKf2JpB2hBtY+NkQJXGK+tMMBSnYrjLmnsqr+VVMNmBcE mB9DuUED3gp7w+JC4yLsMQBXBM4r9YtDPgglUDN0blYGiLSNirxt6m/+EqYCMzyQrHoxCUk3/J3Kz 0j0I6lZbZk3Qs+hVBJ4HIQa7GPHLCf7RESKNbq2hU1HFvIIcGf1pv1vmNoMH17UdEkX8KmLbnW6pu v8uSWvW6JoaMoTZYU2gITLE8EUD8vk8KATSlXCVMOQcTHozcmgFv+3klyTHqQD3u9Y4TeFjjd0PUr j89aG5NUF1OyfkUchMdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pea2R-00CArC-1z; Tue, 21 Mar 2023 11:20:23 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pea2O-00CAp8-1F for linux-arm-kernel@lists.infradead.org; Tue, 21 Mar 2023 11:20:21 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32LBK3ql127836; Tue, 21 Mar 2023 06:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679397603; bh=nBzsrK9F0f/kSP64wqEA7pCc1XDfaG2toYVJJNk9SuI=; h=From:To:CC:Subject:Date; b=uRgn9ZomS8XS+g4sI+2kHGYnwdniso1bP4nCcpIB3RrCx4rH2TOiIH3tTqM9M5FD6 ty3F6dp+XjcL/qtuPNzogEFaBiWAegy9JHT94Aa+gtBRwRWK7lMw6PpMKQigO6uKuI hEVq8qv891a8FO9HhenYXwdk7OCCIhiqgiqzZT8E= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32LBK3PQ008204 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 21 Mar 2023 06:20:03 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 21 Mar 2023 06:20:02 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 21 Mar 2023 06:20:02 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32LBJxVm088542; Tue, 21 Mar 2023 06:20:00 -0500 From: Siddharth Vadapalli To: , , , , , CC: , , , , Subject: [PATCH net-next 0/4] Add CPSWxG SGMII support for J7200 and J721E Date: Tue, 21 Mar 2023 16:49:54 +0530 Message-ID: <20230321111958.2800005-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-20230321_042020_562977_F0249DDD X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. 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 Hello, This series adds support to configure the CPSW Ethernet Switch in SGMII mode, using the am65-cpsw-nuss driver. SGMII mode is supported by the CPSWxG instances on TI's J7200 and J721E SoCs. Thus, SGMII mode is added in the list of extra_modes for the appropriate compatibles corresponding to the aforementioned SoCs. Additionally, the method of setting the supported interface via struct "phylink_config" is simplified by converting the IF/ELSE statements to SWITCH statements. Regards, Siddharth. Siddharth Vadapalli (4): net: ethernet: ti: am65-cpsw: Simplify setting supported interface net: ethernet: ti: am65-cpsw: Add support for SGMII mode net: ethernet: ti: am65-cpsw: Enable SGMII mode for J7200 net: ethernet: ti: am65-cpsw: Enable SGMII mode for J721E drivers/net/ethernet/ti/am65-cpsw-nuss.c | 42 +++++++++++++++++++----- 1 file changed, 33 insertions(+), 9 deletions(-)