Skip to contentSkip to conversation

ARM: dts: at91: sama5d2 Xplained: Correct the macb irq pinctrl node

PATCH In review Romain Izard 3 participants 3 messages Feb 18, 2016 – Mar 1, 2016

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

PATCH 1/1 ARM: dts: at91: sama5d2 Xplained: Correct the macb irq pinctrl node

All pinctrl nodes for the Atmel pinctrl controller need to have their bias configuration explicitly defined. Otherwise, the pinctrl mapping is not valid.

It works for now as the pinctrl driver proceeds even with invalid mappings, but this can become an issue, if the pinctrl driver starts to require valid mappings. Additionally, the pin is not protected from being remapped later by an other driver.

There is an external 1k? pull-up to 3.3V, so no bias is required on the Ethernet PHY's interrupt line.

---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -0
index e683856c507c..75341eec2dfd 100644
@@ -308,6 +308,7 @@
 
 				pinctrl_macb0_phy_irq: macb0_phy_irq {
 					pinmux = <PIN_PC9__GPIO>;
+					bias-disable;
 				};
 
 				pinctrl_pdmic_default: pdmic_default {
Signature · 1 line
2.5.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Romain Izard

All pinctrl nodes for the Atmel pinctrl controller need to have their bias configuration explicitly defined. Otherwise, the pinctrl mapping is not valid.

It works for now as the pinctrl driver proceeds even with invalid mappings, but this can become an issue, if the pinctrl driver starts to require valid mappings. Additionally, the pin is not protected from being remapped later by an other driver.

Quoted 4 lines

There is an external 1kΩ pull-up to 3.3V, so no bias is required on the Ethernet PHY's interrupt line.

Thanks

Quoted 23 lines
---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -0
index e683856c507c..75341eec2dfd 100644
@@ -308,6 +308,7 @@
 
 				pinctrl_macb0_phy_irq: macb0_phy_irq {
 					pinmux = <PIN_PC9__GPIO>;
+					bias-disable;
 				};
 
 				pinctrl_pdmic_default: pdmic_default {
Signature · 6 lines
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 1/1
#2 lore raw
In reply to Romain Izard
Quoted 9 lines · Romain Izard

All pinctrl nodes for the Atmel pinctrl controller need to have their bias configuration explicitly defined. Otherwise, the pinctrl mapping is not valid.

It works for now as the pinctrl driver proceeds even with invalid mappings, but this can become an issue, if the pinctrl driver starts to require valid mappings. Additionally, the pin is not protected from being remapped later by an other driver.

Quoted 4 lines

There is an external 1kΩ pull-up to 3.3V, so no bias is required on the Ethernet PHY's interrupt line.

And queued on at91-4.5-dt.

Thanks! Bye,

Quoted 17 lines
---
 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -0
index e683856c507c..75341eec2dfd 100644
@@ -308,6 +308,7 @@
 
 				pinctrl_macb0_phy_irq: macb0_phy_irq {
 					pinmux = <PIN_PC9__GPIO>;
+					bias-disable;
 				};
 
 				pinctrl_pdmic_default: pdmic_default {
Signature · 5 lines
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html