[PATCH 0/2] Ethernet PHY interrupt improvements

Jerome Brunet jbrunet at baylibre.com
Sun Dec 3 06:16:57 PST 2017


On Sat, 2017-12-02 at 22:40 +0100, Martin Blumenstingl wrote:
> this small series consists of two patches:
> #1 documents the GPIO to which the PHY's interrupt line is connected
>    (the name "MAC_INTR" is used in the schematics of Odroid-C2 and
>     Khadas VIM2)
> #2 adds the RTL8211F PHY's interrupt line on Khadas VIM2
> 
> I was a bit surprised to see that the GXM Q200 board seems to use
> GPIOH_3 instead of GPIOZ_15 like all other boards.
> @Jerome: could you please check if GPIOH_3 is correct or if it's
> a "copy-and-paste" issue (Q200 is the only GXL/GXM based board.
> GXL/GXM SoCs have fewer GPIOAO pins than GXBB, so the interrupt
> offset for the same non-GPIOAO pin is different than on GXBB)

Good catch, I confirm that the interrupt in GPIOZ_15 and certainly not GPIOH_3

> 
> compile-tested: all boards
> runtime tested: Khadas VIM2 (unplugging / plugging the Ethernet
> cable increases the interrupt counter in /proc/interrupts and the
> kernel correctly reports that the cable has been {un,}plugged)
> 
> 
> Martin Blumenstingl (2):
>   ARM64: dts: meson: add comments with the GPIO for the PHY interrupts
>   ARM64: dts: meson-gxm: add the PHY interrupt line on Khadas VIM2
> 
>  arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts  | 1 +
>  arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts   | 2 ++
>  arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts       | 1 +
>  arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 3 +++
>  arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts        | 1 +
>  5 files changed, 8 insertions(+)
> 




More information about the linux-amlogic mailing list