From 8561c1f5a388101dfa0d4e17b444cdd01c5f5e3d Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 22 Jan 2024 19:12:51 +0800
Subject: [PATCH] Update linux kernel patch to support TF card

---
 kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch |   26 ++++++++++----------------
 1 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch b/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch
index c6646b7..ad20784 100644
--- a/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch
+++ b/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch
@@ -10,12 +10,13 @@
 +dtb-$(CONFIG_ARCH_MXC) += igkboard-imx8mp.dtb
 diff --git a/arch/arm64/boot/dts/freescale/igkboard-imx8mp.dts b/arch/arm64/boot/dts/freescale/igkboard-imx8mp.dts
 new file mode 100644
-index 000000000..cddc94704
+index 000000000..db5ecf4a3
 --- /dev/null
 +++ b/arch/arm64/boot/dts/freescale/igkboard-imx8mp.dts
-@@ -0,0 +1,475 @@
+@@ -0,0 +1,469 @@
 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-+/*
++/* 
++ * Device Tree Source for LingYun IGKBoard(IoT Gateway Kits Board) - imx8mp
 + * Copyright 2023 LingYun IoT System Studio.
 + */
 +
@@ -31,16 +32,15 @@
 +    model = "LingYun IoT Gateway Kits Board based on i.MX8MP";
 +    compatible = "lingyun,igkboard-imx8mp", "fsl,imx8mp";
 +
-+    /* console and bootargs */
++    /* console */
 +    chosen {
-+        bootargs = "console=ttymxc1,115200 earlycon=ec_imx6q,0x30890000,115200";
 +        stdout-path = &uart2;
 +    };
 +
 +    /* MT53D512M32D2DS-053 WT:D, 2GB LPDDR4 */
 +    memory@80000000 {
 +        device_type = "memory";
-+        reg = <0x0 0x80000000 0 0x80000000>;
++        reg = <0x0 0x80000000 0 0x40000000>;
 +    };
 +
 +    leds {
@@ -52,7 +52,7 @@
 +        sysled {
 +            label = "sysled";
 +            gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
-+            default-state = "on";
++            default-state = "heartbeat";
 +        };
 +    };
 +};
@@ -166,14 +166,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";
@@ -183,22 +182,19 @@
 +    };
 +};
 +
-+/* Second 1000Mbps Ethernet on ENET1 */
++/* Second 1000Mbps Ethernet on ENET1, test okay */
 +&fec {
 +    pinctrl-names = "default";
 +    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";
@@ -465,7 +461,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
 +        >;
 +    };
 +
@@ -485,7 +480,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