]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx7[d]-mba7: add Ethernet PHY IRQ support
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Fri, 8 Nov 2024 13:49:25 +0000 (14:49 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 9 Dec 2024 09:10:24 +0000 (17:10 +0800)
The regulator-fec*-pwdn regulators were used to deassert the PWDN signal
of ethernet PHY, e.g. not powering. This is not necessary as the line
has a pull-up already.
Instead of the combo pad of the PHY for IRQ support.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Markus Niebel <markus.niebel@ew.tq-group.com>
Reviewed-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi
arch/arm/boot/dts/nxp/imx/imx7d-mba7.dts

index 304281681abfe8d12b16aba150db8f2680a130f7..576a7df505d3b93240db6500cd1817d532f73369 100644 (file)
                              <&adc2 0>, <&adc2 1>, <&adc2 2>, <&adc2 3>;
        };
 
-       reg_fec1_pwdn: regulator-fec1-pwdn {
-               compatible = "regulator-fixed";
-               regulator-name = "PWDN_FEC1";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-               regulator-always-on;
-               gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-       };
-
-       reg_fec2_pwdn: regulator-fec2-pwdn {
-               compatible = "regulator-fixed";
-               regulator-name = "PWDN_FEC2";
-               regulator-min-microvolt = <3300000>;
-               regulator-max-microvolt = <3300000>;
-               regulator-always-on;
-               gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
-               enable-active-high;
-       };
-
        reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
                compatible = "regulator-fixed";
                regulator-name = "VBUS_USBOTG1";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet1>;
        phy-mode = "rgmii-id";
-       phy-supply = <&reg_fec1_pwdn>;
        phy-handle = <&ethphy1_0>;
        fsl,magic-packet;
        status = "okay";
                        reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>;
                        reset-assert-us = <1000>;
                        reset-deassert-us = <500>;
+                       interrupt-parent = <&gpio1>;
+                       interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
                };
        };
 };
index 0443faa3dfae48259cbf2ad9bb0a530d72f166e5..e3ee16f1aaa96765fe0ed6b09811c9e75d433d8e 100644 (file)
@@ -21,7 +21,6 @@
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet2>;
        phy-mode = "rgmii-id";
-       phy-supply = <&reg_fec2_pwdn>;
        phy-handle = <&ethphy2_0>;
        fsl,magic-packet;
        status = "okay";
@@ -42,6 +41,8 @@
                        reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
                        reset-assert-us = <1000>;
                        reset-deassert-us = <500>;
+                       interrupt-parent = <&gpio2>;
+                       interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
                };
        };
 };