Skip to contentSkip to conversation

board: gateworks: venice: add imx8mm-gw7903 support

PATCH In review Tim Harvey 3 participants 3 messages Feb 19, 2022 – Apr 13, 2022

Subsystems (2)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 board: gateworks: venice: add imx8mm-gw7903 support

The GW7903 is based on the i.MX 8M Mini SoC featuring:
- LPDDR4 DRAM
- eMMC FLASH
- microSD socket with voltage select support
- Gateworks System Controller
- M.2 A-E Socket with USB2.0 and PCIe
- MiniPCIe Socket with PCIe, USB2.0, and SIM
- IMX8M FEC
- RS232/RS485/RS422 serial transceiver
- LIS2DE12 3-axis accelerometer
- front panel LED's
- off-board isolated digital I/O
- Wide range DC power input
- 802.3at PoE
- PMIC

---
 arch/arm/dts/Makefile                         |    1 +
 arch/arm/dts/imx8mm-venice-gw7903-u-boot.dtsi |   28 +
 arch/arm/dts/imx8mm-venice-gw7903.dts         |  832 +++++
 board/gateworks/venice/gsc.c                  |    2 +-
 board/gateworks/venice/lpddr4_timing.h        |    1 +
 board/gateworks/venice/lpddr4_timing_imx8mm.c | 3184 ++++++++++-------
 .../venice/lpddr4_timing_imx8mm_512mb.c       | 1849 ++++++++++
 board/gateworks/venice/spl.c                  |   27 +-
 configs/imx8mm_venice_defconfig               |    2 +-
 9 files changed, 4580 insertions(+), 1346 deletions(-)
 create mode 100644 arch/arm/dts/imx8mm-venice-gw7903-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-venice-gw7903.dts
 create mode 100644 board/gateworks/venice/lpddr4_timing_imx8mm_512mb.c
arch/arm/dts/Makefile +1 -0
index 34f2566e54e1..dc6af9823420 100644
@@ -909,6 +909,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-venice-gw73xx-0x.dtb \
 	imx8mm-venice-gw7901.dtb \
 	imx8mm-venice-gw7902.dtb \
+	imx8mm-venice-gw7903.dtb \
 	imx8mm-verdin.dtb \
 	phycore-imx8mm.dtb \
 	imx8mn-ddr4-evk.dtb \
arch/arm/dts/imx8mm-venice-gw7903-u-boot.dtsi new file +28 -0
new file mode 100644
index 000000000000..36a605468b22
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2022 Gateworks Corporation
+ */
+
+#include "imx8mm-venice-u-boot.dtsi"
+
+&fec1 {
+	phy-reset-gpios = <&gpio4 25 GPIO_ACTIVE_LOW>;
+	phy-reset-duration = <1>;
+	phy-reset-post-delay = <300>;
+};
+
+&pinctrl_fec1 {
+	u-boot,dm-spl;
+};
+
+&{/soc@0/bus@30800000/i2c@30a30000/pmic@4b} {
+	u-boot,dm-spl;
+};
+
+&{/soc@0/bus@30800000/i2c@30a30000/pmic@4b/regulators} {
+	u-boot,dm-spl;
+};
+
+&pinctrl_pmic {
+	u-boot,dm-spl;
+};
arch/arm/dts/imx8mm-venice-gw7903.dts new file +832 -0

832 lines not on this page · raw message

board/gateworks/venice/gsc.c +1 -1
index a184ce822854..763b89b36344 100644
@@ -584,7 +584,7 @@ int gsc_init(int quiet)
 	if (ret)
 		hang();
 
-	return ((16 << som_info.sdram_size) / 1024);
+	return (16 << som_info.sdram_size);
 }
 
 const char *gsc_get_model(void)
board/gateworks/venice/lpddr4_timing.h +1 -0
index b17e20e8b1fd..f9a3ee1c8e6e 100644
@@ -7,6 +7,7 @@
 #define __LPDDR4_TIMING_H__
 
 #ifdef CONFIG_IMX8MM
+extern struct dram_timing_info dram_timing_512mb;
 extern struct dram_timing_info dram_timing_1gb;
 extern struct dram_timing_info dram_timing_2gb;
 extern struct dram_timing_info dram_timing_4gb;
board/gateworks/venice/lpddr4_timing_imx8mm.c +1850 -1334

2,118 lines not on this page · raw message

board/gateworks/venice/lpddr4_timing_imx8mm_512mb.c new file +1849 -0

1,849 lines not on this page · raw message

board/gateworks/venice/spl.c +17 -10
index 533d44a07a09..8b301570577c 100644

Lines of this file are not shown. View the raw message.

configs/imx8mm_venice_defconfig +1 -1
index 02a65c5abf0b..46ba63f9d529 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.17.1

Part of the diff is not shown here. View the raw message.

reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Tim Harvey

The GW7903 is based on the i.MX 8M Mini SoC featuring:
- LPDDR4 DRAM
- eMMC FLASH
- microSD socket with voltage select support
- Gateworks System Controller
- M.2 A-E Socket with USB2.0 and PCIe
- MiniPCIe Socket with PCIe, USB2.0, and SIM
- IMX8M FEC
- RS232/RS485/RS422 serial transceiver
- LIS2DE12 3-axis accelerometer
- front panel LED's
- off-board isolated digital I/O
- Wide range DC power input
- 802.3at PoE
- PMIC

Quoted 1 line
#2 lore raw

PATCH 1/1 board: gateworks: venice: add imx8mm-gw7903 support

In reply to Tim Harvey
Quoted 15 lines

The GW7903 is based on the i.MX 8M Mini SoC featuring:
- LPDDR4 DRAM
- eMMC FLASH
- microSD socket with voltage select support
- Gateworks System Controller
- M.2 A-E Socket with USB2.0 and PCIe
- MiniPCIe Socket with PCIe, USB2.0, and SIM
- IMX8M FEC
- RS232/RS485/RS422 serial transceiver
- LIS2DE12 3-axis accelerometer
- front panel LED's
- off-board isolated digital I/O
- Wide range DC power input
- 802.3at PoE
- PMIC

Quoted 2 lines

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

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: [email protected]
=====================================================================