]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: renesas: r9a06g032-rzn1d400-db: Use interrupts for Micrel PHYs
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 11 Mar 2026 19:59:58 +0000 (20:59 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Mar 2026 10:55:45 +0000 (11:55 +0100)
Make use of the interrupts wired to the Micrel PHYs via the GPIO IRQ
mux.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260311200307.16034-2-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts

index d0956950472c1fde0f02bffd6169af2af16a7aa9..5626d7fd6c3ee82bbb2b974f17e8ad2f816cc4ce 100644 (file)
        };
 };
 
+&gpioirqmux {
+       interrupt-map = <89 &gic GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, /* pin 147: phy@4 */
+                       <91 &gic GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; /* pin 149: phy@5 */
+       status = "okay";
+};
+
+&gpio2 {
+       pinctrl-0 = <&pins_gpio2>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &i2c2 {
        pinctrl-0 = <&pins_i2c2>;
        pinctrl-names = "default";
                bias-disable;
        };
 
+       pins_gpio2: pins-gpio2 {
+               pinmux = <RZN1_PINMUX(147, RZN1_FUNC_GPIO)>,
+                        <RZN1_PINMUX(149, RZN1_FUNC_GPIO)>;
+               drive-strength = <6>;
+               bias-pull-up;
+       };
+
        pins_i2c2: pins-i2c2 {
                pinmux = <RZN1_PINMUX(115, RZN1_FUNC_I2C)>,
                         <RZN1_PINMUX(116, RZN1_FUNC_I2C)>;
                switch0phy4: ethernet-phy@4 {
                        reg = <4>;
                        micrel,led-mode = <1>;
+                       interrupts-extended = <&gpio2a 25 IRQ_TYPE_LEVEL_LOW>;
                };
 
                switch0phy5: ethernet-phy@5 {
                        reg = <5>;
                        micrel,led-mode = <1>;
+                       interrupts-extended = <&gpio2a 27 IRQ_TYPE_LEVEL_LOW>;
                };
        };
 };