From patchwork Mon Nov 7 13:04:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 81080 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1000819qge; Mon, 7 Nov 2016 05:05:28 -0800 (PST) X-Received: by 10.98.82.65 with SMTP id g62mr13376719pfb.119.1478523928637; Mon, 07 Nov 2016 05:05:28 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si5381991pfa.280.2016.11.07.05.05.28; Mon, 07 Nov 2016 05:05:28 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932201AbcKGNFZ (ORCPT + 3 others); Mon, 7 Nov 2016 08:05:25 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33660 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753161AbcKGNFX (ORCPT ); Mon, 7 Nov 2016 08:05:23 -0500 Received: by mail-pf0-f179.google.com with SMTP id d2so91344692pfd.0 for ; Mon, 07 Nov 2016 05:05:22 -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=ce2ouCt8ZNihef4jqkDW9fHRlhAm+ZgaS+YWTr4zOH4=; b=aZtozYtMSaoNOxlyCOB7qwhOIRkK2BX3Aj4+80bl0/xT6y65tR9xjTBMJPjsOaFQgj 4n+cJ/RKVaJs7n74I7l14RGM5XK0v63Qd3qp76l1lztdbEYGwFnvZkx0aVW+6q3N/zs7 6u2ra3XEmxJiURjgaznvq8EIK47Appum4AsE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ce2ouCt8ZNihef4jqkDW9fHRlhAm+ZgaS+YWTr4zOH4=; b=g/vuuygqa7qdOzrKjLH6Th2TEA/Nwd+FFtWSLgqV6zUJ7Ibb6qw8T1nn7XC+mL2QWF BIrqId80HZICh8IhQjkFLnYsxldmS4ugmdujzFdbk711Zcy9PyFFzjfEN0BoYdCs8x+i pXHdKX0kwgj7amnG0R5oouc6FL7HKSCYEk9KLIUVgkhpwnAWv6RywO039+wkV0Xftb1a MvMLrNpgkj2DJSZJrNA1ZnpqOJBtzh9berQlYFRSam4ckWtWoZjPsk7+u+ffSLiT7IGa fjfilKHYE5rsy+qkpdErjdbY5hpweUQAO/kfpxMy3iDwX7D1Xra9IokjjjD9JL9fsT0U b9/g== X-Gm-Message-State: ABUngvekjK3vYufdfcezRlzK7GvzWpQR/EmvOI2/pkEq4qjVDy2kGH9uHVeq1UDT6NJuMZxt X-Received: by 10.98.219.5 with SMTP id f5mr13323403pfg.131.1478523917373; Mon, 07 Nov 2016 05:05:17 -0800 (PST) Received: from localhost.localdomain ([188.42.252.252]) by smtp.gmail.com with ESMTPSA id b64sm40422841pfc.74.2016.11.07.05.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 05:05:16 -0800 (PST) From: Jun Nie To: shawn.guo@linaro.org, xie.baoyou@zte.com.cn Cc: ulf.hansson@linaro.org, jh80.chung@samsung.com, jason.liu@linaro.org, linux-mmc@vger.kernel.org, Jun Nie Subject: [PATCH v4 3/5] Documentation: synopsys-dw-mshc: add binding for fifo quirks Date: Mon, 7 Nov 2016 21:04:46 +0800 Message-Id: <1478523888-4524-4-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478523888-4524-1-git-send-email-jun.nie@linaro.org> References: <1478523888-4524-1-git-send-email-jun.nie@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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 --- 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 linux-mmc" 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 4e00e85..8bf2e41 100644 --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt @@ -76,6 +76,17 @@ Optional properties: * broken-cd: as documented in mmc core bindings. +* 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. @@ -103,6 +114,8 @@ board specific portions as listed below. interrupts = <0 75 0>; #address-cells = <1>; #size-cells = <0>; + data-addr = <0x200>; + fifo-watermark-aligned; }; [board specific internal DMA resources]