From patchwork Wed Jul 1 17:26:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 240638 List-Id: U-Boot discussion From: sebastian.reichel at collabora.com (Sebastian Reichel) Date: Wed, 1 Jul 2020 19:26:13 +0200 Subject: [PATCH 00/12] Introduce B1x5v2 support Message-ID: <20200701172625.121978-1-sebastian.reichel@collabora.com> This series introduces support for a new i.MX6DL GE patient monitor series. Patch 1: Support using DM_SPI_FLASH with non-DM SPL code. Patch 2: Add support for storing bootcount in SPI-flash Patch 3: Fix reading the status of output GPIOs Patch 4+5: Improve M41T62 RTC driver's reset routine. PATCH 6: Support disable_ldb_di_clock_sources for i.MX6DL Patch 7+8: Add poweroff-gpio support Patch 9-11: restructure common GE code Patch 12: Add the actual board, using SPL and DM The series is based on v2020.07-rc5. -- Sebastian Marek Vasut (1): treewide: Replace CONFIG_DM_SPI_FLASH with CONFIG_IS_ENABLED(DM_SPI_FLASH) Sebastian Reichel (11): bootcount: add a DM SPI flash backing store for bootcount gpio: mxc_gpio: add support to read status of output gpios rtc: m41t62: reset SQW in m41t62_rtc_reset rtc: m41t62: add oscillator fail bit reset support imx6: allow usage of disable_ldb_di_clock_sources for CONFIG_MX6QDL poweroff: Introduce poweroff uclass poweroff: Add poweroff-gpio driver board: ge: common: rename ge_common.c to ge_rtc.c board: ge: common: add config option for RTC and VPD feature board: ge: common: vpd: separate I2C specific code board: ge: b1x5v2: Add GE B1x5v2 and B1x5Pv2 arch/arm/dts/Makefile | 1 + arch/arm/dts/imx6dl-b1x5v2.dts | 624 +++++++++++++++++++ arch/arm/mach-imx/mx6/Kconfig | 10 + arch/arm/mach-imx/mx6/clock.c | 2 +- board/ge/b1x5v2/Kconfig | 14 + board/ge/b1x5v2/Makefile | 6 + board/ge/b1x5v2/b1x5v2.c | 710 ++++++++++++++++++++++ board/ge/b1x5v2/spl.c | 587 ++++++++++++++++++ board/ge/bx50v3/Kconfig | 2 + board/ge/bx50v3/bx50v3.c | 4 +- board/ge/common/Kconfig | 7 + board/ge/common/Makefile | 3 +- board/ge/common/{ge_common.c => ge_rtc.c} | 0 board/ge/common/{ge_common.h => ge_rtc.h} | 0 board/ge/common/vpd_reader.c | 12 +- board/ge/common/vpd_reader.h | 23 +- board/ge/mx53ppd/Kconfig | 2 + board/ge/mx53ppd/mx53ppd.c | 4 +- cmd/sf.c | 4 +- configs/ge_b1x5v2_defconfig | 148 +++++ drivers/bootcount/Kconfig | 10 + drivers/bootcount/Makefile | 1 + drivers/bootcount/spi-flash.c | 125 ++++ drivers/gpio/mxc_gpio.c | 10 +- drivers/mtd/spi/sf_probe.c | 2 +- drivers/net/fm/fm.c | 4 +- drivers/power/Kconfig | 17 + drivers/power/Makefile | 3 + drivers/power/poweroff-gpio.c | 87 +++ drivers/power/poweroff-uclass.c | 43 ++ drivers/rtc/m41t62.c | 139 ++++- include/configs/ge_b1x5v2.h | 125 ++++ include/dm/uclass-id.h | 1 + include/power/poweroff.h | 32 + include/spi_flash.h | 2 +- 35 files changed, 2735 insertions(+), 29 deletions(-) create mode 100644 arch/arm/dts/imx6dl-b1x5v2.dts create mode 100644 board/ge/b1x5v2/Kconfig create mode 100644 board/ge/b1x5v2/Makefile create mode 100644 board/ge/b1x5v2/b1x5v2.c create mode 100644 board/ge/b1x5v2/spl.c create mode 100644 board/ge/common/Kconfig rename board/ge/common/{ge_common.c => ge_rtc.c} (100%) rename board/ge/common/{ge_common.h => ge_rtc.h} (100%) create mode 100644 configs/ge_b1x5v2_defconfig create mode 100644 drivers/bootcount/spi-flash.c create mode 100644 drivers/power/poweroff-gpio.c create mode 100644 drivers/power/poweroff-uclass.c create mode 100644 include/configs/ge_b1x5v2.h create mode 100644 include/power/poweroff.h