From patchwork Fri Apr 26 02:06:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takao Orito X-Patchwork-Id: 10917963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD74514B6 for ; Fri, 26 Apr 2019 02:04:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94A3A28B0F for ; Fri, 26 Apr 2019 02:04:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8868628B11; Fri, 26 Apr 2019 02:04:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36F6028B55 for ; Fri, 26 Apr 2019 02:04:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726389AbfDZCEE (ORCPT ); Thu, 25 Apr 2019 22:04:04 -0400 Received: from mx.socionext.com ([202.248.49.38]:12540 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfDZCED (ORCPT ); Thu, 25 Apr 2019 22:04:03 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 26 Apr 2019 11:04:01 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 7BC42180B6F; Fri, 26 Apr 2019 11:04:01 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Fri, 26 Apr 2019 11:04:01 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 144AC40386; Fri, 26 Apr 2019 11:04:01 +0900 (JST) Received: from user-VB.e01.socionext.com (unknown [10.213.119.151]) by yuzu.css.socionext.com (Postfix) with ESMTP id F12F8121D03; Fri, 26 Apr 2019 11:04:00 +0900 (JST) From: Takao Orito To: ulf.hansson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.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 0/2] mmc: sdhci-milbeaut: add Milbeaut SD driver Date: Fri, 26 Apr 2019 11:06:21 +0900 Message-Id: <1556244381-15781-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 X-Virus-Scanned: ClamAV using ClamSMTP The following patches add driver for SD Host controller on Socionext's Milbeaut M10V platforms. SD Host controller on Milbeaut is consist 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 | 35 ++ drivers/mmc/host/Kconfig | 11 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-milbeaut.c | 393 +++++++++++++++++++++ drivers/mmc/host/sdhci_f_sdh30.c | 26 +- drivers/mmc/host/sdhci_f_sdh30.h | 32 ++ 6 files changed, 473 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