Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1024245rdb; Wed, 24 Jan 2024 02:28:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/tDkbhUgz4IsX7jcGu5bRFRcwTQ6fgE2ds1ukLDmf9iwnBIoGFrOtWmZf/2OxOxhedM6/ X-Received: by 2002:a05:6808:178f:b0:3bd:c2c7:c3f3 with SMTP id bg15-20020a056808178f00b003bdc2c7c3f3mr1502594oib.108.1706092081006; Wed, 24 Jan 2024 02:28:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706092080; cv=pass; d=google.com; s=arc-20160816; b=Hh7QvC1FRIG7osR1M+iFSTOo+X9apR0ihlbnDnsMM3nnapODD2w0YYv/00gkFEYlws OuTdj3fLxi4F/5QXJpjSDyJN3S+AX8zeM8rfKw23i15Pd3BNP7hiBuZS7/50wGk8el+3 E+umq3rYu93gTZZUNwil4/lsf89k9UNd7oulhz1NWRGaWA0JHu+CCuYeKOX9IDTxKjz2 aGcwqPdS/GzI4jg+/X3cf1rkJEQqviwZeZxe2LiFESabSQFSmnFjFhpjLGBljEfLsxz0 swiH/c15Ijp7sJyxsJC2JyUp+JVeHkLQeDD2OzU/GWqHgdLuF4/X96BljzQsCCA2rPzB o3zg== ARC-Message-Signature: i=2; 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; bh=tkpsvfbTVzb2mgrO3PjO6+SbDqdHrBtLi5m9S76UvFU=; fh=uv2rsjfdS2DvkEUNi7M+n1ctuF54YWwN+Ajd/TelD/Q=; b=s51wWa4PRGLxWqNaXPg2EDU1noyAj46IgJyP1O2PGogyNXnylYwdeQto24Bf4jEORJ /i+2hq3ppnUTe/EcTvQjOxiC2NlUWWxOqUMqY9dXt5Q2bdXmWR2/2fn8OQWAXpsP++Gu NsSio5j1y8sisXd7RinVqnNQAGkBtGILPAI2xF5+/CjNXAO3DDL+ccrNu5UEZB9v4fEM RGrAyrXIv2UqqwF70TI41V4P2Tf5nxET0AeZm0popy6WlLizcdAPOOzAGuB5XMZPi0b/ EkJIIAmzCxYZI6pI6SLOpdVamxd8YxaMN4F2OKc0EUVfCwSNgtc7IfGwnw1K0uAG3tgu maEQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36795-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s33-20020a05622a1aa100b0042a5c369803si1213569qtc.752.2024.01.24.02.28.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 02:28:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36795-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BD6E21C21B01 for ; Wed, 24 Jan 2024 10:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E3A61A702; Wed, 24 Jan 2024 10:27:36 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 804BD182DA for ; Wed, 24 Jan 2024 10:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706092056; cv=none; b=WonVkS9ORnFxZkZbb+xqEwpFC6+6QhM3DQ8fhWNWVUPwirLYWDmi3iQGXH6+7O0HFK/rw6HVyzseviNjXOOdD5YhQfMAmjwFhI9YFVr3lYTo7byYStOZlSzy+MVKb63FtdRrCSQ4VEvScKDxkJMAkuU0BBQhUikHLuXimeIwzJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706092056; c=relaxed/simple; bh=Thg4BMK6uSig59Zh4d2Kwh3BFWvxU3LN+ZVR1ChvhQg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HNeSYc7jt6FBqbSuP+3TxpHHQynXaFmr0V0lZkNALgTsK9ce0T6Y25uRQadEISRXnfr9SOyZj9OsQQJPztpF5+IwTmWgVYpWWaG+pardXdwacwczgAevshNOhhcsJ3ypzum2eNd3OLLYPInLtte6lOpDLbPHmICoLUf68lGfJVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rSaTd-0007Ts-70; Wed, 24 Jan 2024 11:27:25 +0100 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSaTc-0022Ga-Kq; Wed, 24 Jan 2024 11:27:24 +0100 Received: from fpf by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rSaTc-005aNc-1t; Wed, 24 Jan 2024 11:27:24 +0100 From: Fabian Pfitzner To: Michael Hennerich , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: kernel@pengutronix.de, Fabian Pfitzner , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] net: phy: adin: add recovered clock output Date: Wed, 24 Jan 2024 11:25:56 +0100 Message-Id: <20240124102554.1327853-2-f.pfitzner@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122110311.2725036-1-f.pfitzner@pengutronix.de> References: <20240122110311.2725036-1-f.pfitzner@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: fpf@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The ADIN1300 offers three distinct output clocks which can be accessed through the GP_CLK pin. The DT only offers two of the possible options and thus the 125MHz-recovered output clock is missing. As there is no other way to configure this pin than through the DT it should be possible to do so for all available outputs. Signed-off-by: Fabian Pfitzner --- drivers/net/phy/adin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index 2e1a46e121d9..b1ed6fd24763 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -508,6 +508,8 @@ static int adin_config_clk_out(struct phy_device *phydev) sel |= ADIN1300_GE_CLK_CFG_25; } else if (strcmp(val, "125mhz-free-running") == 0) { sel |= ADIN1300_GE_CLK_CFG_FREE_125; + } else if (strcmp(val, "125mhz-recovered") == 0) { + sel |= ADIN1300_GE_CLK_CFG_RCVR_125; } else if (strcmp(val, "adaptive-free-running") == 0) { sel |= ADIN1300_GE_CLK_CFG_HRT_FREE; } else { -- 2.39.2