From patchwork Fri Jan 6 04:24:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 90098 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp9284584qgi; Thu, 5 Jan 2017 20:25:01 -0800 (PST) X-Received: by 10.84.168.4 with SMTP id e4mr162795543plb.160.1483676701417; Thu, 05 Jan 2017 20:25:01 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si78073817pge.19.2017.01.05.20.25.01; Thu, 05 Jan 2017 20:25:01 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937936AbdAFEZA (ORCPT + 7 others); Thu, 5 Jan 2017 23:25:00 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:36038 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936925AbdAFEY7 (ORCPT ); Thu, 5 Jan 2017 23:24:59 -0500 Received: by mail-pg0-f52.google.com with SMTP id f188so247535816pgc.3 for ; Thu, 05 Jan 2017 20:24:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4Udsk7HfIjvXtHcHqO1Qgqremxi1HhvMvcl/6weUsE8=; b=LuAfZectetnBU4vmkO084Sa+a0IsMfiZ9UYUb3rG0XjdoVFKMlDtwEwh6LG2JIj1Mi oOG8UHt9ISc/nwKumJznzEayn8RCFKs7VLnJDgDIYrhyoXOV0xaPbYY7cO598sU+afT0 iFYoB3kSfxXRCE1xF0fHcKF7eOJ7bqxkrvNgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4Udsk7HfIjvXtHcHqO1Qgqremxi1HhvMvcl/6weUsE8=; b=jfXTTfyCLC+i33/Ayf/E3IUkxqartvTO8NmzXyZA9gycuGhDa3pMmZK15aCe2MiOpN Oa1GTFdr4EYUOGIrclNavoUHS/mM0IwjE4BxYrBiAPy2V/Gv+t/kJaarD9Z9GhF+Hc2s qZo824WCRII1UTpxEBdacaWj+cblGv5v1W4utmGZ084IMpAJd1jtK8op5UgyRXwosoEu Upk6BT7WaU/tXskhz/2LldT05vhaQ+H37FlGVrHR6B8vsu29saegaSAPOz6Mn3mRtyr/ v+ozBOWYIFjgcJhL8sYKrRS4kNK/IE3JlmodmcwiENC+OaRL/e1qtcGOKd8/53IbCFxM 4KjA== X-Gm-Message-State: AIkVDXL32NCodIlrJk3M5TghO5x1/Zj1eSq+C6QVQHOEcKeYGqGaslLOTH2BUAJacFmikpT5 X-Received: by 10.99.54.12 with SMTP id d12mr37776107pga.107.1483676699084; Thu, 05 Jan 2017 20:24:59 -0800 (PST) Received: from localhost.localdomain (125-227-70-105.HINET-IP.hinet.net. [125.227.70.105]) by smtp.gmail.com with ESMTPSA id t25sm158142586pgo.9.2017.01.05.20.24.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Jan 2017 20:24:58 -0800 (PST) From: Jun Nie To: robh+dt@kernel.org, mark.rutland@arm.com, shawn.guo@linaro.org, xie.baoyou@zte.com.cn, devicetree@vger.kernel.org Cc: ulf.hansson@linaro.org, jh80.chung@samsung.com, jason.liu@linaro.org, chen.chaokai@zte.com.cn, lai.binz@zte.com.cn, linux-mmc@vger.kernel.org, Jun Nie Subject: [PATCH v9 1/5] Documentation: synopsys-dw-mshc: add binding for fifo quirks Date: Fri, 6 Jan 2017 12:24:42 +0800 Message-Id: <1483676686-17011-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483676686-17011-1-git-send-email-jun.nie@linaro.org> References: <1483676686-17011-1-git-send-email-jun.nie@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add fifo-addr property and fifo-watermark-quirk property to synopsys-dw-mshc bindings. It is intended to provide more dt interface to support SoCs specific configuration. Signed-off-by: Jun Nie Acked-by: Rob Herring --- Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt index 7fd17c3..bca30b6 100644 --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt @@ -75,6 +75,17 @@ Optional properties: * card-detect-delay: Delay in milli-seconds before detecting card after card insert event. The default value is 0. +* data-addr: Override fifo address with value provided by DT. The default FIFO reg + offset is assumed as 0x100 (version < 0x240A) and 0x200(version >= 0x240A) by + driver. If the controller does not follow this rule, please use this property + to set fifo address in device tree. + +* fifo-watermark-aligned: Data done irq is expected if data length is less than + watermark in PIO mode. But fifo watermark is requested to be aligned with data + length in some SoC so that TX/RX irq can be generated with data done irq. Add this + watermark quirk to mark this requirement and force fifo watermark setting + accordingly. + * vmmc-supply: The phandle to the regulator to use for vmmc. If this is specified we'll defer probe until we can find this regulator. @@ -102,6 +113,8 @@ board specific portions as listed below. interrupts = <0 75 0>; #address-cells = <1>; #size-cells = <0>; + data-addr = <0x200>; + fifo-watermark-aligned; resets = <&rst 20>; reset-names = "reset"; };