mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-28 13:53:44 +09:00
![Harald Seiler](/assets/img/avatar_default.png)
Use DM_ETH instead of legacy networking. Add VIO as a fixed regulator to the relevant device-trees and augment the FEC node with properties for the reset GPIO. It should be noted that the relevant properties for the reset GPIO already exist in the PHY node (reset-gpios, reset-delay-us, reset-post-delay-us) but U-Boot currently ignores those and only supports the bus-level reset properties in the FEC node (phy-reset-gpios, phy-reset-duration, phy-reset-post-delay). Signed-off-by: Harald Seiler <hws@denx.de>
22 lines
378 B
Plaintext
22 lines
378 B
Plaintext
// SPDX-License-Identifier: (GPL-2.0+)
|
|
/*
|
|
* Copyright (C) 2020 Harald Seiler <hws@denx.de>
|
|
*/
|
|
|
|
/ {
|
|
fec_vio: regulator-fec {
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "fec-vio";
|
|
gpio = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
&fec {
|
|
phy-reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
|
|
phy-reset-duration = <1>;
|
|
phy-reset-post-delay = <10>;
|
|
|
|
phy-supply = <&fec_vio>;
|
|
};
|