]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM64: dts: meson: add comments with the GPIO for the PHY interrupts
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 2 Dec 2017 21:40:36 +0000 (22:40 +0100)
committerKevin Hilman <khilman@baylibre.com>
Fri, 8 Dec 2017 18:46:33 +0000 (10:46 -0800)
Currently one has to look/calculate the GPIO for the PHY interrupts
manually. Add a comment for the existing PHY interrupt lines to make it
easier to find out which GPIO is used.
This is done using the following calculation:
- number of GPIO AO pins (14 on GXBB: GPIOAO_0..13)
- add the offset of the pin which is used for the interrupt (for example
  GPIOZ_15 = 15 on Odroid-C2)

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-By: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts
arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts

index 4a4251001bfd51d0bfe0e514f6cfc70c5d9c81fd..011e8e08e429b077a837a5679bfa1f221032c5e2 100644 (file)
                        /* Realtek RTL8211F (0x001cc916) */
                        reg = <0>;
                        interrupt-parent = <&gpio_intc>;
+                       /* MAC_INTR on GPIOZ_15 */
                        interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
                };
        };
index d6d3af5eaf553ba96b4b83f893fa81f667b5bbc8..ee4ada61c59cf583ae87b0ff85ba9a87788ad002 100644 (file)
                #size-cells = <0>;
 
                eth_phy0: ethernet-phy@0 {
+                       /* Realtek RTL8211F (0x001cc916) */
                        reg = <0>;
                        interrupt-parent = <&gpio_intc>;
+                       /* MAC_INTR on GPIOZ_15 */
                        interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
                        eee-broken-1000t;
                };
index 9bf16bb7c491bc08fd64456e6039dd91146ef51f..09f34f7ef0845a3561e7d5e2b3b908f33f7e36da 100644 (file)
                        /* Micrel KSZ9031 (0x00221620) */
                        reg = <3>;
                        interrupt-parent = <&gpio_intc>;
+                       /* MAC_INTR on GPIOZ_15 */
                        interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
                };
        };
index 66c6da7e112cfa5dba59039707e9f92ea1a1b486..9847fce443a859dd5b165ea942f3495304a82942 100644 (file)
                reg = <0>;
                max-speed = <1000>;
                interrupt-parent = <&gpio_intc>;
+               /* MAC_INTR on GPIOH_3 */
                interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
        };
 };