diff mbox series

ARM: dts: imx6qdl-dhcom: Identify the PHY by ethernet-phy-id0007.c0f0

Message ID 20211208150726.10695-1-cniedermaier@dh-electronics.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: imx6qdl-dhcom: Identify the PHY by ethernet-phy-id0007.c0f0 | expand

Commit Message

Christoph Niedermaier Dec. 8, 2021, 3:07 p.m. UTC
Identify the PHY by its compatible ID value. In some cases during
boot, the PHY needs to be reset to be accessible, but this is only
possible if the PHY is recognized. In that case, the automatic
detection of the PHY does not work and a static compatible ID
value is need.

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: kernel@dh-electronics.com
To: linux-arm-kernel@lists.infradead.org
---
 arch/arm/boot/dts/imx6qdl-dhcom-som.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Fabio Estevam Dec. 8, 2021, 5:37 p.m. UTC | #1
On Wed, Dec 8, 2021 at 12:09 PM Christoph Niedermaier
<cniedermaier@dh-electronics.com> wrote:
>
> Identify the PHY by its compatible ID value. In some cases during
> boot, the PHY needs to be reset to be accessible, but this is only
> possible if the PHY is recognized. In that case, the automatic
> detection of the PHY does not work and a static compatible ID
> value is need.
>
> Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: NXP Linux Team <linux-imx@nxp.com>
> Cc: kernel@dh-electronics.com
> To: linux-arm-kernel@lists.infradead.org

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Shawn Guo Dec. 14, 2021, 8:30 a.m. UTC | #2
On Wed, Dec 08, 2021 at 04:07:26PM +0100, Christoph Niedermaier wrote:
> Identify the PHY by its compatible ID value. In some cases during
> boot, the PHY needs to be reset to be accessible, but this is only
> possible if the PHY is recognized. In that case, the automatic
> detection of the PHY does not work and a static compatible ID
> value is need.
> 
> Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: NXP Linux Team <linux-imx@nxp.com>
> Cc: kernel@dh-electronics.com
> To: linux-arm-kernel@lists.infradead.org

Applied, thanks!
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6qdl-dhcom-som.dtsi b/arch/arm/boot/dts/imx6qdl-dhcom-som.dtsi
index 5d10c40313cb..cbbdfe0cb1fd 100644
--- a/arch/arm/boot/dts/imx6qdl-dhcom-som.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-dhcom-som.dtsi
@@ -132,7 +132,8 @@ 
 		#size-cells = <0>;
 
 		ethphy0: ethernet-phy@0 { /* SMSC LAN8710Ai */
-			compatible = "ethernet-phy-ieee802.3-c22";
+			compatible = "ethernet-phy-id0007.c0f0",
+				     "ethernet-phy-ieee802.3-c22";
 			interrupt-parent = <&gpio4>;
 			interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
 			pinctrl-0 = <&pinctrl_ethphy0>;