Skip to contentSkip to conversation

Add IRQ support for ethernet PHY on SAM9X60 boards

PATCH Applied Mihai Sain 2 participants 4 messages Nov 9, 2023 – Nov 20, 2023

Subsystems (2)
lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

cover Add IRQ support for ethernet PHY on SAM9X60 boards

Add IRQ support for ethernet PHY on SAM9X60-Curiosity board. Add IRQ support for ethernet PHY on SAM9X60-EK board.

Mihai Sain (2):
ARM: dts: at91: sam9x60_curiosity: Add IRQ support for ethernet PHY
ARM: dts: at91: sam9x60ek: Add IRQ support for ethernet PHY

 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 3 +++
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts         | 3 +++
 2 files changed, 6 insertions(+)
Signature · 1 line
2.42.0
author
#1 lore raw

PATCH 1/2 ARM: dts: at91: sam9x60_curiosity: Add IRQ support for ethernet PHY

Add interrupt support for ethernet phy subnode.
Add PB8 definition to macb0 pinctrl.

---
 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts +3 -0
index 83372c1f291b..c6fbdd29019f 100644
@@ -249,6 +249,8 @@ &macb0 {
 
 	ethernet-phy@0 {
 		reg = <0x0>;
+		interrupt-parent = <&pioB>;
+		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
 	};
 };
 
@@ -353,6 +355,7 @@ AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
 				 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB5 periph A */
 				 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
 				 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
+				 AT91_PIOB 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE	/* PB8 IRQ GPIO */
 				 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
 				 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A */
 		};
Signature · 1 line
2.42.0
author
#2 lore raw

PATCH 2/2 ARM: dts: at91: sam9x60ek: Add IRQ support for ethernet PHY

In reply to Mihai Sain

Add interrupt support for ethernet phy subnode.
Add PB8 definition to macb0 pinctrl.

---
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x60ek.dts +3 -0
index 5cd593028aff..f3cbb675cea4 100644
@@ -292,6 +292,8 @@ &macb0 {
 
 	ethernet-phy@0 {
 		reg = <0x0>;
+		interrupt-parent = <&pioB>;
+		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
 	};
 };
 
@@ -465,6 +467,7 @@ AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
 				 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB5 periph A */
 				 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
 				 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
+				 AT91_PIOB 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE	/* PB8 IRQ GPIO */
 				 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
 				 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A */
 		};
Signature · 1 line
2.42.0
maintainer Applied
#3 lore raw
In reply to Mihai Sain
Quoted 11 lines · Mihai Sain

Add IRQ support for ethernet PHY on SAM9X60-Curiosity board. Add IRQ support for ethernet PHY on SAM9X60-EK board.

Mihai Sain (2):
ARM: dts: at91: sam9x60_curiosity: Add IRQ support for ethernet PHY
ARM: dts: at91: sam9x60ek: Add IRQ support for ethernet PHY

 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts | 3 +++
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts         | 3 +++
 2 files changed, 6 insertions(+)

Applied to at91-dt, thanks!

Please note that I've changed the commits' titles as follows:

s/ARM: dts: at91/ARM: dts: microchip/g

to cope with the new microchip directory for DTSes. Please let me know if you consider there are any issues with this.

Thank you,
Claudiu Beznea