From patchwork Thu May 30 09:20:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takao Orito X-Patchwork-Id: 165404 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp708853ili; Thu, 30 May 2019 02:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrbUhOSAmjQG4qbuuBDZydgQ+w2bg5hMBi80ufNVi55ZBOMZm/kLLjWlif6FwSqXTceDTL X-Received: by 2002:a17:90a:9f90:: with SMTP id o16mr2641978pjp.72.1559207947587; Thu, 30 May 2019 02:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559207947; cv=none; d=google.com; s=arc-20160816; b=ZNDRDv7b0mADoLGzan9rX9KfRv2ySGJhaxgS5so4lgBbUAP4VEuBDH6ghzmzG7RxdN pUGav9OF43UEMiqOq4ImKVGPLReez20zx8M2i+PDLRITcVrtxK8UajFRiUN0PIN9ZZTK oDXaaRktY8XwrmTzFNB0DuiYC61lo891jgJkLdAhpT7Q3SDYvuiI3FUZo7DvpTWjvbcc WEL6GuO0Pydc8AihX0DrTG3Cy2gpQ2XcOKgzG3gZPrPI10vO8h8KneecOmPX9Bj9MqsG ZNOLrPkJqwkkyRbE76qcfS/pQOL5YcnkIDujIA2qw6OdND07IsrkSj4rtms0UnVlk32h 64Ew== 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=53sYunfcOPkXzo+NGe7miWJgvRFbnH/7SEjAqPXQLKA=; b=z5uB/GjOi0D7Y6WxQQXEqoegYSODFiDurhIi9OiENTHDaI/3245BEVkRze6nT9D2Db D3vC0kZ7/BZjvH0GlYhob4vaNFxntb3uMCxOaDwNpl6hQA+IOEaWTrea+LtpISHes01o 2xnpDYu1uXxwXHUVw/hTEQReYvNahBBZkZKNB1hbVClP6BylhhaUYdUxARGYehnqEhIs EICyR93Fghi6vPjHfnJoAAo8sS7mLu6xF1OlgELPG3SEllSn8tqEfNjrAiDLGm9Q08L/ XwxechBrB9vEdBH4myZcBWmsWiyRpq3e7qjXigVQciPIVYij124SACKKuagGQdDDoCP3 BU6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 d125si3004134pfd.257.2019.05.30.02.19.07; Thu, 30 May 2019 02:19:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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 linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727308AbfE3JTG (ORCPT + 5 others); Thu, 30 May 2019 05:19:06 -0400 Received: from mx.socionext.com ([202.248.49.38]:34634 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbfE3JTG (ORCPT ); Thu, 30 May 2019 05:19:06 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 30 May 2019 18:19:04 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 47E99180D46; Thu, 30 May 2019 18:19:04 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Thu, 30 May 2019 18:19:04 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id DC0A24053B; Thu, 30 May 2019 18:19:03 +0900 (JST) Received: from user-VB.e01.socionext.com (unknown [10.213.119.151]) by yuzu.css.socionext.com (Postfix) with ESMTP id C1A00120C10; Thu, 30 May 2019 18:19:03 +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 v2 0/2] mmc: sdhci-milbeaut: add Milbeaut SD driver Date: Thu, 30 May 2019 18:20:52 +0900 Message-Id: <1559208052-385-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 | 32 ++ 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, 439 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