From 281a7fcd5924e749a96967393828421caea68e93 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 22 Dec 2023 18:59:19 +0800
Subject: [PATCH] Add meta-igkboard for igkboard-imx8mp in yocto

---
 bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch b/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch
index 3b10232..7d3a65b 100644
--- a/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch
+++ b/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch
@@ -116,10 +116,10 @@
 +};
 diff --git a/arch/arm/dts/igkboard-imx8mp.dts b/arch/arm/dts/igkboard-imx8mp.dts
 new file mode 100644
-index 00000000..cddc9470
+index 00000000..8d99dfad
 --- /dev/null
 +++ b/arch/arm/dts/igkboard-imx8mp.dts
-@@ -0,0 +1,475 @@
+@@ -0,0 +1,469 @@
 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 +/*
 + * Copyright 2023 LingYun IoT System Studio.
@@ -272,14 +272,13 @@
 +    pinctrl-0 = <&pinctrl_eqos>;
 +    phy-mode = "rgmii-id";
 +    phy-handle = <&ethphy0>;
-+    snps,reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
-+    snps,reset-delays-us = <100000 200000 150000>;
 +    status = "okay";
 +
 +    mdio {
 +        compatible = "snps,dwmac-mdio";
 +        #address-cells = <1>;
 +        #size-cells = <0>;
++        clock-frequency = <5000000>;
 +
 +        ethphy0: ethernet-phy@0 { /* YT8521SH-CA */
 +            compatible = "ethernet-phy-ieee802.3-c22";
@@ -295,16 +294,13 @@
 +    pinctrl-0 = <&pinctrl_fec>;
 +    phy-mode = "rgmii-id";
 +    phy-handle = <&ethphy1>;
-+    phy-reset-duration = <200>;
-+    phy-reset-post-delay = <150>;
-+    phy-reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
-+
 +    fsl,magic-packet;
 +    status = "okay";
 +
 +    mdio {
 +        #address-cells = <1>;
 +        #size-cells = <0>;
++        clock-frequency = <5000000>;
 +
 +        ethphy1: ethernet-phy@0 { /* YT8521SH-CA */
 +            compatible = "ethernet-phy-ieee802.3-c22";
@@ -571,7 +567,6 @@
 +            MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3                   0x16
 +            MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL             0x16
 +            MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK   0x16
-+            MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06                         0x22
 +        >;
 +    };
 +
@@ -591,7 +586,6 @@
 +            MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3                     0x16
 +            MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL                  0x16
 +            MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC                     0x16
-+            MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01                         0x11
 +        >;
 +    };
 +};

--
Gitblit v1.9.1