ARM: dts: meson8b: ec100: enable the Ethernet PHY interrupt
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 18 Jan 2019 23:43:37 +0000 (00:43 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 11 Feb 2019 20:52:26 +0000 (12:52 -0800)
The INTR32 pin of the IP101GR Ethernet PHY is routed to the GPIOH_3 pad
on the SoC.
Enable the interrupt function of the PHY's INTR32 pin to switch it from
it's default "receive error" mode to "interrupt pin" mode.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b-ec100.dts

index 0cebe84..74b726f 100644 (file)
                eth_phy0: ethernet-phy@0 {
                        /* IC Plus IP101A/G (0x02430c54) */
                        reg = <0>;
+                       icplus,select-interrupt;
+                       interrupt-parent = <&gpio_intc>;
+                       /* GPIOH_3 */
+                       interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
                };
        };
 };