diff mbox

[2/2] ARM64: dts: meson-gxm: add the PHY interrupt line on Khadas VIM2

Message ID 20171202214037.17017-3-martin.blumenstingl@googlemail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Martin Blumenstingl Dec. 2, 2017, 9:40 p.m. UTC
The INTB/PMEB pin of the RTL8211F PHY on the Khadas VIM2 is routed to
GPIOZ_15. Add the corresponding interrupt using the GPIO interrupt
controller so the PHY framework doesn't have to poll the PHY for it's
status.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jerome Brunet Dec. 4, 2017, 9:43 a.m. UTC | #1
On Sat, 2017-12-02 at 22:40 +0100, Martin Blumenstingl wrote:
> The INTB/PMEB pin of the RTL8211F PHY on the Khadas VIM2 is routed to
> GPIOZ_15. Add the corresponding interrupt using the GPIO interrupt
> controller so the PHY framework doesn't have to poll the PHY for it's
> status.
> 

Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
index 34a41b26a4ed..5c2bc2989519 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
@@ -232,6 +232,9 @@ 
 	external_phy: ethernet-phy@0 {
 		/* Realtek RTL8211F (0x001cc916) */
 		reg = <0>;
+		interrupt-parent = <&gpio_intc>;
+		/* MAC_INTR on GPIOZ_15 */
+		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
 	};
 };