From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7566119E7FA; Thu, 15 Aug 2024 14:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723731083; cv=none; b=qix1yhrva3kVcQzLK989sJCR+mM8ITShtjs8iwkvUX9NTAOuB5yhs6L43PJr5mu45fc/N/FikMITFkQHHzL9SJ2R216zddJ0DC73rcR69cnyGPmmJuvq9x1SCutdgcef1CGGrQF2J1HNYPxEKBB/i92nIRcEt37JWxKgWD+8oi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723731083; c=relaxed/simple; bh=faDgAkz2fo+bpVw899jaG0stFIFl85f1qs43SXZqOuo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DPTX2dRDu/sdGqWTxhkL8gv7IIwlLVmwHvjXSZCfMUHTUrzu4t4kUsScUT9TEht9LSEFgxdl7F8NOl3h3u7pqTsA6JIJRvoWKvhLB6r7/Lptp5Wz16J6N17q3h4xfUB0LDtc47pGh9ClDkOP0OHzvuNSi8eux3JDX3w1It8PDoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YS3OIAxc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YS3OIAxc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D13FEC32786; Thu, 15 Aug 2024 14:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723731083; bh=faDgAkz2fo+bpVw899jaG0stFIFl85f1qs43SXZqOuo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YS3OIAxcvf+I9J0YIHOnUUvnYe66YlyIx046uR7ODrAdSNondZ5ovI7Dsr6HlfBem ICHJMAHOZgQjxGNVoWnA/CWfuFlnwmrpaHsMMun0siIerSL+X0ynUvJE7CaCRqs0fn Dm3cHOEDXiwfUiQRoue10Pwszk3MrHx7s+XjvBnw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marco Felsch , Shawn Guo , Sasha Levin Subject: [PATCH 5.4 018/259] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Date: Thu, 15 Aug 2024 15:22:31 +0200 Message-ID: <20240815131903.501252890@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240815131902.779125794@linuxfoundation.org> References: <20240815131902.779125794@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marco Felsch [ Upstream commit 5694eed98cca5c164ebb5b831b65b4c9eee4b2d5 ] Add ethernet-phy node so we can drop the deprecated fec phy-reset-gpios property. The reset-assert-us value is taken from the existing logic since the fec driver will add an 1ms assert delay per default if phy-reset-gpios is used and phy-reset-duration is not specified. Signed-off-by: Marco Felsch Signed-off-by: Shawn Guo Stable-dep-of: edfea889a049 ("ARM: dts: imx6qdl-kontron-samx6i: fix PHY reset") Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi index 5e454a694b78a..1b9e38ec74489 100644 --- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi @@ -260,7 +260,19 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rgmii"; - phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; + phy-handle = <ðphy>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; + reset-assert-us = <1000>; + }; + }; }; &i2c_intern { -- 2.43.0