Skip to contentSkip to conversation

Add out4.ru O4-iMX-NANO board

PATCH Superseded Oleh Kravchenko 1 participant 2 messages May 12, 2021

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 Add out4.ru O4-iMX-NANO board

Board designed for quick prototyping and has one microSD port, 2 Ethernet ports, 2 USB ports, I2C, SPI, CAN, RS-485, GPIO, UART interfaces, and 2 RGB LEDs.

---
 MAINTAINERS                                   |  10 +
 arch/arm/dts/Makefile                         |   3 +
 arch/arm/dts/o4-imx-nano.dts                  | 241 ++++++++++++++++++
 arch/arm/dts/o4-imx6ull-nano.dtsi             |  87 +++++++
 arch/arm/mach-imx/mx6/Kconfig                 |  13 +
 .../out4/o4-imx6ull-nano/K4B4G1646D-BCMA.cfg  |  91 +++++++
 board/out4/o4-imx6ull-nano/Kconfig            |  57 +++++
 .../o4-imx6ull-nano/MT41K256M16HA-125E.cfg    |  91 +++++++
 board/out4/o4-imx6ull-nano/Makefile           |   4 +
 board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c  |  86 +++++++
 configs/o4-imx6ull-nano_defconfig             | 103 ++++++++
 include/configs/o4-imx6ull-nano.h             |  25 ++
 12 files changed, 811 insertions(+)
 create mode 100644 arch/arm/dts/o4-imx-nano.dts
 create mode 100644 arch/arm/dts/o4-imx6ull-nano.dtsi
 create mode 100644 board/out4/o4-imx6ull-nano/K4B4G1646D-BCMA.cfg
 create mode 100644 board/out4/o4-imx6ull-nano/Kconfig
 create mode 100644 board/out4/o4-imx6ull-nano/MT41K256M16HA-125E.cfg
 create mode 100644 board/out4/o4-imx6ull-nano/Makefile
 create mode 100644 board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c
 create mode 100644 configs/o4-imx6ull-nano_defconfig
 create mode 100644 include/configs/o4-imx6ull-nano.h
MAINTAINERS +10 -0
index c6dd9bf838..786476c016 100644
@@ -916,6 +916,16 @@ S:	Orphaned (Since 2017-01)
 T:	git https://source.denx.de/u-boot/custodians/u-boot-onenand.git
 F:	drivers/mtd/onenand/
 
+OUT4-IMX6ULL-NANO BOARD
+M:	Oleh Kravchenko <[email protected]>
+S:	Maintained
+T:	git https://github.com/Oleh-Kravchenko/u-boot-out4.git
+F:	arch/arm/dts/o4-imx-nano.dts
+F:	arch/arm/dts/o4-imx6ull-nano.dtsi
+F:	board/out4
+F:	configs/o4-imx6ull-nano_defconfig
+F:	include/configs/o4-imx6ull-nano.h
+
 PATMAN
 M:	Simon Glass <[email protected]>
 S:	Maintained
arch/arm/dts/Makefile +3 -0
index 9a8de46272..0b2de37280 100644
@@ -764,6 +764,9 @@ dtb-$(CONFIG_ARCH_MX6) += \
 	imx6-apalis.dtb \
 	imx6-colibri.dtb
 
+dtb-$(CONFIG_O4_IMX_NANO) += \
+	o4-imx-nano.dtb
+
 dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \
 	imx7d-sdb-qspi.dtb \
 	imx7-colibri-emmc.dtb \
arch/arm/dts/o4-imx-nano.dts new file +241 -0

241 lines not on this page · raw message

arch/arm/dts/o4-imx6ull-nano.dtsi new file +87 -0

87 lines not on this page · raw message

arch/arm/mach-imx/mx6/Kconfig +13 -0
index 92fb4c4f23..419ae79cd0 100644
@@ -688,6 +688,18 @@ config TARGET_BRPPT2
           Support
           B&R BRPPT2 platform
           based on Freescale's iMX6 SoC
+
+config TARGET_O4_IMX6ULL_NANO
+	bool "O4-iMX6ULL-NANO"
+	depends on MX6ULL
+	select BOARD_LATE_INIT
+	select DM
+	select DM_THERMAL
+	imply CMD_DM
+	help
+	  Support for www.out4.ru O4-iMX6UL-NANO platform
+	  based on Freescale's i.MX6UL/i.MX6ULL SoC.
+
 endchoice
 
 config SYS_SOC
@@ -747,5 +759,6 @@ source "board/udoo/neo/Kconfig"
 source "board/wandboard/Kconfig"
 source "board/warp/Kconfig"
 source "board/BuR/brppt2/Kconfig"
+source "board/out4/o4-imx6ull-nano/Kconfig"
 
 endif
board/out4/o4-imx6ull-nano/K4B4G1646D-BCMA.cfg new file +91 -0

91 lines not on this page · raw message

board/out4/o4-imx6ull-nano/Kconfig new file +57 -0

57 lines not on this page · raw message

board/out4/o4-imx6ull-nano/MT41K256M16HA-125E.cfg new file +91 -0

91 lines not on this page · raw message

board/out4/o4-imx6ull-nano/Makefile new file +4 -0
new file mode 100644
index 0000000000..a3f4646d9e
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (C) 2021 Oleh Kravchenko <[email protected]>
+
+obj-y := o4-imx6ull-nano.o
board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c new file +86 -0

86 lines not on this page · raw message

configs/o4-imx6ull-nano_defconfig new file +103 -0

103 lines not on this page · raw message

include/configs/o4-imx6ull-nano.h new file +25 -0
new file mode 100644
index 0000000000..23308b6d01
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/* Copyright (C) 2021 Oleh Kravchenko <[email protected]> */
+
+#ifndef __O4_IMX6ULL_NANO_CONFIG_H
+#define __O4_IMX6ULL_NANO_CONFIG_H
+
+#include "mx6_common.h"
+
+#define CONFIG_SYS_MALLOC_LEN		(10 * SZ_1M)
+#define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM
+#define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
+#define CONFIG_SYS_INIT_RAM_SIZE	IRAM_SIZE
+#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)
+
+#if IS_ENABLED(CONFIG_CMD_USB)
+#	define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
+#endif /* CONFIG_CMD_USB */
+
+#if IS_ENABLED(CONFIG_FEC_MXC)
+#	define CONFIG_FEC_XCV_TYPE	RMII
+#endif /* CONFIG_FEC_MXC */
+
+#endif /* __O4_IMX6ULL_NANO_CONFIG_H */
Signature · 1 line
2.26.3
#1 lore raw

PATCH v2 2/2 Add EV-iMX280-NANO-X-MB board

A simple prototyping board with one microSD port, one Ethernet port, 2 USB ports, I2C, SPI, GPIO, and UART interfaces.

---
 MAINTAINERS                                  |   2 +
 arch/arm/dts/Makefile                        |   3 +
 arch/arm/dts/ev-imx280-nano-x-mb.dts         | 109 +++++++++++++++++++
 board/out4/o4-imx6ull-nano/Kconfig           |   7 ++
 board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c |  22 ++--
 configs/ev-imx280-nano-x-mb_defconfig        |  91 ++++++++++++++++
 6 files changed, 224 insertions(+), 10 deletions(-)
 create mode 100644 arch/arm/dts/ev-imx280-nano-x-mb.dts
 create mode 100644 configs/ev-imx280-nano-x-mb_defconfig
MAINTAINERS +2 -0
index 786476c016..609d059f17 100644
@@ -920,9 +920,11 @@ OUT4-IMX6ULL-NANO BOARD
 M:	Oleh Kravchenko <[email protected]>
 S:	Maintained
 T:	git https://github.com/Oleh-Kravchenko/u-boot-out4.git
+F:	arch/arm/dts/ev-imx280-nano-x-mb.dts
 F:	arch/arm/dts/o4-imx-nano.dts
 F:	arch/arm/dts/o4-imx6ull-nano.dtsi
 F:	board/out4
+F:	configs/ev-imx280-nano-x-mb_defconfig
 F:	configs/o4-imx6ull-nano_defconfig
 F:	include/configs/o4-imx6ull-nano.h
 
arch/arm/dts/Makefile +3 -0
index 0b2de37280..3868d4d0f9 100644
@@ -767,6 +767,9 @@ dtb-$(CONFIG_ARCH_MX6) += \
 dtb-$(CONFIG_O4_IMX_NANO) += \
 	o4-imx-nano.dtb
 
+dtb-$(CONFIG_EV_IMX280_NANO_X_MB) += \
+	ev-imx280-nano-x-mb.dtb
+
 dtb-$(CONFIG_MX7) += imx7d-sdb.dtb \
 	imx7d-sdb-qspi.dtb \
 	imx7-colibri-emmc.dtb \
arch/arm/dts/ev-imx280-nano-x-mb.dts new file +109 -0

109 lines not on this page · raw message

board/out4/o4-imx6ull-nano/Kconfig +7 -0
index c2497d521f..e2ab80b6d4 100644
@@ -45,6 +45,12 @@ config O4_IMX_NANO
 	    A baseboard for EV-iMX280-NANO module:
 	    https://out4.ru/products/board/18-o4-imx-nano.html
 
+config EV_IMX280_NANO_X_MB
+	bool "EV-IMX280-NANO-X-MB"
+	help
+	    A simple baseboard for EV-iMX280-NANO module:
+	    http://evodbg.net/products/mx28-eval-kits/14-ev-imx280-nano-x-mb.html
+
 endchoice
 
 config IMX_CONFIG
@@ -53,5 +59,6 @@ config IMX_CONFIG
 
 config DEFAULT_DEVICE_TREE
 	default "o4-imx-nano" if O4_IMX_NANO
+	default "ev-imx280-nano-x-mb" if EV_IMX280_NANO_X_MB
 
 endif
board/out4/o4-imx6ull-nano/o4-imx6ull-nano.c +12 -10
index fec1755c32..edb200e9e5 100644
@@ -39,16 +39,18 @@ static int setup_fec_clock(void)
 		if (ret)
 			return ret;
 
-		/*
-		 * Use 50M anatop loopback REF_CLK2 for ENET2,
-		 * clear gpr1[14], set gpr1[18].
-		 */
-		clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC2_MASK,
-				IOMUX_GPR1_FEC2_CLOCK_MUX1_SEL_MASK);
-
-		ret = enable_fec_anatop_clock(1, ENET_50MHZ);
-		if (ret)
-			return ret;
+		if (!IS_ENABLED(CONFIG_EV_IMX280_NANO_X_MB)) {
+			/*
+			 * Use 50M anatop loopback REF_CLK2 for ENET2,
+			 * clear gpr1[14], set gpr1[18].
+			 */
+			clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC2_MASK,
+					IOMUX_GPR1_FEC2_CLOCK_MUX1_SEL_MASK);
+
+			ret = enable_fec_anatop_clock(1, ENET_50MHZ);
+			if (ret)
+				return ret;
+		}
 
 		enable_enet_clk(1);
 	}
configs/ev-imx280-nano-x-mb_defconfig new file +91 -0

91 lines not on this page · raw message

Signature · 1 line
2.26.3