Skip to contentSkip to conversation

sa8775p-ride: Describe ethernet phy IRQs

PATCH Applied Andrew Halaney 4 participants 8 messages Aug 17, 2023 – Sep 20, 2023

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

cover sa8775p-ride: Describe ethernet phy IRQs

Now that the hardware can detect the IRQs, let's describe them instead of polling the phys

Andrew Halaney (2):
arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq
arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq

 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.41.0
#1 lore raw

PATCH 1/2 arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Now that the IRQ is properly routed we can describe it.

---
 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sa8775p-ride.dts +1 -0
index 81a7eeb9cfcd..8fde6935cd6e 100644
@@ -285,6 +285,7 @@ sgmii_phy0: phy@8 {
 			compatible = "ethernet-phy-id0141.0dd4";
 			reg = <0x8>;
 			device_type = "ethernet-phy";
+			interrupts-extended = <&tlmm 7 IRQ_TYPE_EDGE_FALLING>;
 			reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>;
 			reset-assert-us = <11000>;
 			reset-deassert-us = <70000>;
Signature · 1 line
2.41.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq

Quoted 8 lines · Andrew Halaney

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Quoted 4 lines

Now that the IRQ is properly routed we can describe it.

---

Konrad

Reviewed-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq

In reply to Andrew Halaney
Quoted 29 lines · Andrew Halaney

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Now that the IRQ is properly routed we can describe it.

---
 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sa8775p-ride.dts +1 -1
index 81a7eeb9cfcd..8fde6935cd6e 100644
@@ -285,6 +285,7 @@ sgmii_phy0: phy@8 {
                        compatible = "ethernet-phy-id0141.0dd4";
                        reg = <0x8>;
                        device_type = "ethernet-phy";
+                       interrupts-extended = <&tlmm 7 IRQ_TYPE_EDGE_FALLING>;
                        reset-gpios = <&pmm8654au_2_gpios 8 GPIO_ACTIVE_LOW>;
                        reset-assert-us = <11000>;
                        reset-deassert-us = <70000>;
--
Quoted 2 lines

2.41.0

Nice!

#4 lore raw

PATCH 2/2 arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq

In reply to Andrew Halaney

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Now that the IRQ is properly routed we can describe it.

---
 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sa8775p-ride.dts +1 -0
index 8fde6935cd6e..9760bb4b468c 100644
@@ -295,6 +295,7 @@ sgmii_phy1: phy@a {
 			compatible = "ethernet-phy-id0141.0dd4";
 			reg = <0xa>;
 			device_type = "ethernet-phy";
+			interrupts-extended = <&tlmm 26 IRQ_TYPE_EDGE_FALLING>;
 			reset-gpios = <&pmm8654au_2_gpios 9 GPIO_ACTIVE_LOW>;
 			reset-assert-us = <11000>;
 			reset-deassert-us = <70000>;
Signature · 1 line
2.41.0
Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq

Quoted 8 lines · Andrew Halaney

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Quoted 4 lines

Now that the IRQ is properly routed we can describe it.

---

Konrad

Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH 2/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq

In reply to Andrew Halaney
Quoted 29 lines · Andrew Halaney

There's an irq hooked up, so let's describe it.

Prior to commit 9757300d2750
("pinctrl: qcom: Add intr_target_width field to support increased number of interrupt targets") one would not see the IRQ fire, despite some (invasive) debugging
showing that the GPIO was in fact asserted, resulting in the interface
staying down.

Now that the IRQ is properly routed we can describe it.

---
 arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sa8775p-ride.dts +1 -1
index 8fde6935cd6e..9760bb4b468c 100644
@@ -295,6 +295,7 @@ sgmii_phy1: phy@a {
                        compatible = "ethernet-phy-id0141.0dd4";
                        reg = <0xa>;
                        device_type = "ethernet-phy";
+                       interrupts-extended = <&tlmm 26 IRQ_TYPE_EDGE_FALLING>;
                        reset-gpios = <&pmm8654au_2_gpios 9 GPIO_ACTIVE_LOW>;
                        reset-assert-us = <11000>;
                        reset-deassert-us = <70000>;
--
Quoted 2 lines

2.41.0

maintainer Applied
#7 lore raw
In reply to Andrew Halaney
Quoted 8 lines · Andrew Halaney

Now that the hardware can detect the IRQs, let's describe them instead of polling the phys

Andrew Halaney (2):
arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq
arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq

[...]

Applied, thanks!

[1/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy0 irq

      commit: 1ff6569b0ffe7a2e311104cb3cd841983e484ac9
[2/2] arm64: dts: qcom: sa8775p-ride: Describe sgmii_phy1 irq
      commit: 454557d0032d088b4f467f0c541f98edb01fe431

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>