From patchwork Thu Sep 5 07:54:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1158255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) 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=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46PCfX2q03z9s7T for ; Thu, 5 Sep 2019 17:55:29 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 74E87C21DEC; Thu, 5 Sep 2019 07:55:19 +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=none 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 543DCC21C6A; Thu, 5 Sep 2019 07:55:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5D852C21C50; Thu, 5 Sep 2019 07:55:16 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 0A0FAC21C2F for ; Thu, 5 Sep 2019 07:55:16 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46PCfC5dWmz1rW69; Thu, 5 Sep 2019 09:55:15 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46PCfC4fcMz1qqkk; Thu, 5 Sep 2019 09:55:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 9bbA5n98Q2yG; Thu, 5 Sep 2019 09:55:13 +0200 (CEST) X-Auth-Info: TYLkGyF9y/Wj4bWPaEuFaCLbXsVC69FkNwvVegJNuTg= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 5 Sep 2019 09:55:13 +0200 (CEST) From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Peng Fan , Fabio Estevam Date: Thu, 5 Sep 2019 09:54:54 +0200 Message-Id: <20190905075501.11225-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 Cc: Marek Vasut , "NXP i.MX U-Boot Team" Subject: [U-Boot] [PATCH v3 0/7] imx: mxs: Fixes and DM/DTS conversion code for several i.MX28 drivers 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series focuses on fixing and enhancing the i.MX28 to be converted to DM/DTS. The mxs gpio, spi and eMMC drivers have been fixed and converted to DM/DTS. Some of them also gain support for OF_PLATDATA, when run in constrained SPL (u-boot.sb). Applies on -master SHA1: 448f11f7503995746a7b71e5e3b3a831c4651be9 Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/580944898 Changes in v3: - Drop following patches from this series (as they are generic, non i.MX specific code): [U-Boot,v2,8/9] spl: Introduce SPL_DM_GPIO Kconfig define [U-Boot,v2,1/9] doc: fix: Replace SPL_OF_PLATDATA with OF_PLATDATA in examples Changes in v2: - New patch - Correct position of struct mmc_ops mxsmmc_ops to avoid build breaks on board using legacy i.MX28 mmc driver. - New patch - New patch Lukasz Majewski (7): dts: imx28: Remove #include "imx28.dtsi" from imx28-u-boot.dtsi file spl: Init proper struct driver member (platdata_auto_alloc_size) for mxs_spi spi: fix: Call mxs_reset_block() during DM/DTS probe spi: Add support for SPL_OF_PLATDATA to mxs_spi.c driver mmc: Convert mxsmmc eMMC driver for i.MX2{38} to DM/DTS mmc: Replace printf with debug call for timeouts in the i.MX28 mxs driver spi: Add support for SPL_OF_PLATDATA to mxs_gpio.c driver arch/arm/dts/imx28-u-boot.dtsi | 1 - drivers/gpio/mxs_gpio.c | 72 +++++-- drivers/mmc/mxsmmc.c | 445 ++++++++++++++++++++++++++++++++++------- drivers/spi/mxs_spi.c | 38 +++- 4 files changed, 464 insertions(+), 92 deletions(-)