From patchwork Fri Nov 8 13:49:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13868250 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 874DF1F7551 for ; Fri, 8 Nov 2024 13:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731073816; cv=none; b=WcNuo2ZE/VKrnSUh/b6yW2eNIMqSO8hG3n/JoF5dyiZeUQxndEx5qxgAv17Olo0cnw5lQ7kXMNSLGpBs20YEuOH21qaO1e6oPLkXncsRycoRfmOTwIskuxihHQoNb12Q/79D/dHxJtrK+4rg0kQt7JNqwwzY4nQqngqIGo8ZBjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731073816; c=relaxed/simple; bh=JXNO5hP7E5V4S/t+2oEhJLRyEnrD6Aq1wt/H24xrlUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A+aZ4bJFWvfp8xeNcHSa8RM/YvyZ3CB18FEfqdjl6bghBb5GMp+BVoIgQp4ZuYNL5sQ966Xg5JqzsfKm4CAofdRsfUak2+GMy46oLB1ih9F+0mFNKuTe6RJ8oyfmZfIiiY1GZiZMtDG5l43fq8MXkNZdAbarbeKRTMjo+Jx7z8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=O/IhOA7m; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=BsvMjynv reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="O/IhOA7m"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="BsvMjynv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1731073814; x=1762609814; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Pw79i7q7e/DZSw3U8kbl0tezb776Kpjc5WLXApNdfFU=; b=O/IhOA7mH9oYiTlNHBBqJwCv5vbPPjABS5eYnwLgmGCdf+LrxjGw+Eok yMRLLECCk1j+O0uMlfeUX5WdM7aq6nJJaom5WTYzzfVkN8s63OTPGqFTk HSF9P9AWV7KXNxMOYeDIqgBxWMnq6XTsia1l6ag/YiotNxEc4PiBviIbK padPBwJHjfoAq9ZeqjJIcCceW9k4GZKx4KJOVs68Z3c/wbSQHDLxW8ksj Rg5veUsvqDITvePdFQAG3emggw/ligZclsiBGA5umQim6zRk1P9wh1WGe xpNLI+SNDMdmIU4LT1UTSkqnY+P8Izfn1fRW9nf60hRwtZc+rYiesPkTD w==; X-CSE-ConnectionGUID: NPvH8mAiR6Cj2k7Yy8qn4A== X-CSE-MsgGUID: wnH/NjH5SnqZiNaRa8xYcQ== X-IronPort-AV: E=Sophos;i="6.12,138,1728943200"; d="scan'208";a="39936935" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 08 Nov 2024 14:50:13 +0100 X-CheckPoint: {672E1715-35-90CD5875-E0265C0B} X-MAIL-CPID: 34381C6652A21CF8C6F764790CF3E0DB_3 X-Control-Analysis: str=0001.0A682F16.672E1716.003E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E07651655C9; Fri, 8 Nov 2024 14:50:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1731073809; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Pw79i7q7e/DZSw3U8kbl0tezb776Kpjc5WLXApNdfFU=; b=BsvMjynvs4PQUPLEKwTggd0gUADAGNR4v+/8IAAInm2y+ds6SDtnbXajvkDBaukqRQr2Ro IlutHWZ+I1X5fIh8xDUWzxNsSS/kgfvghGQeW2aO4aAxVbE3AoB3qwviDtORVZxGilZdKV +NHouin7qHWKby/cNBYr/hq784fkopXVwOVB7lECyCvq78zbOHEDKO0PWFZ4zR35p5NJpe /BT7+j5tTypujzSUivNyWPm1QzqXGzNW/TtCB+/ntcH5Vogn2CUR9HisHF9lCDW5UKKrJe 0EmkLa5cYmdaDLUJ5DF4MhG2zi8TJtpuqLIlybEEQc8Abgt9pOUobwn/XUYoNQ== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Russell King , =?utf-8?q?Jo=C3=A3o_Rodrigues?= , Bruno Thomsen Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] ARM: dts: imx7[d]-mba7: add Ethernet PHY IRQ support Date: Fri, 8 Nov 2024 14:49:25 +0100 Message-Id: <20241108134926.1324626-8-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241108134926.1324626-1-alexander.stein@ew.tq-group.com> References: <20241108134926.1324626-1-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 The regulator-fec*-pwdn regulators were used to deassert the PWDN signal of ethernet PHY, e.g. not powering. This is not necessary as the line has a pull-up already. Instead of the combo pad of the PHY for IRQ support. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 23 ++--------------------- arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts | 3 ++- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi index 304281681abfe..576a7df505d3b 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi @@ -87,26 +87,6 @@ iio-hwmon { <&adc2 0>, <&adc2 1>, <&adc2 2>, <&adc2 3>; }; - reg_fec1_pwdn: regulator-fec1-pwdn { - compatible = "regulator-fixed"; - regulator-name = "PWDN_FEC1"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; - - reg_fec2_pwdn: regulator-fec2-pwdn { - compatible = "regulator-fixed"; - regulator-name = "PWDN_FEC2"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; - reg_usb_otg1_vbus: regulator-usb-otg1-vbus { compatible = "regulator-fixed"; regulator-name = "VBUS_USBOTG1"; @@ -231,7 +211,6 @@ &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet1>; phy-mode = "rgmii-id"; - phy-supply = <®_fec1_pwdn>; phy-handle = <ðphy1_0>; fsl,magic-packet; status = "okay"; @@ -252,6 +231,8 @@ ethphy1_0: ethernet-phy@0 { reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>; reset-assert-us = <1000>; reset-deassert-us = <500>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; }; }; }; diff --git a/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts b/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts index 0443faa3dfae4..e3ee16f1aaa96 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts +++ b/arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts @@ -21,7 +21,6 @@ &fec2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet2>; phy-mode = "rgmii-id"; - phy-supply = <®_fec2_pwdn>; phy-handle = <ðphy2_0>; fsl,magic-packet; status = "okay"; @@ -42,6 +41,8 @@ ethphy2_0: ethernet-phy@0 { reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; reset-assert-us = <1000>; reset-deassert-us = <500>; + interrupt-parent = <&gpio2>; + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; }; }; };