Skip to contentSkip to conversation

arm64: dts: imx8mp: Adjust PHY IRQ mode on i.MX8M Plus DHCOM PDK2

PATCH In review Marek Vasut 2 participants 3 messages Jul 23, 2022 – Jul 24, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: imx8mp: Adjust PHY IRQ mode on i.MX8M Plus DHCOM PDK2

Set SION bit and clear ODE and DSE bits for PHY IRQ IOMUXC settings. The SION bit is needed to pass pin state into the SoC, the later are not needed as this is an input pin.

Fixes 8d6712695bc8e ("arm64: dts: imx8mp: Add support for DH electronics i.MX8M Plus DHCOM and PDK2")
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
Cc Peng Fan <[email protected]>
Cc Shawn Guo <[email protected]>

To: [email protected]

---
 arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +1 -1
index d0839b10a4f2b..4262df2905a8d 100644
@@ -793,7 +793,7 @@ pinctrl_ethphy1: dhcom-ethphy1-grp {
 			/* ENET1_#RST Reset */
 			MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02		0x11
 			/* ENET1_#INT Interrupt */
-			MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03		0x11
+			MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03		0x40000000
 		>;
 	};
 
Signature · 7 lines
2.35.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 6 lines

Subject: [PATCH] arm64: dts: imx8mp: Adjust PHY IRQ mode on i.MX8M Plus DHCOM PDK2

Set SION bit and clear ODE and DSE bits for PHY IRQ IOMUXC settings. The SION bit is needed to pass pin state into the SoC, the later are not needed as this is an input pin.

As I recall, only I2C needs set SION. Have you configure the GPIO as input?

Regards
Peng.

Quoted 31 lines
Fixes 8d6712695bc8e ("arm64: dts: imx8mp: Add support for DH electronics

i.MX8M Plus DHCOM and PDK2")

Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>
Cc Peng Fan <[email protected]>
Cc Shawn Guo <[email protected]>

To: [email protected]

---
 arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +1 -1
index d0839b10a4f2b..4262df2905a8d 100644
@@ -793,7 +793,7 @@ pinctrl_ethphy1: dhcom-ethphy1-grp {
 			/* ENET1_#RST Reset */
 			MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02
 	0x11
 			/* ENET1_#INT Interrupt */
-			MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03
 	0x11
+			MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03
 	0x40000000
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0 -1
 		>;
 	};
 
--
Quoted 1 line

2.35.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 8 lines · Peng Fan
Quoted 6 lines

Subject: [PATCH] arm64: dts: imx8mp: Adjust PHY IRQ mode on i.MX8M Plus DHCOM PDK2

Set SION bit and clear ODE and DSE bits for PHY IRQ IOMUXC settings. The SION bit is needed to pass pin state into the SoC, the later are not needed as this is an input pin.

As I recall, only I2C needs set SION. Have you configure the GPIO as input?

You're right, I think these two are the right fix for this problem:

https://lore.kernel.org/linux-gpio/[email protected]/
https://lore.kernel.org/linux-gpio/[email protected]/

Please drop this patch.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel