From patchwork Wed Oct 23 18:21:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Beckett X-Patchwork-Id: 1182351 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.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 lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46yzJr4cR1z9sCJ for ; Thu, 24 Oct 2019 05:23:24 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 419BFC21E1B; Wed, 23 Oct 2019 18:23:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6EEB6C21DA2; Wed, 23 Oct 2019 18:22:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4996CC21D4A; Wed, 23 Oct 2019 18:22:37 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lists.denx.de (Postfix) with ESMTPS id C3C17C21C51 for ; Wed, 23 Oct 2019 18:22:36 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id 3430928F8A0 From: Robert Beckett To: U-Boot Mailing List Date: Wed, 23 Oct 2019 19:21:21 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 00/41] convert GE boards to DM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This patch series converts GE boards to use DM features. Most of the patches are GE board specific to modify the board code to use the DM drivers, or modify the device tree. There are a few new features: patch 11 & 12: Add i2c_eeprom partitioning via device tree patch 16: Adds an i2c chip addr offset overflow mask to allow offsets to effectively steal chip addresses. This handles a common i2c addressing mode used on various devices. patch 17: Improves i2c testing by giving test direct visibility of chip address and offset, and fixing a couple of issues. patch 18: Adds an i2c test for the new addressing mode from patch 16. patch 19: Updates i2c eeprom to use the new addressing mode added in patch 16. patch 20: Add i2c eeprom bootcount driver patch 38-40: Add Martin Fuzzey's DA9063 PMIC driver with modifications to use the new i2c addressing mode from patch 16 and a bit of a cleanup. v1->v2: - Integrate Martin's PMIC driver in place of the one from v1. - Handle feedback from v1 w.r.t i2c addressing mode (improve documentation, improve i2c testing, add new i2c tests) Denis Zalevskiy (2): configs: ppd: DM for USB and regulators PPD board: ge: bx50v3: Enable DM for PCI and ethernet Ian Ray (8): configs: bx50v3: Fix boot hang with video board: ge: bx50v3: Fix run-time warning board: ge: bx50v3: Fix message output to video console board: ge: pass rtc_status via device tree board: ge: mx53ppd: move uart initialisation to own function board: ge: mx53ppd: enable DM_VIDEO rtc: s35392a: encode command correctly board: ge: mx53ppd: fix RTC compatible definition Martin Fuzzey (3): pmic: allow dump command for non contiguous register maps power: pmic: add driver for Dialog DA9063 PMIC power: regulator: add driver for Dialog DA9063 PMIC Robert Beckett (28): board: ge: bx50v3: use imx wdt board: ge: mx53ppd: use imx wdt board: ge: bx50v3: Add i2c bus description board: ge: mx53ppd: Add i2c bus descritpion misc: i2c_eeprom: add fixed partitions support misc: i2c_eeprom: add size query board: ge: bx50v3: use DM I2C board: ge: mx53ppd: use DM I2C board: ge: convert vpd to use i2c eeprom i2c: add support for offset overflow in to address dm: i2c: EEPROM simulator allow tests visibility of addr and offset dm: i2c: EEPROM simulator add tests for addr offset mask misc: i2c_eeprom: set offset len and chip addr offset mask bootcount: add a DM i2c eeprom backing store for bootcount board: ge: bx50v3: add i2c eeprom bootcount storage board: ge: mx53ppd: add i2c eeprom bootcount storage rtc: rx8010sj: fix DM initialization board: ge: bx50v3, mx53ppd: use DM rtc board: ge: bx50v3: use DM i2c for PMIC initialization board: ge: mx53ppd: remove redundant power config board: ge: bx50v3, mx53ppd: disable I2C compatibility API board: ge: bx50v3: Enable DM PWM for backlight board: ge: mx53ppd: clean up DM PWM video and backlight board: ge: mx53ppd: Use DM for ethernet board: ge: bx50v3: use DM for uart serial: mxc: add imx53 and imx21 compatible string board: ge: mx53ppd: use DM for uart board: ge: bx50v3: use DM PMIC driver arch/arm/dts/imx53-ppd.dts | 317 ++++++++++++++++++ arch/arm/dts/imx6q-bx50v3.dts | 529 +++++++++++++++++++++++++++++++ arch/sandbox/include/asm/test.h | 7 + board/ge/bx50v3/Kconfig | 2 - board/ge/bx50v3/bx50v3.c | 291 ++++------------- board/ge/common/Kconfig | 14 - board/ge/common/ge_common.c | 33 +- board/ge/common/vpd_reader.c | 37 ++- board/ge/mx53ppd/Kconfig | 2 - board/ge/mx53ppd/Makefile | 2 +- board/ge/mx53ppd/mx53ppd.c | 75 +---- board/ge/mx53ppd/mx53ppd_video.c | 125 +++----- board/ge/mx53ppd/ppd_gpio.h | 8 - cmd/pmic.c | 12 +- configs/ge_bx50v3_defconfig | 40 ++- configs/mx53ppd_defconfig | 35 +- drivers/bootcount/Kconfig | 10 + drivers/bootcount/Makefile | 1 + drivers/bootcount/i2c-eeprom.c | 95 ++++++ drivers/i2c/i2c-uclass.c | 34 +- drivers/misc/i2c_eeprom.c | 278 ++++++++++++++-- drivers/misc/i2c_eeprom_emul.c | 80 +++-- drivers/power/pmic/Kconfig | 7 + drivers/power/pmic/Makefile | 1 + drivers/power/pmic/da9063.c | 130 ++++++++ drivers/power/regulator/Kconfig | 10 + drivers/power/regulator/Makefile | 1 + drivers/power/regulator/da9063.c | 388 +++++++++++++++++++++++ drivers/rtc/rx8010sj.c | 2 +- drivers/rtc/s35392a.c | 27 +- drivers/serial/serial_mxc.c | 2 + include/configs/ge_bx50v3.h | 64 +--- include/configs/mx53ppd.h | 69 +--- include/i2c.h | 33 ++ include/i2c_eeprom.h | 12 + include/power/da9063_pmic.h | 320 +++++++++++++++++++ test/dm/i2c.c | 112 ++++++- 37 files changed, 2563 insertions(+), 642 deletions(-) delete mode 100644 board/ge/common/Kconfig create mode 100644 drivers/bootcount/i2c-eeprom.c create mode 100644 drivers/power/pmic/da9063.c create mode 100644 drivers/power/regulator/da9063.c create mode 100644 include/power/da9063_pmic.h