From patchwork Wed Nov 27 13:46:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11264027 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3CF714DB for ; Wed, 27 Nov 2019 13:48:45 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7DAAF20409 for ; Wed, 27 Nov 2019 13:48:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DAAF20409 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=cip-dev-bounces@lists.cip-project.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4D78D85650; Wed, 27 Nov 2019 13:48:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0uTGzZkJYZqr; Wed, 27 Nov 2019 13:48:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1D71385572; Wed, 27 Nov 2019 13:48:43 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0194CC0881; Wed, 27 Nov 2019 13:48:43 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id C5D37C0881 for ; Wed, 27 Nov 2019 13:48:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B2590878D1 for ; Wed, 27 Nov 2019 13:48:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AhLbqjuZGYnD for ; Wed, 27 Nov 2019 13:48:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by hemlock.osuosl.org (Postfix) with ESMTP id 557E8878B8 for ; Wed, 27 Nov 2019 13:48:40 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.69,249,1571670000"; d="scan'208";a="32606039" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 27 Nov 2019 22:48:38 +0900 Received: from be1yocto.ree.adwin.renesas.com (unknown [172.29.43.62]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 17957400856C; Wed, 27 Nov 2019 22:48:36 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Date: Wed, 27 Nov 2019 13:46:38 +0000 Message-Id: <1574862420-42606-1-git-send-email-biju.das@bp.renesas.com> X-Mailer: git-send-email 2.7.4 Cc: Biju Das Subject: [cip-dev] [PATCH 4.4.y-cip 00/22] Add RZ/G1C SD/eMMC support X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: cip-dev-bounces@lists.cip-project.org Sender: "cip-dev" This patch series add SD/eMMC support support for RZ/G1C sbc. RZ/G1C eMMC IP is different from other RZ/G1 SoC's. It is having an internal DMA for data transfer which is similar to R-Car Gen3. Support for internal DMAC is added in 4.14 kernel and support for RZ/G1C added on 4.20 kernel. Backported the relevent patches to linux-4.4.y-cip. Fabrizio Castro (6): dt-bindings: mmc: renesas_sdhi: Add r8a77470 support mmc: renesas_sdhi: Add r8a77470 SDHI1 support ARM: dts: r8a77470: Add SDHI2 support ARM: dts: r8a77470: Add SDHI0 support ARM: dts: r8a77470: Add SDHI1 support ARM: dts: iwg23s-sbc: Add uSD and eMMC support Masahiro Yamada (1): mmc: renesas_sdhi: consolidate DMAC CONFIG options Shinobu Uehara (1): mmc: sdhi: Add EXT_ACC register busy check Simon Horman (9): mmc: tmio: rename tmio_mmc_{pio => core}.c mmc: renesas-sdhi: rename tmio_mmc_dma.c => renesas_sdhi_sys_dmac.c mmc: renesas-sdhi: rename sh_mobile_sdhi.c => renesas_sdhi_core.c mmc: renesas-sdhi: make renesas_sdhi_sys_dmac main module file mmc: renesas-sdhi: improve checkpatch cleanness mmc: tmio, renesas-sdhi: add dataend to DMA ops mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC dt-bindings: mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings mmc: renesas_sdhi: implement R-Car Gen[123] fallback compatibility strings Wolfram Sang (4): mmc: sh_mobile_sdhi: don't use array for DT configs mmc: sh_mobile_sdhi: simplify code for voltage switching mmc: sh_mobile_sdhi: enable SDIO IRQs for RCar Gen3 mmc: tmio: always unmap DMA before waiting for interrupt Yoshihiro Shimoda (1): mmc: tmio, renesas-sdhi: add max_{segs, blk_count} to tmio_mmc_data Documentation/devicetree/bindings/mmc/tmio_mmc.txt | 9 + arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts | 75 ++++++ arch/arm/boot/dts/r8a77470.dtsi | 38 +++ drivers/mmc/host/Kconfig | 21 +- drivers/mmc/host/Makefile | 5 +- drivers/mmc/host/renesas_sdhi.h | 41 ++++ .../host/{sh_mobile_sdhi.c => renesas_sdhi_core.c} | 271 ++++++-------------- drivers/mmc/host/renesas_sdhi_internal_dmac.c | 273 +++++++++++++++++++++ .../{tmio_mmc_dma.c => renesas_sdhi_sys_dmac.c} | 191 +++++++++++--- drivers/mmc/host/tmio_mmc.h | 11 +- .../mmc/host/{tmio_mmc_pio.c => tmio_mmc_core.c} | 16 +- include/linux/mfd/tmio.h | 2 + 12 files changed, 706 insertions(+), 247 deletions(-) create mode 100644 drivers/mmc/host/renesas_sdhi.h rename drivers/mmc/host/{sh_mobile_sdhi.c => renesas_sdhi_core.c} (65%) create mode 100644 drivers/mmc/host/renesas_sdhi_internal_dmac.c rename drivers/mmc/host/{tmio_mmc_dma.c => renesas_sdhi_sys_dmac.c} (55%) rename drivers/mmc/host/{tmio_mmc_pio.c => tmio_mmc_core.c} (99%)