Skip to contentSkip to conversation

board: imx8mm: Add Engicam i.Core MX8M Mini SoM

PATCH Superseded Jagan Teki 4 participants 11 messages Mar 15, 2021 – Apr 8, 2021

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

v2 cover board: imx8mm: Add Engicam i.Core MX8M Mini SoM

Patch series for Engicam i.Core MX8M Mini SOM and it's associated carrier board dts(i) support.

patch 1-2: add imx8mm-u-boot.dtsi, header improvement code

patch 3: Engicam i.Core MX8M Mini SoM dts

patch 4-5: EDIMM2.2, C.TOUCH 2.0 Carrier boards

Changes for v2:
- add Linux commit sha1 in commit messages.

Any inputs?
Jagan.

Jagan Teki (5):
arm64: dts: imx8mm: Add common -u-boot.dtsi
configs: Add imx8mm-common header
arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM
board: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit
board: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

 arch/arm/dts/Makefile                         |    2 +
 arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi    |   37 +-
 arch/arm/dts/imx8mm-evk-u-boot.dtsi           |   37 +-
 .../imx8mm-icore-mx8mm-ctouch2-u-boot.dtsi    |   31 +
 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2.dts   |   97 +
 .../imx8mm-icore-mx8mm-edimm2.2-u-boot.dtsi   |   31 +
 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2.dts  |   97 +
 arch/arm/dts/imx8mm-icore-mx8mm-u-boot.dtsi   |   27 +
 arch/arm/dts/imx8mm-icore-mx8mm.dtsi          |  232 +++
 arch/arm/dts/imx8mm-u-boot.dtsi               |   39 +
 arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi |   35 +-
 arch/arm/dts/imx8mm-venice-u-boot.dtsi        |   37 +-
 arch/arm/dts/imx8mm-verdin-u-boot.dtsi        |   38 +-
 arch/arm/dts/phycore-imx8mm-u-boot.dtsi       |   37 +-
 arch/arm/mach-imx/imx8m/Kconfig               |   19 +
 board/engicam/imx8mm/Kconfig                  |   14 +
 board/engicam/imx8mm/MAINTAINERS              |   13 +
 board/engicam/imx8mm/Makefile                 |   12 +
 board/engicam/imx8mm/icore_mx8mm.c            |   85 +
 board/engicam/imx8mm/lpddr4_timing.c          | 1846 +++++++++++++++++
 board/engicam/imx8mm/spl.c                    |  101 +
 configs/imx8mm-icore-mx8mm-ctouch2_defconfig  |   92 +
 configs/imx8mm-icore-mx8mm-edimm2.2_defconfig |   92 +
 include/configs/imx8mm-common.h               |   48 +
 include/configs/imx8mm_beacon.h               |   48 +-
 include/configs/imx8mm_evk.h                  |   45 +-
 include/configs/imx8mm_icore_mx8mm.h          |   58 +
 include/configs/imx8mm_venice.h               |   46 +-
 include/configs/phycore_imx8mm.h              |   43 +-
 include/configs/verdin-imx8mm.h               |   42 +-
 30 files changed, 2968 insertions(+), 413 deletions(-)
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2.dts
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2.dts
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm.dtsi
 create mode 100644 arch/arm/dts/imx8mm-u-boot.dtsi
 create mode 100644 board/engicam/imx8mm/Kconfig
 create mode 100644 board/engicam/imx8mm/MAINTAINERS
 create mode 100644 board/engicam/imx8mm/Makefile
 create mode 100644 board/engicam/imx8mm/icore_mx8mm.c
 create mode 100644 board/engicam/imx8mm/lpddr4_timing.c
 create mode 100644 board/engicam/imx8mm/spl.c
 create mode 100644 configs/imx8mm-icore-mx8mm-ctouch2_defconfig
 create mode 100644 configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
 create mode 100644 include/configs/imx8mm-common.h
 create mode 100644 include/configs/imx8mm_icore_mx8mm.h
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH v2 1/5 arm64: dts: imx8mm: Add common -u-boot.dtsi

/soc at 0
aips1
aips2
aips3
clk
iomuxc
osc_24m

are common node enablements across imx8mm platform for dm-spi, dm-pre-reloc stages.

Move them into common dtsi, imx8mm-u-boot.dtsi

Cc Tim Harvey <[email protected]>
Cc Adam Ford <[email protected]>
Cc Peng Fan <[email protected]>
Cc Teresa Remmet <[email protected]>
Cc Igor Opaniuk <[email protected]>

---
Changes for v2:
- add venice changes

 arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi    | 37 +-----------------
 arch/arm/dts/imx8mm-evk-u-boot.dtsi           | 37 +-----------------
 arch/arm/dts/imx8mm-u-boot.dtsi               | 39 +++++++++++++++++++
 arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi | 35 +----------------
 arch/arm/dts/imx8mm-venice-u-boot.dtsi        | 37 +-----------------
 arch/arm/dts/imx8mm-verdin-u-boot.dtsi        | 38 ++----------------
 arch/arm/dts/phycore-imx8mm-u-boot.dtsi       | 37 +-----------------
 7 files changed, 51 insertions(+), 209 deletions(-)
 create mode 100644 arch/arm/dts/imx8mm-u-boot.dtsi
arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +2 -35
index 6d80a529ae..73ddfdade6 100644
@@ -3,6 +3,8 @@
  * Copyright 2020 Compass Electronics Group, LLC
  */
 
+#include "imx8mm-u-boot.dtsi"
+
 / {
 	wdt-reboot {
 		compatible = "wdt-reboot";
@@ -11,32 +13,6 @@
 	};
 };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
 &reg_usdhc2_vmmc {
 	u-boot,off-on-delay-us = <20000>;
 };
@@ -65,15 +41,6 @@
 	u-boot,dm-spl;
 };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
 &pca6416_0 {
 	compatible = "ti,tca6416";
 };
arch/arm/dts/imx8mm-evk-u-boot.dtsi +2 -35
index e843a5648e..79dffe7ccd 100644
@@ -3,6 +3,8 @@
  * Copyright 2019 NXP
  */
 
+#include "imx8mm-u-boot.dtsi"
+
 / {
 	wdt-reboot {
 		compatible = "wdt-reboot";
@@ -11,41 +13,6 @@
 	};
 };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
 &reg_usdhc2_vmmc {
 	u-boot,off-on-delay-us = <20000>;
 };
arch/arm/dts/imx8mm-u-boot.dtsi new file +39 -0
new file mode 100644
index 0000000000..f833d9df59
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2020 Jagan Teki <[email protected]>
+ */
+
+&{/soc at 0} {
+	u-boot,dm-pre-reloc;
+	u-boot,dm-spl;
+};
+
+&aips1 {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
+
+&aips2 {
+	u-boot,dm-spl;
+};
+
+&aips3 {
+	u-boot,dm-spl;
+};
+
+&clk {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+	/delete-property/ assigned-clocks;
+	/delete-property/ assigned-clock-parents;
+	/delete-property/ assigned-clock-rates;
+};
+
+&iomuxc {
+	u-boot,dm-spl;
+};
+
+&osc_24m {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi +1 -34
index a4487e20c3..1a15d6a2ad 100644
@@ -3,40 +3,7 @@
  * Copyright 2021 Gateworks Corporation
  */
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
+#include "imx8mm-u-boot.dtsi"
 
 &gpio1 {
 	u-boot,dm-spl;
arch/arm/dts/imx8mm-venice-u-boot.dtsi +2 -35
index 5b06d872c6..42b2903f04 100644
@@ -3,6 +3,8 @@
  * Copyright 2021 Gateworks Corporation
  */
 
+#include "imx8mm-u-boot.dtsi"
+
 / {
 	wdt-reboot {
 		compatible = "wdt-reboot";
@@ -11,41 +13,6 @@
 	};
 };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
 &gpio1 {
 	u-boot,dm-spl;
 };
arch/arm/dts/imx8mm-verdin-u-boot.dtsi +3 -35
index 249b0f8f66..67c31c49b6 100644
@@ -2,6 +2,9 @@
 /*
  * Copyright 2020 Toradex
  */
+
+#include "imx8mm-u-boot.dtsi"
+
 / {
 	wdt-reboot {
 		compatible = "wdt-reboot";
@@ -10,27 +13,6 @@
 	};
 };
 
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
 &gpio1 {
 	u-boot,dm-spl;
 };
@@ -55,15 +37,6 @@
 	u-boot,dm-spl;
 };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
 &pinctrl_i2c1 {
 	u-boot,dm-spl;
 };
@@ -84,11 +57,6 @@
 	u-boot,dm-spl;
 };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
 &{/soc at 0/bus at 30800000/i2c at 30a20000/pmic} {
 	u-boot,dm-spl;
 };
arch/arm/dts/phycore-imx8mm-u-boot.dtsi +2 -35
index fc0fa22d1b..91515b8df9 100644
@@ -4,6 +4,8 @@
  * Author: Teresa Remmet <[email protected]>
  */
 
+#include "imx8mm-u-boot.dtsi"
+
 / {
 	wdt-reboot {
 		compatible = "wdt-reboot";
@@ -12,41 +14,6 @@
 	};
 };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
 &pinctrl_uart3 {
 	u-boot,dm-spl;
 };
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 1/5 arm64: dts: imx8mm: Add common -u-boot.dtsi

Quoted 8 lines · Jagan Teki

/soc at 0
aips1
aips2
aips3
clk
iomuxc
osc_24m

Quoted 4 lines

are common node enablements across imx8mm platform for dm-spi, dm-pre-reloc stages.

Move them into common dtsi, imx8mm-u-boot.dtsi

This may conflict with
https://patchwork.ozlabs.org/project/uboot/patch/20210406035904.26598-1-peng.fan at oss.nxp.com/

Thanks,
Peng.

Quoted 410 lines
Cc Tim Harvey <[email protected]>
Cc Adam Ford <[email protected]>
Cc Peng Fan <[email protected]>
Cc Teresa Remmet <[email protected]>
Cc Igor Opaniuk <[email protected]>

---
Changes for v2:
- add venice changes

  arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi    | 37 +-----------------
  arch/arm/dts/imx8mm-evk-u-boot.dtsi           | 37 +-----------------
  arch/arm/dts/imx8mm-u-boot.dtsi               | 39 +++++++++++++++++++
  arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi | 35 +----------------
  arch/arm/dts/imx8mm-venice-u-boot.dtsi        | 37 +-----------------
  arch/arm/dts/imx8mm-verdin-u-boot.dtsi        | 38 ++----------------
  arch/arm/dts/phycore-imx8mm-u-boot.dtsi       | 37 +-----------------
  7 files changed, 51 insertions(+), 209 deletions(-)

create mode 100644 arch/arm/dts/imx8mm-u-boot.dtsi

arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +2 -35
index 6d80a529ae..73ddfdade6 100644
@@ -3,6 +3,8 @@
   * Copyright 2020 Compass Electronics Group, LLC
   */
 
+#include "imx8mm-u-boot.dtsi"
+
  / {
  	wdt-reboot {
  		compatible = "wdt-reboot";
@@ -11,32 +13,6 @@
  	};
  };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
  &reg_usdhc2_vmmc {
  	u-boot,off-on-delay-us = <20000>;
  };
@@ -65,15 +41,6 @@
  	u-boot,dm-spl;
  };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
  &pca6416_0 {
  	compatible = "ti,tca6416";
  };
arch/arm/dts/imx8mm-evk-u-boot.dtsi +2 -35
index e843a5648e..79dffe7ccd 100644
@@ -3,6 +3,8 @@
   * Copyright 2019 NXP
   */
 
+#include "imx8mm-u-boot.dtsi"
+
  / {
  	wdt-reboot {
  		compatible = "wdt-reboot";
@@ -11,41 +13,6 @@
  	};
  };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
  &reg_usdhc2_vmmc {
  	u-boot,off-on-delay-us = <20000>;
  };
arch/arm/dts/imx8mm-u-boot.dtsi new file +39 -0
new file mode 100644
index 0000000000..f833d9df59
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2020 Jagan Teki <[email protected]>
+ */
+
+&{/soc at 0} {
+	u-boot,dm-pre-reloc;
+	u-boot,dm-spl;
+};
+
+&aips1 {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
+
+&aips2 {
+	u-boot,dm-spl;
+};
+
+&aips3 {
+	u-boot,dm-spl;
+};
+
+&clk {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+	/delete-property/ assigned-clocks;
+	/delete-property/ assigned-clock-parents;
+	/delete-property/ assigned-clock-rates;
+};
+
+&iomuxc {
+	u-boot,dm-spl;
+};
+
+&osc_24m {
+	u-boot,dm-spl;
+	u-boot,dm-pre-reloc;
+};
arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi +1 -34
index a4487e20c3..1a15d6a2ad 100644
@@ -3,40 +3,7 @@
   * Copyright 2021 Gateworks Corporation
   */
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
+#include "imx8mm-u-boot.dtsi"
 
  &gpio1 {
  	u-boot,dm-spl;
arch/arm/dts/imx8mm-venice-u-boot.dtsi +2 -35
index 5b06d872c6..42b2903f04 100644
@@ -3,6 +3,8 @@
   * Copyright 2021 Gateworks Corporation
   */
 
+#include "imx8mm-u-boot.dtsi"
+
  / {
  	wdt-reboot {
  		compatible = "wdt-reboot";
@@ -11,41 +13,6 @@
  	};
  };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
  &gpio1 {
  	u-boot,dm-spl;
  };
arch/arm/dts/imx8mm-verdin-u-boot.dtsi +3 -35
index 249b0f8f66..67c31c49b6 100644
@@ -2,6 +2,9 @@
  /*
   * Copyright 2020 Toradex
   */
+
+#include "imx8mm-u-boot.dtsi"
+
  / {
  	wdt-reboot {
  		compatible = "wdt-reboot";
@@ -10,27 +13,6 @@
  	};
  };
 
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
  &gpio1 {
  	u-boot,dm-spl;
  };
@@ -55,15 +37,6 @@
  	u-boot,dm-spl;
  };
 
-&iomuxc {
-	u-boot,dm-spl;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
  &pinctrl_i2c1 {
  	u-boot,dm-spl;
  };
@@ -84,11 +57,6 @@
  	u-boot,dm-spl;
  };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
  &{/soc at 0/bus at 30800000/i2c at 30a20000/pmic} {
  	u-boot,dm-spl;
  };
arch/arm/dts/phycore-imx8mm-u-boot.dtsi +2 -35
index fc0fa22d1b..91515b8df9 100644
@@ -4,6 +4,8 @@
   * Author: Teresa Remmet <[email protected]>
   */
 
+#include "imx8mm-u-boot.dtsi"
+
  / {
  	wdt-reboot {
  		compatible = "wdt-reboot";
@@ -12,41 +14,6 @@
  	};
  };
 
-&{/soc at 0} {
-	u-boot,dm-pre-reloc;
-	u-boot,dm-spl;
-};
-
-&clk {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	/delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-	u-boot,dm-spl;
-	u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-	u-boot,dm-spl;
-};
-
-&aips3 {
-	u-boot,dm-spl;
-};
-
-&iomuxc {
-	u-boot,dm-spl;
-};
-
  &pinctrl_uart3 {
  	u-boot,dm-spl;
  };
#3 lore raw

PATCH v2 1/5 arm64: dts: imx8mm: Add common -u-boot.dtsi

Quoted 10 lines · Peng Fan (OSS)
Quoted 8 lines · Jagan Teki

/soc at 0
aips1
aips2
aips3
clk
iomuxc
osc_24m

Quoted 7 lines
Quoted 4 lines

are common node enablements across imx8mm platform for dm-spi, dm-pre-reloc stages.

Move them into common dtsi, imx8mm-u-boot.dtsi

This may conflict with
https://patchwork.ozlabs.org/project/uboot/patch/20210406035904.26598-1-peng.fan at oss.nxp.com/

Right - Jagan, I have merged Peng's PR, I am merging the other conversions to DM. Your choice if you prefer to wait until I push on the server (maybe the best way to do), then you can rebase on top of it.

Regards,
Stefano

Quoted 408 lines

Thanks,
Peng.

Quoted 403 lines
Cc Tim Harvey <[email protected]>
Cc Adam Ford <[email protected]>
Cc Peng Fan <[email protected]>
Cc Teresa Remmet <[email protected]>
Cc Igor Opaniuk <[email protected]>

---
Changes for v2:
- add venice changes

? arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi??? | 37 +-----------------
? arch/arm/dts/imx8mm-evk-u-boot.dtsi?????????? | 37 +-----------------
? arch/arm/dts/imx8mm-u-boot.dtsi?????????????? | 39 +++++++++++++++++++
? arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi | 35 +----------------
? arch/arm/dts/imx8mm-venice-u-boot.dtsi??????? | 37 +-----------------
? arch/arm/dts/imx8mm-verdin-u-boot.dtsi??????? | 38 ++----------------
? arch/arm/dts/phycore-imx8mm-u-boot.dtsi?????? | 37 +-----------------

? 7 files changed, 51 insertions(+), 209 deletions(-) ? create mode 100644 arch/arm/dts/imx8mm-u-boot.dtsi

arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +0 -0
index 6d80a529ae..73ddfdade6 100644
@@ -3,6 +3,8 @@

?? * Copyright 2020 Compass Electronics Group, LLC ?? */

arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +2 -0
+#include "imx8mm-u-boot.dtsi"
+

? / {
????? wdt-reboot {
????????? compatible = "wdt-reboot";

arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +0 -35
@@ -11,32 +13,6 @@
 ????? };
 ? };
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;
-};
-
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
 ? &reg_usdhc2_vmmc {
 ????? u-boot,off-on-delay-us = <20000>;
 ? };
@@ -65,15 +41,6 @@
 ????? u-boot,dm-spl;
 ? };
-&iomuxc {
-??? u-boot,dm-spl;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
 ? &pca6416_0 {
 ????? compatible = "ti,tca6416";
 ? };
arch/arm/dts/imx8mm-evk-u-boot.dtsi +0 -0
index e843a5648e..79dffe7ccd 100644
@@ -3,6 +3,8 @@

?? * Copyright 2019 NXP
?? */

arch/arm/dts/imx8mm-evk-u-boot.dtsi +2 -0
+#include "imx8mm-u-boot.dtsi"
+

? / {
????? wdt-reboot {
????????? compatible = "wdt-reboot";

arch/arm/dts/imx8mm-evk-u-boot.dtsi +0 -35
@@ -11,41 +13,6 @@
 ????? };
 ? };
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&iomuxc {
-??? u-boot,dm-spl;
-};
-
 ? &reg_usdhc2_vmmc {
 ????? u-boot,off-on-delay-us = <20000>;
 ? };
arch/arm/dts/imx8mm-u-boot.dtsi new file +39 -0
new file mode 100644
index 0000000000..f833d9df59
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2020 Jagan Teki <[email protected]>
+ */
+
+&{/soc at 0} {
+??? u-boot,dm-pre-reloc;
+??? u-boot,dm-spl;
+};
+
+&aips1 {
+??? u-boot,dm-spl;
+??? u-boot,dm-pre-reloc;
+};
+
+&aips2 {
+??? u-boot,dm-spl;
+};
+
+&aips3 {
+??? u-boot,dm-spl;
+};
+
+&clk {
+??? u-boot,dm-spl;
+??? u-boot,dm-pre-reloc;
+??? /delete-property/ assigned-clocks;
+??? /delete-property/ assigned-clock-parents;
+??? /delete-property/ assigned-clock-rates;
+};
+
+&iomuxc {
+??? u-boot,dm-spl;
+};
+
+&osc_24m {
+??? u-boot,dm-spl;
+??? u-boot,dm-pre-reloc;
+};
arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi +0 -0
index a4487e20c3..1a15d6a2ad 100644
@@ -3,40 +3,7 @@

?? * Copyright 2021 Gateworks Corporation ?? */
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;

arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi +1 -31
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&iomuxc {
-??? u-boot,dm-spl;
-};
+#include "imx8mm-u-boot.dtsi"

? &gpio1 {
????? u-boot,dm-spl;

arch/arm/dts/imx8mm-venice-u-boot.dtsi +0 -0
index 5b06d872c6..42b2903f04 100644
@@ -3,6 +3,8 @@

?? * Copyright 2021 Gateworks Corporation ?? */

arch/arm/dts/imx8mm-venice-u-boot.dtsi +2 -0
+#include "imx8mm-u-boot.dtsi"
+

? / {
????? wdt-reboot {
????????? compatible = "wdt-reboot";

arch/arm/dts/imx8mm-venice-u-boot.dtsi +0 -35
@@ -11,41 +13,6 @@
 ????? };
 ? };
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&iomuxc {
-??? u-boot,dm-spl;
-};
-
 ? &gpio1 {
 ????? u-boot,dm-spl;
 ? };
arch/arm/dts/imx8mm-verdin-u-boot.dtsi +0 -0
index 249b0f8f66..67c31c49b6 100644
@@ -2,6 +2,9 @@

? /*
?? * Copyright 2020 Toradex
?? */

arch/arm/dts/imx8mm-verdin-u-boot.dtsi +3 -0
+
+#include "imx8mm-u-boot.dtsi"
+

? / {
????? wdt-reboot {
????????? compatible = "wdt-reboot";

arch/arm/dts/imx8mm-verdin-u-boot.dtsi +0 -35
@@ -10,27 +13,6 @@
 ????? };
 ? };
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
 ? &gpio1 {
 ????? u-boot,dm-spl;
 ? };
@@ -55,15 +37,6 @@
 ????? u-boot,dm-spl;
 ? };
-&iomuxc {
-??? u-boot,dm-spl;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
 ? &pinctrl_i2c1 {
 ????? u-boot,dm-spl;
 ? };
@@ -84,11 +57,6 @@
 ????? u-boot,dm-spl;
 ? };
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;
-};
-
 ? &{/soc at 0/bus at 30800000/i2c at 30a20000/pmic} {
 ????? u-boot,dm-spl;
 ? };
arch/arm/dts/phycore-imx8mm-u-boot.dtsi +0 -0
index fc0fa22d1b..91515b8df9 100644
@@ -4,6 +4,8 @@

?? * Author: Teresa Remmet <[email protected]> ?? */

arch/arm/dts/phycore-imx8mm-u-boot.dtsi +2 -0
+#include "imx8mm-u-boot.dtsi"
+

? / {
????? wdt-reboot {
????????? compatible = "wdt-reboot";

arch/arm/dts/phycore-imx8mm-u-boot.dtsi +0 -35
@@ -12,41 +14,6 @@
 ????? };
 ? };
-&{/soc at 0} {
-??? u-boot,dm-pre-reloc;
-??? u-boot,dm-spl;
-};
-
-&clk {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-??? /delete-property/ assigned-clocks;
-??? /delete-property/ assigned-clock-parents;
-??? /delete-property/ assigned-clock-rates;
-};
-
-&osc_24m {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips1 {
-??? u-boot,dm-spl;
-??? u-boot,dm-pre-reloc;
-};
-
-&aips2 {
-??? u-boot,dm-spl;
-};
-
-&aips3 {
-??? u-boot,dm-spl;
-};
-
-&iomuxc {
-??? u-boot,dm-spl;
-};
-
 ? &pinctrl_uart3 {
 ????? u-boot,dm-spl;
 ? };
 
Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
author
#4 lore raw

PATCH v2 1/5 arm64: dts: imx8mm: Add common -u-boot.dtsi

Quoted 15 lines · Stefano Babic
Quoted 13 lines · Peng Fan (OSS)
Quoted 11 lines · Jagan Teki

/soc at 0
aips1
aips2
aips3
clk
iomuxc
osc_24m

are common node enablements across imx8mm platform for dm-spi, dm-pre-reloc stages.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Move them into common dtsi, imx8mm-u-boot.dtsi

This may conflict with
https://patchwork.ozlabs.org/project/uboot/patch/20210406035904.26598-1-peng.fan at oss.nxp.com/

Right - Jagan, I have merged Peng's PR, I am merging the other conversions to DM. Your choice if you prefer to wait until I push on the server (maybe the best way to do), then you can rebase on top of it.

Yes, would work. I will rebase on top of your changes and send v3.

Jagan.

author
#5 lore raw

PATCH v2 2/5 configs: Add imx8mm-common header

In reply to Jagan Teki

Move the redundant config item like SPL, memory-related across all imx8mm config files in the common config header, imx8mm-common.h

Verified the built files, seems almost the same as before.

Cc Tim Harvey <[email protected]>
Cc Adam Ford <[email protected]>
Cc Peng Fan <[email protected]>
Cc Teresa Remmet <[email protected]>
Cc Igor Opaniuk <[email protected]>

---
Changes for v2:
- add venice changes

 include/configs/imx8mm-common.h  | 48 ++++++++++++++++++++++++++++++++
 include/configs/imx8mm_beacon.h  | 48 ++++----------------------------
 include/configs/imx8mm_evk.h     | 45 ++----------------------------
 include/configs/imx8mm_venice.h  | 46 ++++--------------------------
 include/configs/phycore_imx8mm.h | 43 ++--------------------------
 include/configs/verdin-imx8mm.h  | 42 +++-------------------------
 6 files changed, 68 insertions(+), 204 deletions(-)
 create mode 100644 include/configs/imx8mm-common.h
include/configs/imx8mm-common.h new file +48 -0
new file mode 100644
index 0000000000..f1afa5c5a9
@@ -0,0 +1,48 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2019 NXP
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#ifndef __IMX8MM_COMMON_H
+#define __IMX8MM_COMMON_H
+
+#include <linux/sizes.h>
+#include <asm/arch/imx-regs.h>
+
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SPL_MAX_SIZE		(148 * 1024)
+#define CONFIG_SPL_STACK		0x920000
+#define CONFIG_SPL_BSS_START_ADDR	0x910000
+#define CONFIG_SPL_BSS_MAX_SIZE		SZ_8K
+#define CONFIG_SYS_SPL_MALLOC_START	0x42200000
+#define CONFIG_SYS_SPL_MALLOC_SIZE	SZ_512K
+
+/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
+#define CONFIG_MALLOC_F_ADDR		0x930000
+/* For RAW image gives a error info not panic */
+#define CONFIG_SPL_ABORT_ON_RAW_IMAGE
+#endif /* CONFIG_SPL_BUILD */
+
+#define CONFIG_SYS_MONITOR_LEN		SZ_512K
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	0x300
+#define CONFIG_SYS_UBOOT_BASE	\
+	(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
+
+#define CONFIG_SYS_INIT_RAM_ADDR        0x40000000
+#define CONFIG_SYS_INIT_SP_OFFSET \
+	(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR \
+	(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+
+/* Size of malloc() pool */
+#define CONFIG_SYS_MALLOC_LEN		SZ_32M
+
+#define CONFIG_SYS_SDRAM_BASE		0x40000000
+#define PHYS_SDRAM			0x40000000
+
+#define CONFIG_LOADADDR			0x40480000
+#define CONFIG_SYS_LOAD_ADDR		CONFIG_LOADADDR
+
+#endif /* __IMX8MM_COMMON_H */
include/configs/imx8mm_beacon.h +5 -43

62 lines not on this page · raw message

include/configs/imx8mm_evk.h +3 -42

61 lines not on this page · raw message

include/configs/imx8mm_venice.h +5 -41

66 lines not on this page · raw message

include/configs/phycore_imx8mm.h +3 -40

59 lines not on this page · raw message

include/configs/verdin-imx8mm.h +4 -38

66 lines not on this page · raw message

Signature · 1 line
2.25.1
#6 lore raw

PATCH v2 2/5 configs: Add imx8mm-common header

Quoted 41 lines · Jagan Teki

Move the redundant config item like SPL, memory-related across all imx8mm config files in the common config header, imx8mm-common.h

Verified the built files, seems almost the same as before.

Cc Tim Harvey <[email protected]>
Cc Adam Ford <[email protected]>
Cc Peng Fan <[email protected]>
Cc Teresa Remmet <[email protected]>
Cc Igor Opaniuk <[email protected]>

---
Changes for v2:
- add venice changes

 include/configs/imx8mm-common.h  | 48 ++++++++++++++++++++++++++++++++
 include/configs/imx8mm_beacon.h  | 48 ++++----------------------------
 include/configs/imx8mm_evk.h     | 45 ++----------------------------
 include/configs/imx8mm_venice.h  | 46 ++++--------------------------
 include/configs/phycore_imx8mm.h | 43 ++--------------------------
 include/configs/verdin-imx8mm.h  | 42 +++-------------------------
 6 files changed, 68 insertions(+), 204 deletions(-)
 create mode 100644 include/configs/imx8mm-common.h
include/configs/imx8mm-common.h new file +9 -0
new file mode 100644
index 0000000000..f1afa5c5a9
@@ -0,0 +1,48 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2019 NXP
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#ifndef __IMX8MM_COMMON_H
+#define __IMX8MM_COMMON_H
+

include/configs/imx8mm-common.h line 19

Quoted 10 lines
include/configs/imx8mm-common.h new file +10 -0
+#include <linux/sizes.h>
+#include <asm/arch/imx-regs.h>
+
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SPL_MAX_SIZE            (148 * 1024)
+#define CONFIG_SPL_STACK               0x920000
+#define CONFIG_SPL_BSS_START_ADDR      0x910000
+#define CONFIG_SPL_BSS_MAX_SIZE                SZ_8K
+#define CONFIG_SYS_SPL_MALLOC_START    0x42200000
+#define CONFIG_SYS_SPL_MALLOC_SIZE     SZ_512K

Jagan,

Seems like a good idea, thanks for your work here!

I ran into an issue with imx8mm-venice due to my FIT image being larger than 512KiB causing me to bump CONFIG_SYS_SPL_MALLOC_SIZE (I bumped to 1MiB).

I have a pending patch for that [1] which would collide with this and I wonder what your feelings are about SYS_SPL_MALLOC_SIZE. When I started work on imx8mm-venice support the SPL did not use a malloc buffer for loading the FIT image so I never ran into an issue but that changed with commit 03f1f78a9b44 ("spl: fit: Prefer a malloc()'d buffer for loading images")' and after that I was not able to load my FIT image. I'm honestly not sure how the other imx8mm boards are not affected unless they just barely fit with a 512K malloc pool.

I'm not sure what the downside would be to doubling it to 1MiB or even more and I would be boards using FIT with multiple dtb's would go over 512KiB pretty quickly (as opposed to having to undef and re-define it per board).

Best regards,

Tim
[1] http://patchwork.ozlabs.org/project/uboot/patch/20210308215236.27722-2-tharvey at gateworks.com/

author
#7 lore raw

PATCH v2 3/5 arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM

In reply to Jagan Teki

i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam.

General features:
- NXP i.MX8M Mini
- Up to 2GB LDDR4
- 8/16GB eMMC
- Gigabit Ethernet
- USB 2.0 Host/OTG
- PCIe Gen2 interface
- I2S
- MIPI DSI to LVDS
- rest of i.MX8M Mini features

i.Core MX8M Mini needs to mount on top of Engicam baseboards for creating complete platform solutions.

Linux dts commit details:

commit <470d6dad5ddd> ("arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM")

Add support for it.

---
Changes for v2:
- add Linux commit details

 arch/arm/dts/imx8mm-icore-mx8mm.dtsi | 232 +++++++++++++++++++++++++++
 1 file changed, 232 insertions(+)
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm.dtsi
arch/arm/dts/imx8mm-icore-mx8mm.dtsi new file +232 -0
new file mode 100644
index 0000000000..b40148d728
@@ -0,0 +1,232 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2018 NXP
+ * Copyright (c) 2019 Engicam srl
+ * Copyright (c) 2020 Amarula Solutons(India)
+ */
+
+/ {
+	compatible = "engicam,icore-mx8mm", "fsl,imx8mm";
+};
+
+&A53_0 {
+	cpu-supply = <&reg_buck4>;
+};
+
+&A53_1 {
+	cpu-supply = <&reg_buck4>;
+};
+
+&A53_2 {
+	cpu-supply = <&reg_buck4>;
+};
+
+&A53_3 {
+	cpu-supply = <&reg_buck4>;
+};
+
+&fec1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fec1>;
+	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy>;
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy: ethernet-phy at 3 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <3>;
+			reset-gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
+			reset-assert-us = <10000>;
+		};
+	};
+};
+
+&i2c1 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "okay";
+
+	pmic at 8 {
+		compatible = "nxp,pf8121a";
+		reg = <0x08>;
+
+		regulators {
+			reg_ldo1: ldo1 {
+				regulator-min-microvolt = <1500000>;
+				regulator-max-microvolt = <5000000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_ldo2: ldo2 {
+				regulator-min-microvolt = <1500000>;
+				regulator-max-microvolt = <5000000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_ldo3: ldo3 {
+				regulator-min-microvolt = <1500000>;
+				regulator-max-microvolt = <5000000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_ldo4: ldo4 {
+				regulator-min-microvolt = <1500000>;
+				regulator-max-microvolt = <5000000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck1: buck1 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck2: buck2 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck3: buck3 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck4: buck4 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck5: buck5 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck6: buck6 {
+				regulator-min-microvolt =  <400000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_buck7: buck7 {
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+
+			reg_vsnvs: vsnvs {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+		};
+	};
+};
+
+&iomuxc {
+	pinctrl_fec1: fec1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_ENET_MDC_ENET1_MDC			0x3
+			MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3
+			MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3		0x1f
+			MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2		0x1f
+			MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1		0x1f
+			MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0		0x1f
+			MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91
+			MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91
+			MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91
+			MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91
+			MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC		0x1f
+			MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91
+			MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91
+			MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f
+			MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7		0x19
+		>;
+	};
+
+	pinctrl_i2c1: i2c1grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL		0x400001c3
+			MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA		0x400001c3
+		>;
+	};
+
+	pinctrl_usdhc3: usdhc3grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK               0x190
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD               0x1d0
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0           0x1d0
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1           0x1d0
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2           0x1d0
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2           0x1d0
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3           0x1d0
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4             0x1d0
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5            0x1d0
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6            0x1d0
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7              0x1d0
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE           0x190
+		>;
+	};
+
+	pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK               0x194
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD               0x1d4
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0           0x1d4
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1           0x1d4
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2           0x1d4
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3           0x1d4
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4             0x1d4
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5            0x1d4
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6            0x1d4
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7              0x1d4
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE           0x194
+		>;
+	};
+
+	pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK               0x196
+			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD               0x1d6
+			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0           0x1d6
+			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1           0x1d6
+			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2           0x1d6
+			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3           0x1d6
+			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4             0x1d6
+			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5            0x1d6
+			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6            0x1d6
+			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7              0x1d6
+			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE           0x196
+		>;
+	};
+};
+
+/* eMMC */
+&usdhc3 {
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_usdhc3>;
+	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
+	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+	bus-width = <8>;
+	non-removable;
+	status = "okay";
+};
Signature · 1 line
2.25.1
author
#8 lore raw

PATCH v2 4/5 board: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit

In reply to Jagan Teki

Engicam EDIMM2.2 Starter Kit is an EDIMM 2.2 Form Factor Capacitive Evaluation Board.

Genaral features:
- LCD 7" C.Touch
- microSD slot
- Ethernet 1Gb
- Wifi/BT
- 2x LVDS Full HD interfaces
- 3x USB 2.0
- 1x USB 3.0
- HDMI Out
- Mini PCIe
- MIPI CSI
- 2x CAN
- Audio Out

i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam.

i.Core MX8M Mini needs to mount on top of this Evaluation board for creating complete i.Core MX8M Mini EDIMM2.2 Starter Kit.

Linux dts commit details:

commit <051c08eea682> ("arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit")

Add support for it.

---
Changes for v2:
- add Linux commit details

 arch/arm/dts/Makefile                         |    1 +
 .../imx8mm-icore-mx8mm-edimm2.2-u-boot.dtsi   |   31 +
 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2.dts  |   97 +
 arch/arm/dts/imx8mm-icore-mx8mm-u-boot.dtsi   |   27 +
 arch/arm/mach-imx/imx8m/Kconfig               |   14 +
 board/engicam/imx8mm/Kconfig                  |   14 +
 board/engicam/imx8mm/MAINTAINERS              |    7 +
 board/engicam/imx8mm/Makefile                 |   12 +
 board/engicam/imx8mm/icore_mx8mm.c            |   85 +
 board/engicam/imx8mm/lpddr4_timing.c          | 1846 +++++++++++++++++
 board/engicam/imx8mm/spl.c                    |  101 +
 configs/imx8mm-icore-mx8mm-edimm2.2_defconfig |   92 +
 include/configs/imx8mm_icore_mx8mm.h          |   58 +
 13 files changed, 2385 insertions(+)
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2.dts
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-u-boot.dtsi
 create mode 100644 board/engicam/imx8mm/Kconfig
 create mode 100644 board/engicam/imx8mm/MAINTAINERS
 create mode 100644 board/engicam/imx8mm/Makefile
 create mode 100644 board/engicam/imx8mm/icore_mx8mm.c
 create mode 100644 board/engicam/imx8mm/lpddr4_timing.c
 create mode 100644 board/engicam/imx8mm/spl.c
 create mode 100644 configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
 create mode 100644 include/configs/imx8mm_icore_mx8mm.h
arch/arm/dts/Makefile +1 -0
index c6710826a0..08db525bc4 100644
@@ -790,6 +790,7 @@ dtb-$(CONFIG_ARCH_IMX8) += \
 
 dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-evk.dtb \
+	imx8mm-icore-mx8mm-edimm2.2.dtb \
 	imx8mm-venice.dtb \
 	imx8mm-venice-gw71xx-0x.dtb \
 	imx8mm-venice-gw72xx-0x.dtb \
arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2-u-boot.dtsi new file +31 -0
new file mode 100644
index 0000000000..8b67bcff7d
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Engicam srl
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#include "imx8mm-icore-mx8mm-u-boot.dtsi"
+
+&gpio1 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_uart2 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc1_gpio {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc1 {
+	u-boot,dm-spl;
+};
+
+&uart2 {
+	u-boot,dm-spl;
+};
+
+&usdhc1 {
+	u-boot,dm-spl;
+};
arch/arm/dts/imx8mm-icore-mx8mm-edimm2.2.dts new file +97 -0

97 lines not on this page · raw message

arch/arm/dts/imx8mm-icore-mx8mm-u-boot.dtsi new file +27 -0
new file mode 100644
index 0000000000..e7d179d632
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Engicam srl
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#include "imx8mm-u-boot.dtsi"
+
+&iomuxc {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc3 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc3_100mhz {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc3_200mhz {
+	u-boot,dm-spl;
+};
+
+&usdhc3 {
+	u-boot,dm-spl;
+};
arch/arm/mach-imx/imx8m/Kconfig +14 -0
index 12b8d0d831..28a9a51e67 100644
@@ -49,6 +49,19 @@ config TARGET_IMX8MM_VENICE
 	select SUPPORT_SPL
 	select IMX8M_LPDDR4
 
+config TARGET_IMX8MM_ICORE_MX8MM
+	bool "Engicam i.Core MX8M Mini SOM"
+	select IMX8MM
+	select SUPPORT_SPL
+	select IMX8M_LPDDR4
+	help
+	  i.Core MX8M Mini is an EDIMM SOM based on NXP i.MX8MM.
+
+	  i.Core MX8M Mini EDIMM2.2:
+	  * EDIMM2.2 is a Form Factor Capacitive Evaluation Board.
+	  * i.Core MX8M Mini needs to mount on top of EDIMM2.2 for
+	    creating complete i.Core MX8M Mini EDIMM2.2 Starter Kit.
+
 config TARGET_IMX8MN_DDR4_EVK
 	bool "imx8mn DDR4 EVK board"
 	select IMX8MN
@@ -97,6 +110,7 @@ config TARGET_PHYCORE_IMX8MP
 	select IMX8M_LPDDR4
 endchoice
 
+source "board/engicam/imx8mm/Kconfig"
 source "board/freescale/imx8mq_evk/Kconfig"
 source "board/freescale/imx8mm_evk/Kconfig"
 source "board/freescale/imx8mn_evk/Kconfig"
board/engicam/imx8mm/Kconfig new file +14 -0
new file mode 100644
index 0000000000..ed68516df4
@@ -0,0 +1,14 @@
+if TARGET_IMX8MM_ICORE_MX8MM
+
+config SYS_BOARD
+	default "imx8mm"
+
+config SYS_VENDOR
+	default "engicam"
+
+config SYS_CONFIG_NAME
+	default "imx8mm_icore_mx8mm"
+
+source "board/freescale/common/Kconfig"
+
+endif
board/engicam/imx8mm/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000000..044a9392ac
@@ -0,0 +1,7 @@
+i.Core-MX8M-Mini-EDIMM2.2
+M:	Jagan Teki <[email protected]>
+M:	Matteo Lisi <[email protected]>
+S:	Maintained
+F:	board/engicam/imx8mm
+F:	include/configs/imx8mm_icore_mx8mm.h
+F:	configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
board/engicam/imx8mm/Makefile new file +12 -0
new file mode 100644
index 0000000000..3392d61920
@@ -0,0 +1,12 @@
+#
+# Copyright (C) 2020 Amarula Solutions(India)
+#
+# SPDX-License-Identifier:      GPL-2.0+
+#
+
+obj-y += icore_mx8mm.o
+
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+obj-y += lpddr4_timing.o
+endif
board/engicam/imx8mm/icore_mx8mm.c new file +85 -0

85 lines not on this page · raw message

board/engicam/imx8mm/lpddr4_timing.c new file +1846 -0

1,846 lines not on this page · raw message

board/engicam/imx8mm/spl.c new file +101 -0

101 lines not on this page · raw message

configs/imx8mm-icore-mx8mm-edimm2.2_defconfig new file +92 -0

92 lines not on this page · raw message

include/configs/imx8mm_icore_mx8mm.h new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#9 lore raw

PATCH v2 5/5 board: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

In reply to Jagan Teki

Engicam C.TOUCH 2.0 is an EDIMM compliant general purpose Carrier board.

Genaral features:
- Ethernet 10/100
- Wifi/BT
- USB Type A/OTG
- Audio Out
- CAN
- LVDS panel connector

i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam.

i.Core MX8M Mini needs to mount on top of this Carrier board for creating complete i.Core MX8M Mini C.TOUCH 2.0 board.

Linux dts commit details:

commit <a142252061ff> ("arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0")

Add support for it.

---
Changes for v2:
- add Linux commit details

 arch/arm/dts/Makefile                         |  1 +
 .../imx8mm-icore-mx8mm-ctouch2-u-boot.dtsi    | 31 ++++++
 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2.dts   | 97 +++++++++++++++++++
 arch/arm/mach-imx/imx8m/Kconfig               |  5 +
 board/engicam/imx8mm/MAINTAINERS              |  6 ++
 configs/imx8mm-icore-mx8mm-ctouch2_defconfig  | 92 ++++++++++++++++++
 6 files changed, 232 insertions(+)
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm-ctouch2.dts
 create mode 100644 configs/imx8mm-icore-mx8mm-ctouch2_defconfig
arch/arm/dts/Makefile +1 -0
index 08db525bc4..17cf936a1f 100644
@@ -790,6 +790,7 @@ dtb-$(CONFIG_ARCH_IMX8) += \
 
 dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-evk.dtb \
+	imx8mm-icore-mx8mm-ctouch2.dtb \
 	imx8mm-icore-mx8mm-edimm2.2.dtb \
 	imx8mm-venice.dtb \
 	imx8mm-venice-gw71xx-0x.dtb \
arch/arm/dts/imx8mm-icore-mx8mm-ctouch2-u-boot.dtsi new file +31 -0
new file mode 100644
index 0000000000..8b67bcff7d
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Engicam srl
+ * Copyright (c) 2020 Amarula Solutions(India)
+ */
+
+#include "imx8mm-icore-mx8mm-u-boot.dtsi"
+
+&gpio1 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_uart2 {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc1_gpio {
+	u-boot,dm-spl;
+};
+
+&pinctrl_usdhc1 {
+	u-boot,dm-spl;
+};
+
+&uart2 {
+	u-boot,dm-spl;
+};
+
+&usdhc1 {
+	u-boot,dm-spl;
+};
arch/arm/dts/imx8mm-icore-mx8mm-ctouch2.dts new file +97 -0

97 lines not on this page · raw message

arch/arm/mach-imx/imx8m/Kconfig +5 -0
index 28a9a51e67..7262ab0517 100644
@@ -62,6 +62,11 @@ config TARGET_IMX8MM_ICORE_MX8MM
 	  * i.Core MX8M Mini needs to mount on top of EDIMM2.2 for
 	    creating complete i.Core MX8M Mini EDIMM2.2 Starter Kit.
 
+	  i.Core MX8M Mini C.TOUCH 2.0
+	  * C.TOUCH 2.0 is a general purpose Carrier board.
+	  * i.Core MX8M Mini needs to mount on top of this Carrier board
+	    for creating complete i.Core MX8M Mini C.TOUCH 2.0 board.
+
 config TARGET_IMX8MN_DDR4_EVK
 	bool "imx8mn DDR4 EVK board"
 	select IMX8MN
board/engicam/imx8mm/MAINTAINERS +6 -0
index 044a9392ac..2e99a5995f 100644
@@ -1,3 +1,9 @@
+i.Core-MX8M-Mini-CTOUCH2.0
+M:	Jagan Teki <[email protected]>
+M:	Matteo Lisi <[email protected]>
+S:	Maintained
+F:	configs/imx8mm-icore-mx8mm-ctouch2_defconfig
+
 i.Core-MX8M-Mini-EDIMM2.2
 M:	Jagan Teki <[email protected]>
 M:	Matteo Lisi <[email protected]>
configs/imx8mm-icore-mx8mm-ctouch2_defconfig new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#10 lore raw

v2 cover board: imx8mm: Add Engicam i.Core MX8M Mini SoM

In reply to Jagan Teki

Hi Stefano,

Quoted 16 lines · Jagan Teki

Patch series for Engicam i.Core MX8M Mini SOM and it's associated carrier board dts(i) support.

patch 1-2: add imx8mm-u-boot.dtsi, header improvement code

patch 3: Engicam i.Core MX8M Mini SoM dts

patch 4-5: EDIMM2.2, C.TOUCH 2.0 Carrier boards

Changes for v2:
- add Linux commit sha1 in commit messages.

Any inputs?
Jagan.

Quoted 6 lines

Jagan Teki (5):
arm64: dts: imx8mm: Add common -u-boot.dtsi
configs: Add imx8mm-common header
arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM
board: imx8mm: Add Engicam i.Core MX8M Mini EDIMM2.2 Starter Kit
board: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

Any comments?

Jagan.