Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp51663rdb; Thu, 21 Dec 2023 02:30:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHmhr7SiGM4Ef1dqlG1223kmPhB6EgTpZYtEmXmcmqcNWoPZnZn5070dUEkFH+NXiBIn/g X-Received: by 2002:a17:903:2311:b0:1cf:c42c:cfbd with SMTP id d17-20020a170903231100b001cfc42ccfbdmr25520256plh.0.1703154623587; Thu, 21 Dec 2023 02:30:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703154623; cv=none; d=google.com; s=arc-20160816; b=GfYFaYhmqkbkpt7bpAUGRoQPMecfn7PnNEB1XY5Lcrz7d96If+2jR1EbxSof6F6Utz RrWQXf7mQImWV2Jhz+M+w16oFD8aP0hCb0f3Ui5y/kxFqBpHO2pjijAavH+cz/spSAyj o5pky1t55oBuVYXjk7F7nrKPSdyTwIvkcNLsgobJH3nkJrDyfPBwtwDpm64ZWMYA9hWH 00mFMUl2s0wGznodO90HQdlyaR3lxePEPXzXIqYZN/hFRyTAp5V3a4FAzphpzZPrmyyx gJn8Q2pS6KUWxl+r4f6tTzRPoFBzyNG09hoVMZEPV10bKpzYYD4wSwhz4+CILd0qA4ml n1kQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8199-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a2-20020a170902ecc200b001d390bad9a2si1276136plh.388.2023.12.21.02.30.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:30:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8199-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 302E42870C5 for ; Thu, 21 Dec 2023 10:30:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 021331DFDB; Thu, 21 Dec 2023 10:30:21 +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=20Kleine-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 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 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 --- 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, -- 2.34.1