mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
ARM: dts: imx7[d]-mba7: add Ethernet PHY IRQ support
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>
This commit is contained in:
parent
c0a0fdcd62
commit
d78a518e77
|
|
@ -87,26 +87,6 @@ iio-hwmon {
|
|||
<&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";
|
||||
|
|
@ -231,7 +211,6 @@ &fec1 {
|
|||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_enet1>;
|
||||
phy-mode = "rgmii-id";
|
||||
phy-supply = <®_fec1_pwdn>;
|
||||
phy-handle = <ðphy1_0>;
|
||||
fsl,magic-packet;
|
||||
status = "okay";
|
||||
|
|
@ -252,6 +231,8 @@ ethphy1_0: ethernet-phy@0 {
|
|||
reset-gpios = <&gpio7 15 GPIO_ACTIVE_LOW>;
|
||||
reset-assert-us = <1000>;
|
||||
reset-deassert-us = <500>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ &fec2 {
|
|||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_enet2>;
|
||||
phy-mode = "rgmii-id";
|
||||
phy-supply = <®_fec2_pwdn>;
|
||||
phy-handle = <ðphy2_0>;
|
||||
fsl,magic-packet;
|
||||
status = "okay";
|
||||
|
|
@ -42,6 +41,8 @@ ethphy2_0: ethernet-phy@0 {
|
|||
reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
|
||||
reset-assert-us = <1000>;
|
||||
reset-deassert-us = <500>;
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user