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, From patchwork Thu Dec 21 10:29:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chintan Vankar X-Patchwork-Id: 182144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp315810dyi; Thu, 21 Dec 2023 02:30:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+KS8vokyDUHWaIo7lDQ6IFpN249Cb89MaPmL777WDLsCAkwbyPOmfSIZfxC0ypm/kcJmx X-Received: by 2002:a17:907:7615:b0:a26:9666:83ea with SMTP id jx21-20020a170907761500b00a26966683eamr433697ejc.31.1703154647477; Thu, 21 Dec 2023 02:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703154647; cv=none; d=google.com; s=arc-20160816; b=Be7dPLXPHX+7cuN0i+BodNiRjlb4yKO83sqj49L24bM1SsYN4wIiidZuAd9MPtxvqO yGvBSuubN3GFx5GlVLGkzRZG3msAzml9c1Pl4Ya7SD/0tiZrMGWiKX8CCeg82blNUVC5 KpaT6vj+XoP6srJvT0wQzk+P53Z7yXJFnVpJFgLVEn7PETPrJ03y4BAQQBsz7QKoIxvB lVFsK1kDqMKB2p/cvH5oLga5FMgXoXBlhLhR6QfDY8dDGcaZ7JYY8KL88NOBaNCqVFEU /qIV63o49wYlJ6LE6SwU0OuWS3ZL1zhw5TtpQ4bbDy+CNWr5rAPatrR3HPrbiWCCy5o0 0N/A== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FV2RhUD9SV7SdTWfY8qp4/5H5gSClJNwlc4iyQYL4y8=; fh=mJW5GI+7p8xu3o9dETxY8MtjtwgUjfbYSIs3/oxisv8=; b=qepZvZ3z5RyOtURKWkoku+1I/FtCBF07i8/PLHVnFPdirjVrbrm9/+ZNc5adUSxSg4 jeTzah8cGhKE7T0Pxp1eEyZ3t8OXYsPhpXRu9SEX0TCNjI1lZhEpTY2nAsZzqG+AuhY3 7pusFp12D7wjTCf98nvhiTlWpFihU2Kfvex05cCWTRQT7dP9PWe/xmTyZzvrF3NSIFl4 eISSr3BHwIWj0Bv3JIRvwsnke/KUAl/ra63CbxNhn2wII36lOmZiWmg3DwICHDx9mWE9 Ysg5YTv6Iu8Gea3ErhDokPvCuOX+FYe18zI0yfZZ6D6oQ6/MM+IpiU9paZo7VK3dg2qD dSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GP0l4ope; spf=pass (google.com: domain of linux-kernel+bounces-8200-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8200-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j12-20020a05640211cc00b0054c943a07c4si727706edw.394.2023.12.21.02.30.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:30:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8200-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GP0l4ope; spf=pass (google.com: domain of linux-kernel+bounces-8200-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8200-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1BEA81F242EF for ; Thu, 21 Dec 2023 10:30:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B94465275D; Thu, 21 Dec 2023 10:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="GP0l4ope" X-Original-To: linux-kernel@vger.kernel.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 BB079524BA for ; Thu, 21 Dec 2023 10:30:31 +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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BLAUDlJ112064; Thu, 21 Dec 2023 04:30:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1703154613; bh=FV2RhUD9SV7SdTWfY8qp4/5H5gSClJNwlc4iyQYL4y8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GP0l4opeE0TY7YZxiMxyUovZ7rJ5at0Qfb4HhLnC3wvEFzvANT4afVo2ziCiQamuD m5QMhAniQh5SzAKvLWp4nFs7/pbY73UlYYqrvS1JpYrqDbmnpSKlTGRBYU+oENDf/O l+xXYczOuK+aVlwZi/UM9IkqTcebMDrVkdrJjvbQ= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BLAUDaR030054 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Dec 2023 04:30:13 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) 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.23; Thu, 21 Dec 2023 04:30:13 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE107.ent.ti.com (157.170.170.37) 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: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 3BLAUCqW087744; Thu, 21 Dec 2023 04:30:12 -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 2/2] phy: ti: j721e-wiz: Add SGMII support in WIZ driver for J784S4 Date: Thu, 21 Dec 2023 15:59:56 +0530 Message-ID: <20231221102956.754617-2-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231221102956.754617-1-c-vankar@ti.com> References: <20231221102956.754617-1-c-vankar@ti.com> 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: 1785887087312416026 X-GMAIL-MSGID: 1785887087312416026 Enable full rate divider configuration support for J784S4_WIZ_10G for SGMII. Signed-off-by: Chintan Vankar Reviewed-by: Roger Quadros --- drivers/phy/ti/phy-j721e-wiz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index fc3cd98c60ff..00d7e6a6de03 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -1240,6 +1240,7 @@ static int wiz_phy_fullrt_div(struct wiz *wiz, int lane) case J721E_WIZ_10G: case J7200_WIZ_10G: case J721S2_WIZ_10G: + case J784S4_WIZ_10G: if (wiz->lane_phy_type[lane] == PHY_TYPE_SGMII) return regmap_field_write(wiz->p0_fullrt_div[lane], 0x2); break;