From patchwork Thu Aug 13 08:28:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 1344213 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=collabora.com Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BS3BF4Qvsz9sPB for ; Thu, 13 Aug 2020 20:45:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A97048227F; Thu, 13 Aug 2020 12:44:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 6099D8222A; Thu, 13 Aug 2020 10:28:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 270E982244 for ; Thu, 13 Aug 2020 10:28:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sebastian.reichel@collabora.com Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 5E3AB299918 Received: by jupiter.universe (Postfix, from userid 1000) id A3774480115; Thu, 13 Aug 2020 10:28:29 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Cc: Jaehoon Chung , Simon Glass , u-boot@lists.denx.de Subject: [PATCHv2 00/10] Introduce B1x5v2 support Date: Thu, 13 Aug 2020 10:28:09 +0200 Message-Id: <20200813082819.86973-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 13 Aug 2020 12:44:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This series introduces support for a new i.MX6DL based GE patient monitor series. Patch 1: Add support for storing bootcount in SPI-flash Patch 2: Fix reading the status of output GPIOs Patch 3+4: Improve M41T62 RTC driver's reset routine. PATCH 5: Support disable_ldb_di_clock_sources for i.MX6DL Patch 6: Add poweroff-gpio support Patch 7-9: restructure common GE code Patch 10: Add the actual board, using SPL and DM Changes since PATCHv1 [0]: * Rebased to v2020.10-rc2 * Original patch 1 (support for DM_SPI_FLASH with non-DM SPL) has been dropped, since a similar patch has been merged in the meantime * poweroff-gpio support is now added using sysreset uclass instead of introducing a new poweroff uclass * B1x5v2 patch has been updated to follow recent U-Boot changes and to add USB mass storage support [0] http://patchwork.ozlabs.org/project/uboot/list/?series=187150 -- Sebastian Sebastian Reichel (10): 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 sysreset: 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 | 654 ++++++++++++++++++++ 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 | 698 ++++++++++++++++++++++ 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 +- configs/ge_b1x5v2_defconfig | 136 +++++ drivers/bootcount/Kconfig | 10 + drivers/bootcount/Makefile | 1 + drivers/bootcount/spi-flash.c | 125 ++++ drivers/gpio/mxc_gpio.c | 10 +- drivers/rtc/m41t62.c | 139 ++++- drivers/sysreset/Kconfig | 6 + drivers/sysreset/Makefile | 1 + drivers/sysreset/poweroff_gpio.c | 84 +++ include/configs/ge_b1x5v2.h | 127 ++++ 28 files changed, 2645 insertions(+), 23 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/sysreset/poweroff_gpio.c create mode 100644 include/configs/ge_b1x5v2.h