mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
4ac026a937
Add PHY's reset GPIO, so that U-Boot does a PHY hard reset. This is needed, since the PHY might become unresponsive if watchdog reboots the system while a transaction is ongoing. The reset GPIO is added to the U-Boot specific DT files, since the kernel does not setup the reserved registers correctly after resetting the PHY and thus must not reset it. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
49 lines
902 B
Text
49 lines
902 B
Text
// SPDX-License-Identifier: GPL-2.0+ OR X11
|
|
/*
|
|
* Copyright 2019 Collabora Ltd
|
|
* Copyright 2019 General Electric Company
|
|
*/
|
|
|
|
/ {
|
|
bootcount {
|
|
compatible = "u-boot,bootcount-i2c-eeprom";
|
|
i2c-eeprom = <&bootcount>;
|
|
};
|
|
|
|
wdt-reboot {
|
|
compatible = "wdt-reboot";
|
|
wdt = <&wdog1>;
|
|
};
|
|
|
|
panel-lvds0 {
|
|
compatible = "simple-panel";
|
|
};
|
|
};
|
|
|
|
&eeprom {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
vpd@0 {
|
|
reg = <0 800>;
|
|
};
|
|
|
|
bootcount: bootcount {
|
|
reg = <1022 2>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/*
|
|
* This is not done in imx6q-ba16.dtsi, since that file is shared
|
|
* with the kernel and the kernel should not reset the PHY, since
|
|
* it lacks support for configuring the reserved registeres to
|
|
* avoid a board specific voltage peak issue.
|
|
*/
|
|
&fec {
|
|
phy-reset-gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
|
|
phy-reset-duration = <1>;
|
|
phy-reset-post-delay = <0>;
|
|
};
|