From patchwork Thu Dec 21 10:29:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chintan Vankar X-Patchwork-Id: 182145 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp315993dyi; Thu, 21 Dec 2023 02:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1LCEKa9VeJ67rGfLMFvI8O2Mh2niVn1n8C8kWrupt49X/nfAgQqWeCUUcTiNIPxPlew0T X-Received: by 2002:a17:902:ea04:b0:1d0:6ffe:a11 with SMTP id s4-20020a170902ea0400b001d06ffe0a11mr27820654plg.111.1703154671489; Thu, 21 Dec 2023 02:31:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703154671; cv=none; d=google.com; s=arc-20160816; b=k8n88LbKQE1rKiKqMZE0xio9wUIsCvEimcozDE8hXEftAdC3au+8dgs+yv8Ersq99/ HS0lXC6l1fSjA8ifkjVatDieKMh+dnY/XOPX/EfKxR/dvFN2JIkLv67owZy1kKUlwq4s bWO8JlfbmUFScm+LzT+rOZuvaWyw/ZJ1wGKjTABY18RJLbfvcUmafs/7Po5+fHxvgQ3m M81sVBAnXO6C7GKmXkcgcGVcBbLO9SWcEwlO4oC73wPduYZDDhQjzF1YCSWQg3twWd5M 5rYooupHrV40GTT7OEIdF1LqknVe1lcjM9o+m/pI+v+n/Ej6VDxx2RiEVWZ+jT/QAPDR 7iiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=inQKoPNZLeZ1cwGBY9kLHmeSPB9ellZ0jwcj4lbGv3I=; fh=mJW5GI+7p8xu3o9dETxY8MtjtwgUjfbYSIs3/oxisv8=; b=OFxewyGFxTp5nK0R3e8vnf8hFWL+Vy+kPvIlNTHK2Wmx2sp23ANdHRSGpSmVjkBm2J v9QjQCE94Ra6sBDPxXNksT+gHKvZhZAyYsQKw0S9Vps/zbfVpRbDRmdexQc0HPhtbnVK Kxu8clKS9mh2p7CP5DjxZyAL/hk673MffadooqpMSO8D1KGNOk/KAilAL+4mghI0WbQq zLUlZ7wShpAgH8szZGOYhNpCw0YMBxI3mkzWON/VcduwxxEtbIy21LssgR+vUW9+cw4h z93cEg1ncEDe3eGXUmRox4gwy+AbIFHPEfQgNAJwk4BdpU+B/ZWU7diFoVSo0zPl9yAl GVaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kb9TS5kG; spf=pass (google.com: domain of linux-kernel+bounces-8199-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8199-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id je22-20020a170903265600b001d3e0015962si1280758plb.256.2023.12.21.02.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:31:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8199-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kb9TS5kG; spf=pass (google.com: domain of linux-kernel+bounces-8199-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8199-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 82798B236B1 for ; Thu, 21 Dec 2023 10:30:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF40F51C41; Thu, 21 Dec 2023 10:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="kb9TS5kG" X-Original-To: linux-kernel@vger.kernel.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 B0C3B1DA35 for ; Thu, 21 Dec 2023 10:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BLAU7Mb016150; Thu, 21 Dec 2023 04:30:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1703154607; bh=inQKoPNZLeZ1cwGBY9kLHmeSPB9ellZ0jwcj4lbGv3I=; h=From:To:CC:Subject:Date; b=kb9TS5kGFH1uKCpofsi3eAG09Lr8zYL7zPblMEN/VpCdDQ/UvQNeiEUjokz3JCxcg vDEQkn+S6ccTqgFBE1myZ0XflcKJbkRNX49Vs1ER53T/wC8xngV42p82mj0ERbN9k+ GZnEr7TC/yUEWhvFI6PVLCxYrUJcWhGY7qZR4ksc= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BLAU7uh016174 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Dec 2023 04:30:07 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 21 Dec 2023 04:30:06 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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.23 via Frontend Transport; Thu, 21 Dec 2023 04:30:06 -0600 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.227.220]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BLAU6Rv065632; Thu, 21 Dec 2023 04:30:06 -0600 From: Chintan Vankar To: Maxime Ripard , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Sinthu Raja , Chintan Vankar , Andrew Davis , Siddharth Vadapalli , Roger Quadros , Kishon Vijay Abraham I , Vinod Koul CC: , Subject: [RFC PATCH 1/2] phy: ti: gmii-sel: Enable SGMII mode for J784S4 Date: Thu, 21 Dec 2023 15:59:55 +0530 Message-ID: <20231221102956.754617-1-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785887112831270425 X-GMAIL-MSGID: 1785887112831270425 TI's J784S4 SoC supports SGMII mode with the CPSW9G instance of the CPSW Ethernet Switch. Thus, enable it by adding SGMII mode to the list of the corresponding extra_modes member. Signed-off-by: Chintan Vankar Reviewed-by: Roger Quadros --- drivers/phy/ti/phy-gmii-sel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/ti/phy-gmii-sel.c b/drivers/phy/ti/phy-gmii-sel.c index bc847d3879f7..0f4818adb440 100644 --- a/drivers/phy/ti/phy-gmii-sel.c +++ b/drivers/phy/ti/phy-gmii-sel.c @@ -248,7 +248,7 @@ static const struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j784s4 = { .use_of_data = true, .regfields = phy_gmii_sel_fields_am654, - .extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII) | + .extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII) | BIT(PHY_INTERFACE_MODE_SGMII) | BIT(PHY_INTERFACE_MODE_USXGMII), .num_ports = 8, .num_qsgmii_main_ports = 2,