guowenxue
2024-01-24 7872cac47a9e9a9a1044835cc7c7a674e050d634
kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch
@@ -10,10 +10,10 @@
+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..db5ecf4a3
index 000000000..02267ac4d
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/igkboard-imx8mp.dts
@@ -0,0 +1,469 @@
@@ -0,0 +1,531 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/* 
+ * Device Tree Source for LingYun IGKBoard(IoT Gateway Kits Board) - imx8mp
@@ -52,7 +52,57 @@
+        sysled {
+            label = "sysled";
+            gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
+            default-state = "heartbeat";
+            default-state = "on";
+            linux,default-trigger = "heartbeat";
+        };
+
+        ledred {
+            label = "redled";
+            gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
+            default-state = "off";
+        };
+
+        ledgreen {
+            label = "greenled";
+            gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
+            default-state = "off";
+        };
+
+        ledblue {
+            label = "blueled";
+            gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+            default-state = "on";
+        };
+    };
+
+    keys {
+        compatible = "gpio-keys";
+        pinctrl-names = "default";
+        pinctrl-0 = <&pinctrl_keys>;
+        status = "okay";
+
+        key1 {
+            label = "K1";
+            gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
+            linux,code = <BTN_1>;
+        };
+
+        key2 {
+            label = "K2";
+            gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
+            linux,code = <BTN_2>;
+        };
+
+        key3 {
+            label = "K3";
+            gpios = <&gpio5 26 GPIO_ACTIVE_LOW>;
+            linux,code = <BTN_3>;
+        };
+
+        key4 {
+            label = "K4";
+            gpios = <&gpio5 27 GPIO_ACTIVE_LOW>;
+            linux,code = <BTN_4>;
+        };
+    };
+};
@@ -319,6 +369,18 @@
+    pinctrl_leds: ledsgrp {
+        fsl,pins = <
+            MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16                       0x140
+            MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14                         0x140
+            MX8MP_IOMUXC_GPIO1_IO09__GPIO1_IO09                         0x140
+            MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21                          0x140
+        >;
+    };
+
+    pinctrl_keys: keysgrp {
+        fsl,pins = <
+            MX8MP_IOMUXC_ECSPI1_MISO__GPIO5_IO08                        0x140
+            MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09                         0x140
+            MX8MP_IOMUXC_UART3_RXD__GPIO5_IO26                          0x140
+            MX8MP_IOMUXC_UART3_TXD__GPIO5_IO27                          0x140
+        >;
+    };
+