From patchwork Mon Jan 8 20:51:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 186143 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1268288dyq; Mon, 8 Jan 2024 12:52:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmMxshRdf6Ac+mMoRz91WzARYDU0rXBWI/R68g+sjrNkLBuLPw0flip4yqzAvUYfRz46mu X-Received: by 2002:a05:6512:238b:b0:50e:a517:6f13 with SMTP id c11-20020a056512238b00b0050ea5176f13mr2454886lfv.23.1704747144439; Mon, 08 Jan 2024 12:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704747144; cv=none; d=google.com; s=arc-20160816; b=hsD4unKYmfCYqS7cZrRnEWjpukpOUgwT6D5OAyur5L5oE0Ovq1VGA1oPd0gFNG0S+p u5iKDIg4bgJqsEtkAJPchHepgSH25DcAOl93GXpbPMRY5D/v+dEWA6ZIf7Bu5Z7X95ka GKoUAFCzNPdV72/hbUAZpllW4tvVHXvMIBDeckA6fGafqewKdb/JHEg+jvQQzvXw3hku s5pZfVaHepPjHTV8SG/bkR6X0QBhaJg+taeBI0mj3dgd1aKajSuRRLjqr9i/f/EPorSQ AY2GqbsoaYRf/OvBuoxygr0MSnUCW9IBWbCiYfiyPZD3G+gDbJYXHyYl2KgrQJubswHY L7pQ== 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=gz/Ou+lbRtOsZH27nosL8+xPMS7FiJAyY0JmP8NDfYA=; fh=ZAbpTrBj1PagG1N9NZ64gYWisZ4KZ9HxKkauPGG9JmI=; b=YPWl/caAwHIppeRpDe4fJyDIdmfoAYpCsmIWix6kVp9xTehcPnOI+t9KXGznVdQKwY fz/VkaGwEjbfI/Nf2pl7IHnbji86Wp2NI0AJ4EVDU2v+epCy3ibMelccZti75f+FqYEi aIr/cqNQchqSH9If0LpkjT72Jhpe2Uzslj/c3dg0QWxmlJ1moRAkGnPWZw+1FtVA1LzF utv2YzRTotD83+u5REoilH8cHsdxUEFUTS+895AfKwcEj62/Ezw5uKpkHetFL9lgMt/7 EH1TmaVsgvwSlBVjQlTpOBvoeCrTJh4qRJIii2C8i+mfCFlCAx0VPAUrTDjHO/hU+D97 jALA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=ZCpf1wB6; spf=pass (google.com: domain of linux-kernel+bounces-20110-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20110-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t17-20020a1709064f1100b00a2a73be9562si208351eju.914.2024.01.08.12.52.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:52:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20110-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=@microchip.com header.s=mchp header.b=ZCpf1wB6; spf=pass (google.com: domain of linux-kernel+bounces-20110-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20110-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.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 DD0241F23FEA for ; Mon, 8 Jan 2024 20:52:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0208C55E4B; Mon, 8 Jan 2024 20:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="ZCpf1wB6" X-Original-To: linux-kernel@vger.kernel.org Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 686C954BDA for ; Mon, 8 Jan 2024 20:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1704747128; x=1736283128; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=R13qs6Drr+vE44nRwLO0hKg3RFvsSJlh1LucsPdn9Z4=; b=ZCpf1wB6d2thpbFqOQBaKUHLEkMX6hEs3ePodgw37A/AsIQ2FsF6X+H/ 4uJrFdvLOopRu3pJ4vuYzdvNujsOdUTHUINOuUUji/iTedH6tyufje8B5 kR6ECPXnnQwgSK7YRBdY2xOiqYYjF0reOJYVIT9W1Sv56eOD69vktyJlq fH1v5ns8L/uMkCR/LZdF96uQuqr6RgYOJ5exlHOAfrrlIkC2Ty7PEOgfj DBG0vGetVW4jim/6Wm7baEaIkbYdGqYHjwRUI6+Q23BDa55fmlqA+8h4f HGeGV+uDIHSkfgPsdbuD6d6Hs/qTX15Opual/VzxfHg4D5G3rfbNbFRsQ Q==; X-CSE-ConnectionGUID: RzH0H5YRR+uPLie5NZz9dg== X-CSE-MsgGUID: aVc+rbS9QiS6xFtRCwB8LA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,180,1695711600"; d="scan'208";a="14409064" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 08 Jan 2024 13:52:00 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Jan 2024 13:51:50 -0700 Received: from DEN-DL-M31836.microsemi.net (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 8 Jan 2024 13:51:49 -0700 From: Horatiu Vultur To: , CC: , , "Horatiu Vultur" Subject: [PATCH] phy: lan966x: Add missing serdes mux entry Date: Mon, 8 Jan 2024 21:51:40 +0100 Message-ID: <20240108205140.1701770-1-horatiu.vultur@microchip.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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787556941882834529 X-GMAIL-MSGID: 1787556941882834529 According to the datasheet(Table 3-2: Port configuration) the serdes 2 (SD2) can be configured to run QSGMII or SGMII mode. Already the QSGMII mode is supported in the serdes_muxes list but was missing the SGMII mode. In this mode the serdes is connected to the port 4. Therefore add this entry in the list. Signed-off-by: Horatiu Vultur --- drivers/phy/microchip/lan966x_serdes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/microchip/lan966x_serdes.c b/drivers/phy/microchip/lan966x_serdes.c index c1a41b6cd29b1..b5ac2b7995e71 100644 --- a/drivers/phy/microchip/lan966x_serdes.c +++ b/drivers/phy/microchip/lan966x_serdes.c @@ -96,6 +96,8 @@ static const struct serdes_mux lan966x_serdes_muxes[] = { SERDES_MUX_SGMII(SERDES6G(1), 3, HSIO_HW_CFG_SD6G_1_CFG, HSIO_HW_CFG_SD6G_1_CFG_SET(1)), + SERDES_MUX_SGMII(SERDES6G(2), 4, 0, 0), + SERDES_MUX_RGMII(RGMII(0), 2, HSIO_HW_CFG_RGMII_0_CFG | HSIO_HW_CFG_RGMII_ENA | HSIO_HW_CFG_GMII_ENA,