mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
ARM: dts: sunxi: Add a startup delay for fixed regulator enabled phys
It seems that recent kernels have a shorter timeout when scanning for ethernet phys causing us to hit a timeout on boards where the phy's regulator gets enabled just before scanning, which leads to non working ethernet. A 10ms startup delay seems to be enough to fix it, this commit adds a 20ms startup delay just to be safe. This has been tested on a sun4i-a10-a1000 and sun5i-a10s-wobo-i5 board, both of which have non-working ethernet on recent kernels without this fix. Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
committed by
Maxime Ripard
parent
1f241993d4
commit
fc51b632c7
@@ -84,6 +84,7 @@
|
|||||||
regulator-name = "emac-3v3";
|
regulator-name = "emac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <20000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
|
gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
regulator-name = "emac-3v3";
|
regulator-name = "emac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <20000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>;
|
gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
regulator-name = "emac-3v3";
|
regulator-name = "emac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <20000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
|
gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>; /* PH19 */
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -79,6 +79,7 @@
|
|||||||
regulator-name = "emac-3v3";
|
regulator-name = "emac-3v3";
|
||||||
regulator-min-microvolt = <3300000>;
|
regulator-min-microvolt = <3300000>;
|
||||||
regulator-max-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
||||||
|
startup-delay-us = <20000>;
|
||||||
enable-active-high;
|
enable-active-high;
|
||||||
gpio = <&pio 0 2 GPIO_ACTIVE_HIGH>;
|
gpio = <&pio 0 2 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user