]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: dts: imx: Simplify fec node for iMX6QDL DHCOM boards
authorPhilip Oberfichtner <pro@denx.de>
Fri, 20 May 2022 08:46:23 +0000 (10:46 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 20 May 2022 10:36:49 +0000 (12:36 +0200)
Firstly the FEC can now use the regulator reg_eth_vio from
imx6qdl-dhcom-som.dtsi instead of defining its own.

Secondly the &fec node is moved to the more generic SoM device tree
file, because it can be used by multiple boards.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Philip Oberfichtner <pro@denx.de>
arch/arm/dts/imx6qdl-dhcom-pdk2-u-boot.dtsi
arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi

index a1ffb1d6fc55e5d2dee13707481c7999c307a580..0673c21e3c3ac36cf8cd236c8430766a0a0ca237 100644 (file)
@@ -5,19 +5,6 @@
 
 #include "imx6qdl-dhcom-u-boot.dtsi"
 
-/ {
-       fec_vio: regulator-fec {
-               compatible = "regulator-fixed";
-
-               regulator-name = "fec-vio";
-               gpio = <&gpio1 7 GPIO_ACTIVE_LOW>;
-       };
-};
-
 &fec {
        phy-reset-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
-       phy-reset-duration = <1>;
-       phy-reset-post-delay = <10>;
-
-       phy-supply = <&fec_vio>;
 };
index 91545ab6e91bd6f227cb73b86b88f9617fb80ffa..190567ab7ba19718af28013813c3d6479d936af6 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: (GPL-2.0+)
 /*
  * Copyright (C) 2020 Harald Seiler <hws@denx.de>
+ * Copyright (C) 2022 Philip Oberfichtner <pro@denx.de>
  */
 
 / {
@@ -9,6 +10,12 @@
        };
 };
 
+&fec {
+       phy-reset-duration = <1>;
+       phy-reset-post-delay = <10>;
+       phy-supply = <&reg_eth_vio>;
+};
+
 &i2c3 {
        eeprom0: eeprom@50 {
        };