Skip to contentSkip to conversation

mtd: spi-nor-ids: Add support for ESMT/EON EN25Q80B

PATCH Superseded Frieder Schrempf 3 participants 7 messages Feb 13, 2024 – Feb 15, 2024

Subsystems (4)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 mtd: spi-nor-ids: Add support for ESMT/EON EN25Q80B

From: Frieder Schrempf <[email protected]>

The datasheet can be found here:
https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/EN25Q80B_Ver.E.pdf

---
Changes in v2:
* Add R-b tag from Fabio (Thanks!)

---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +1 -0
index 38a287487ed..4e83b8c94c9 100644
@@ -80,6 +80,7 @@ const struct flash_info spi_nor_ids[] = {
 #endif
 #ifdef CONFIG_SPI_FLASH_EON		/* EON */
 	/* EON -- en25xxx */
+	{ INFO("en25q80b",   0x1c3014, 0, 64 * 1024,   16, SECT_4K) },
 	{ INFO("en25q32b",   0x1c3016, 0, 64 * 1024,   64, 0) },
 	{ INFO("en25q64",    0x1c3017, 0, 64 * 1024,  128, SECT_4K) },
 	{ INFO("en25q128b",  0x1c3018, 0, 64 * 1024,  256, 0) },
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 2/3 board: Add support for Sielaff i.MX6 Solo board

From: Frieder Schrempf <[email protected]>

The Sielaff i.MX6 Solo board is a control and HMI board for vending machines. Add support for this board.

The devicetree files are taken from pending changes in the Linux kernel that are available from linux-next and will likely be part of Linux v6.9.

---
Changes in v2:
* Implement changes suggested by Fabio (Thanks!)
* Fix system reset and remove unneeded cpu_reset()
* Add 'static const' to nfc_pads[]
* Remove hostname from env
* Remove options to disable caches
* Enable watchdog and wdt command
* Enable LTO

---
 arch/arm/dts/Makefile                         |   1 +
 arch/arm/dts/imx6dl-sielaff-u-boot.dtsi       |  38 ++
 arch/arm/dts/imx6dl-sielaff.dts               | 533 ++++++++++++++++++
 arch/arm/mach-imx/mx6/Kconfig                 |  10 +
 board/sielaff/imx6dl-sielaff/Kconfig          |  15 +
 board/sielaff/imx6dl-sielaff/Makefile         |   8 +
 board/sielaff/imx6dl-sielaff/imx6dl-sielaff.c | 111 ++++
 .../sielaff/imx6dl-sielaff/imx6dl-sielaff.env | 114 ++++
 board/sielaff/imx6dl-sielaff/spl.c            | 273 +++++++++
 configs/imx6dl_sielaff_defconfig              | 120 ++++
 include/configs/imx6dl-sielaff.h              |  25 +
 11 files changed, 1248 insertions(+)
 create mode 100644 arch/arm/dts/imx6dl-sielaff-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx6dl-sielaff.dts
 create mode 100644 board/sielaff/imx6dl-sielaff/Kconfig
 create mode 100644 board/sielaff/imx6dl-sielaff/Makefile
 create mode 100644 board/sielaff/imx6dl-sielaff/imx6dl-sielaff.c
 create mode 100644 board/sielaff/imx6dl-sielaff/imx6dl-sielaff.env
 create mode 100644 board/sielaff/imx6dl-sielaff/spl.c
 create mode 100644 configs/imx6dl_sielaff_defconfig
 create mode 100644 include/configs/imx6dl-sielaff.h
arch/arm/dts/Makefile +1 -0
index 0fcae77cefe..d60fa1179af 100644
@@ -930,6 +930,7 @@ dtb-y += \
 	imx6dl-riotboard.dtb \
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
+	imx6dl-sielaff.dtb \
 	imx6dl-wandboard-revd1.dtb \
 	imx6s-dhcom-drc02.dtb
 
arch/arm/dts/imx6dl-sielaff-u-boot.dtsi new file +38 -0
new file mode 100644
index 00000000000..8f5a70ccb85
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright (C) 2022 Kontron Electronics GmbH
+ */
+
+#include "imx6qdl-u-boot.dtsi"
+
+/ {
+	binman: binman {
+		filename = "flash.bin";
+		pad-byte = <0x00>;
+
+		spl: blob-ext@1 {
+			offset = <0x0>;
+			filename = "SPL";
+		};
+
+		uboot: blob-ext@2 {
+			offset = <0x11000>;
+			filename = "u-boot.img";
+		};
+	};
+
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&wdog1>;
+	};
+};
+
+&fec {
+	phy-mode = "rmii";
+	phy-reset-gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
+	phy-reset-duration = <100>;
+};
+
+&gpmi {
+	fsl,legacy-bch-geometry;
+};
arch/arm/dts/imx6dl-sielaff.dts new file +533 -0

533 lines not on this page · raw message

arch/arm/mach-imx/mx6/Kconfig +10 -0
index 114cce4d9b9..15ee2b933f6 100644
@@ -356,6 +356,15 @@ config TARGET_MX6Q_ACC
 	select DM_THERMAL
 	select SUPPORT_SPL
 
+config TARGET_MX6S_SIELAFF
+	bool "Sielaff i.MX6 Solo Board"
+	depends on MX6S
+	select BINMAN
+	select DM
+	select DM_THERMAL
+	select SUPPORT_SPL
+	imply CMD_DM
+
 config TARGET_MX6SABREAUTO
 	bool "mx6sabreauto"
 	depends on MX6QDL
@@ -708,6 +717,7 @@ source "board/softing/vining_2000/Kconfig"
 source "board/liebherr/display5/Kconfig"
 source "board/liebherr/mccmon6/Kconfig"
 source "board/logicpd/imx6/Kconfig"
+source "board/sielaff/imx6dl-sielaff/Kconfig"
 source "board/solidrun/mx6cuboxi/Kconfig"
 source "board/somlabs/visionsom-6ull/Kconfig"
 source "board/technexion/pico-imx6/Kconfig"
board/sielaff/imx6dl-sielaff/Kconfig new file +15 -0
new file mode 100644
index 00000000000..1b74a7d90ee
@@ -0,0 +1,15 @@
+if TARGET_MX6S_SIELAFF
+
+config SYS_BOARD
+	string
+	default "imx6dl-sielaff"
+
+config SYS_VENDOR
+	string
+	default "sielaff"
+
+config SYS_CONFIG_NAME
+	string
+	default "imx6dl-sielaff"
+
+endif
board/sielaff/imx6dl-sielaff/Makefile new file +8 -0
new file mode 100644
index 00000000000..65cecfe6f6c
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0+
+# (C) Copyright 2022 Kontron Electronics GmbH
+
+ifdef CONFIG_SPL_BUILD
+obj-y := spl.o
+else
+obj-y := imx6dl-sielaff.o
+endif
board/sielaff/imx6dl-sielaff/imx6dl-sielaff.c new file +111 -0

111 lines not on this page · raw message

board/sielaff/imx6dl-sielaff/imx6dl-sielaff.env new file +114 -0

114 lines not on this page · raw message

board/sielaff/imx6dl-sielaff/spl.c new file +273 -0

273 lines not on this page · raw message

configs/imx6dl_sielaff_defconfig new file +120 -0

120 lines not on this page · raw message

include/configs/imx6dl-sielaff.h new file +25 -0
new file mode 100644
index 00000000000..df074135079
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2022 Kontron Electronics GmbH
+ */
+#ifndef __MX6SSIELAFF_CONFIG_H
+#define __MX6SSIELAFF_CONFIG_H
+
+#include <asm/arch/imx-regs.h>
+#include <linux/sizes.h>
+#include "mx6_common.h"
+
+#define CFG_MXC_UART_BASE		UART2_BASE
+
+#define PHYS_SDRAM_SIZE			SZ_512M
+#define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
+#define CFG_SYS_SDRAM_BASE		PHYS_SDRAM
+#define CFG_SYS_INIT_RAM_ADDR		IRAM_BASE_ADDR
+#define CFG_SYS_INIT_RAM_SIZE		IRAM_SIZE
+
+#define CFG_SYS_FSL_ESDHC_ADDR		USDHC3_BASE_ADDR
+#define CFG_SYS_FSL_USDHC_NUM		1
+
+#define CFG_SYS_NAND_BASE		0x40000000
+
+#endif /* __MX6SSIELAFF_CONFIG_H */
Signature · 1 line
2.43.0
reviewer Reviewed-by on v2 2/3
#2 lore raw

Re: [PATCH v2 2/3] board: Add support for Sielaff i.MX6 Solo board

Quoted 11 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The Sielaff i.MX6 Solo board is a control and HMI board for vending machines. Add support for this board.

The devicetree files are taken from pending changes in the Linux kernel that are available from linux-next and will likely be part of Linux v6.9.

reviewer
#3 lore raw

Re: [PATCH v2 2/3] board: Add support for Sielaff i.MX6 Solo board

In reply to Frieder Schrempf

Hi Frieder,

Quoted 11 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The Sielaff i.MX6 Solo board is a control and HMI board for vending machines. Add support for this board.

The devicetree files are taken from pending changes in the Linux kernel that are available from linux-next and will likely be part of Linux v6.9.

Quoted 9 lines

---
Changes in v2:
* Implement changes suggested by Fabio (Thanks!)
* Fix system reset and remove unneeded cpu_reset()
* Add 'static const' to nfc_pads[]
* Remove hostname from env
* Remove options to disable caches
* Enable watchdog and wdt command
* Enable LTO

I put this series in CI and it complained that there is no MAINTAINERS entry for this board:

https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/784464

and there was also an issue with the documentation:

https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/784463

Please fix these two issues and submit v3.

#4 lore raw

Re: [PATCH v2 2/3] board: Add support for Sielaff i.MX6 Solo board

Quoted 27 lines · Fabio Estevam

Hi Frieder,

Quoted 11 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The Sielaff i.MX6 Solo board is a control and HMI board for vending machines. Add support for this board.

The devicetree files are taken from pending changes in the Linux kernel that are available from linux-next and will likely be part of Linux v6.9.

Quoted 9 lines

---
Changes in v2:
* Implement changes suggested by Fabio (Thanks!)
* Fix system reset and remove unneeded cpu_reset()
* Add 'static const' to nfc_pads[]
* Remove hostname from env
* Remove options to disable caches
* Enable watchdog and wdt command
* Enable LTO

I put this series in CI and it complained that there is no MAINTAINERS entry for this board:

Quoted 7 lines

https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/784464

and there was also an issue with the documentation:

https://source.denx.de/u-boot/custodians/u-boot-imx/-/jobs/784463

Please fix these two issues and submit v3.

Oops, right. Totally forgot about these two things. I just sent out a v3. Thanks!

#5 lore raw

PATCH v2 3/3 doc: board: Add minimal documentation for Sielaff i.MX6 Solo board

In reply to Frieder Schrempf

From: Frieder Schrempf <[email protected]>

Describe how to build and boot for the Sielaff i.MX6 Solo board.

---
Changes in v2:
* none

---
 doc/board/sielaff/imx6dl-sielaff.rst | 32 ++++++++++++++++++++++++++++
 doc/board/sielaff/index.rst          |  9 ++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 doc/board/sielaff/imx6dl-sielaff.rst
 create mode 100644 doc/board/sielaff/index.rst
doc/board/sielaff/imx6dl-sielaff.rst new file +32 -0
new file mode 100644
index 00000000000..24dd67ccaef
@@ -0,0 +1,32 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+Sielaff i.MX6 Solo Board
+========================
+
+The Sielaff i.MX6 Solo board is a control and HMI board for vending
+machines.
+
+Quick Start
+-----------
+
+- Build U-Boot
+- Boot
+
+Build U-Boot
+^^^^^^^^^^^^
+
+.. code-block:: bash
+
+   $ make imx6dl_sielaff_defconfig
+   $ make CROSS_COMPILE=arm-none-linux-gnueabihf-
+
+Burn the flash.bin to SD card at an offset of 1 KiB:
+
+.. code-block:: bash
+
+   $ dd if=flash.bin of=/dev/sd[x] bs=1K seek=1 conv=notrunc
+
+Boot
+^^^^
+
+Put the SD card in the slot on the board and apply power.
doc/board/sielaff/index.rst new file +9 -0
new file mode 100644
index 00000000000..a8376484d88
@@ -0,0 +1,9 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+Sielaff
+=======
+
+.. toctree::
+   :maxdepth: 2
+
+   imx6dl-sielaff
Signature · 1 line
2.43.0