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: 162894 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp176758jan; Thu, 25 Apr 2019 19:04:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXFFDi5wv4hPofazxHUQZl+XIe29mU2m6qan+nu1X8LRVp1IpNjT2NeU/XDWEeyPjzwZ8N X-Received: by 2002:a63:2c55:: with SMTP id s82mr40119981pgs.356.1556244245035; Thu, 25 Apr 2019 19:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556244245; cv=none; d=google.com; s=arc-20160816; b=qAQ552Ss+7TVm7HcKKAR+P6ZUvsoGQXA9nyzrYeKrTxGXJ/0hWUeJIoeW/EQzd6lwX EzAcLMpWoDvUe0C7uWSb+op9iIwiaLxRxFh3gHMNa5r1c08h7sONSt8D5y9jsKFMWvtW QfucFPgb7ClONATm8oLvAuOJRRcq0jtbVrQBGCZEMhb+yr1po3/gmOM6IQ34S1tqL86W Thf3jWPv2IwNAEgtyLtekoEMcs1/NPSSf6TjrlSkM9KCkh25Fs6g+FOEYwHgNx8ycZdK hIY2YUqWPeI3I0jqLgzhitHhHgc13T7QWsuYKPQoB2ZGlPzKu85GcUDKF4BiZgZanjvp iZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=p2xK+L5PkUuPz54ZQXrgFS3mUlwwk6lXDRJH3V0q5Mo=; b=JJVjF31gMxCk4ZuRFDjbp1XbBICJ1Ac18rOvGdpN8v5tmQkREZ7z2ZKYrbYOG9oQpo iLkeuaqWCKfUwNSPJ8WBc7xLiu7fIdySBGUal9cGNSRC/qqzkTHTHdKO37hLwS0RM/8Z jlDF2dAgtGzxusXRQIpxoKZOoGxMP9uQo7vfPt6BW3X0R+N7n0a3riE3Ipk2ozbN/Sro gpN8665lekS9ugO/y0N5MWJjkhtQrwqznnxOMxnF+tiQEcyp95fxDUclHeG6ONqtf/QE etPA7Jbj4QHaU3pbJN5UwI67wcjyl32eB+2K+qPAgXN3nj7cJK8V4XXioePhnXzVhy6D UkRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9si14242867plr.89.2019.04.25.19.04.04; Thu, 25 Apr 2019 19:04:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbfDZCEE (ORCPT + 7 others); 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 1.9.1