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: 173425 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5152427ilq; Mon, 9 Sep 2019 18:39:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2xbmkUlR3ABJbGklWE3Qzsa/VaMdjo+bu71XE44coWxprbi76cSBqRGtdeaWcfjxxQQ9Y X-Received: by 2002:aa7:d1da:: with SMTP id g26mr3544352edp.100.1568079593921; Mon, 09 Sep 2019 18:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568079593; cv=none; d=google.com; s=arc-20160816; b=sqTHJIxm06F66SzN5S5esoeY5WyG9wYptPDKpPTXhBu3h4nw2ipkWmQKjSwlAVxfEt kc2IIvdx9pnEpf+RmJSpABBojg5so6JAYEHrEqYYYx+7UD5w+Nt1+uPRINxCmmjZ7spL IVa0By3bl+NLjhVs+p6ISYZkStHilbLqF/vDPQCIEO8YaNMoIleOWWipJDVqX5MI3s86 lLe9qAarldQ9XV/f1Yz+6MCL6U3VgTBo4ZNSlaA3OMMprwj2bRopUGt3C9Ucb9kOrLJI XEmrCO9K+7W9f7uIcgVgVFl2EjoW+FD/2GIoyR4SxxHt+GUwdoYIZXHZBRIRVt5u1JsO WXMg== 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=9L0B94XctXvyNEFEKcWZbkYJ9FaYzZo68I+jtoyyqdY=; b=voUlU4TtetOPpdni9BRux8f8R6RVo/0za6mmjgxn28AIxw3QuDfFwGgOIdFNmB7zSU kx0lFKJu8DCcHfRYMOSNlvaQrexMzRMujTH0ZU8WaLay9d324UGDL7PptLlrV5Ry03pE pqxFWV1QujSkvhDVhDFSDXCWvJVhbfQh8+ldYbY1QoLhPRl78ZWcw/LtheeB1FspcODR 92e6AwBweh5w31HPyJYFEVqO6liosCg+MvjrhC4DZcSOAcza4CjSsId8mnWSDtzXjR8s oQ1PVOntqjowSWOV3TVDNPOeBiIOTLH/RMYSNOmTqcOawbgW/iMtLC3UDb2RtuoTXm8Y EPgg== 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 ov28si8367684ejb.394.2019.09.09.18.39.52; Mon, 09 Sep 2019 18:39:53 -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 S2392432AbfIJBjt (ORCPT + 8 others); 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: 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 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 -- 1.9.1