Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp71454rdb; Thu, 21 Dec 2023 03:11:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoluGFibEj5vxwLR31AGb5rAU2Bq60IgImoGXE5walv8Z2yyWXvH+OvuOJA6GMqFkTRT6b X-Received: by 2002:a05:6a20:8f25:b0:18b:3ec7:3a71 with SMTP id b37-20020a056a208f2500b0018b3ec73a71mr764902pzk.52.1703157072228; Thu, 21 Dec 2023 03:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703157072; cv=none; d=google.com; s=arc-20160816; b=maYwiQn+iU8vy1fziRw1MvL9pmHXQf6qTGy5dXmG/H45xZ/Q2Ac4A/msTtLK9uxGiE UeYHd/RlVkVxfgsT9KSTAk1j5CN/ZPqDbYtJvxDyGTjGt/8kJkhAs2CVJT10RF9wilja f8F6NdXca4aMbmxTzrQrHoHJrxzfInDwdHzuXGpXEjRSahiYHUNnFIUfJ3rMqLMkmoEv V/eOKYBJHmDRB9Svhm6o5Isb85Q4xVBwgmhfKHLkT8Uak1uKRR6xepSHupEU2p8ZSfTP +RrxpNVpnxXgDsED2wygm4Lj6K8shFUG7Zw3YwevRiQeagkHkYa8PIU/cu2Ix0F6LRWJ 90iQ== 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=QmXACMYRAncvaes6ymYI0iABfyRzCf/v2jYHx0VjiXg=; fh=AwuDWuEQYRGXcPq4OF1QrGKjI6JotDDrC6YgVKeqAHM=; b=0YcTpQ1HAfPTPcwOvvEypuvOdzUByxr1jnrTlYJfjEBVg9kGoymM3RGqZLtsnBF+02 f8r2Ic83JQpTc++Mx/X3hhvNZE28cqp0PJA2fKrHxH1rxaHxYzJFvXGMXY42SgpwmpKx teOEwlNMwRIqRP6rW+lZ14J1yACC7XL9QDUFpFPA17dQBvxdS0/H8DAE2WV3ryj4SJ4d fRDWq2srAxNaLBCK2ws5kFhRddDnXg/cLKnbRe9lSywWa8M7lF4ZFNWrji4HiUH/H/Y4 P9ytzQle8PqqL004owYJehmfzR5s1X8Iw+ftEq4ypZk3H9IpmEpr3FxpAJzIdl/aPxLk SeCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Dbb3N+HA; spf=pass (google.com: domain of linux-kernel+bounces-8265-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gp3-20020a17090adf0300b0028bf7ba9597si420469pjb.47.2023.12.21.03.11.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 03:11:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8265-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Dbb3N+HA; spf=pass (google.com: domain of linux-kernel+bounces-8265-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8265-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DA6B4286459 for ; Thu, 21 Dec 2023 11:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 355C86BB24; Thu, 21 Dec 2023 11:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Dbb3N+HA" 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 F04B56A02F; Thu, 21 Dec 2023 11:11:00 +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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BLBAq1v122527; Thu, 21 Dec 2023 05:10:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1703157052; bh=QmXACMYRAncvaes6ymYI0iABfyRzCf/v2jYHx0VjiXg=; h=From:To:CC:Subject:Date; b=Dbb3N+HAhf8TWCggogCK90QFBYwAIM7OvHkJ8UA01C+Y6LjjDgLKkYnsPzU1VhTi+ GP29/yHzIKYjyw6i73gGes6dbeRjlZbAjRo5vSetr8SfV8mEikD28+TlbkqOVWdBvx djCgLf5r+L1uiRiCMIDafH+CIBcrhS3um4EsRYec= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BLBAqQr049082 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Dec 2023 05:10:52 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE107.ent.ti.com (10.64.6.28) 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 05:10:52 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) 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 05:10:52 -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 3BLBAp7d113056; Thu, 21 Dec 2023 05:10:52 -0600 From: Chintan Vankar To: Dan Carpenter , Grygorii Strashko , Roger Quadros , "Siddharth Vadapalli" , Paolo Abeni , "Jakub Kicinski" , Eric Dumazet , "David S. Miller" CC: , , Chintan Vankar Subject: [RFC PATCH net-next] net: ethernet: ti: am65-cpsw-nuss: Enable SGMII mode for J784S4 CPSW9G Date: Thu, 21 Dec 2023 16:40:46 +0530 Message-ID: <20231221111046.761843-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 TI's J784S4 SoC supports SGMII mode with CPSW9G instance of the CPSW Ethernet Switch. Thus, enable it by adding SGMII mode to the extra_modes member of the "j784s4_cpswxg_pdata" SoC data. Signed-off-by: Chintan Vankar --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 7651f90f51f2..9aa5a6108521 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -2855,7 +2855,8 @@ static const struct am65_cpsw_pdata j784s4_cpswxg_pdata = { .quirks = 0, .ale_dev_id = "am64-cpswxg", .fdqring_mode = K3_RINGACC_RING_MODE_MESSAGE, - .extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII) | BIT(PHY_INTERFACE_MODE_USXGMII), + .extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII) | BIT(PHY_INTERFACE_MODE_SGMII) | + BIT(PHY_INTERFACE_MODE_USXGMII), }; static const struct of_device_id am65_cpsw_nuss_of_mtable[] = { -- 2.34.1