From patchwork Tue Sep 10 01:40:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takao Orito X-Patchwork-Id: 11138615 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 11972112B for ; Tue, 10 Sep 2019 01:39:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E33392082C for ; Tue, 10 Sep 2019 01:39:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392428AbfIJBjt (ORCPT ); Mon, 9 Sep 2019 21:39:49 -0400 Received: from mx.socionext.com ([202.248.49.38]:11398 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390948AbfIJBjt (ORCPT ); Mon, 9 Sep 2019 21:39:49 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 10 Sep 2019 10:39:46 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 19DC1605F8; Tue, 10 Sep 2019 10:39:47 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Tue, 10 Sep 2019 10:39:47 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id D410840373; Tue, 10 Sep 2019 10:39:46 +0900 (JST) Received: from user-VB.e01.socionext.com (unknown [10.213.119.151]) by yuzu.css.socionext.com (Postfix) with ESMTP id BFD711204B3; Tue, 10 Sep 2019 10:39:46 +0900 (JST) From: Takao Orito To: ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, sugaya.taichi@socionext.com, kasai.kazuhiro@socionext.com, kanematsu.shinji@socionext.com, orito.takao@socionext.com Subject: [PATCH v3 0/2] mmc: sdhci-milbeaut: add Milbeaut SD driver Date: Tue, 10 Sep 2019 10:40:31 +0900 Message-Id: <1568079631-28808-1-git-send-email-orito.takao@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The following patches add driver for SD Host controller on Socionext's Milbeaut M10V platforms. SD Host controller on Milbeaut consists of two controller parts. One is core controller F_SDH30, this is similar to sdhci-fujitsu controller. Another is bridge controller. This bridge controller is not compatible with sdhci-fujitsu controller. This is special for Milbeaut series. It has the several parts, - reset control - clock enable / select for SDR50/25/12 - hold control of DATA/CMD line - select characteristics for WP/CD/LED line - Re-tuning control for mode3 - Capability setting Timeout Clock / Base Clock / Timer Count for Re-Tuning / Debounce period These requires special procedures at reset or clock enable/change or further tuning of clock. Takao Orito (2): dt-bindings: mmc: add DT bindings for Milbeaut SD controller mmc: sdhci-milbeaut: add Milbeaut SD controller driver .../devicetree/bindings/mmc/sdhci-milbeaut.txt | 30 ++ drivers/mmc/host/Kconfig | 11 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-milbeaut.c | 362 +++++++++++++++++++++ drivers/mmc/host/sdhci_f_sdh30.c | 26 +- drivers/mmc/host/sdhci_f_sdh30.h | 32 ++ 6 files changed, 437 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-milbeaut.txt create mode 100644 drivers/mmc/host/sdhci-milbeaut.c create mode 100644 drivers/mmc/host/sdhci_f_sdh30.h