From patchwork Fri Nov 18 06:29:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 82838 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1183082qge; Thu, 17 Nov 2016 22:29:36 -0800 (PST) X-Received: by 10.13.214.206 with SMTP id y197mr5902498ywd.161.1479450576184; Thu, 17 Nov 2016 22:29:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u99si1337044ybi.13.2016.11.17.22.29.36; Thu, 17 Nov 2016 22:29:36 -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 S1751586AbcKRG3f (ORCPT + 4 others); Fri, 18 Nov 2016 01:29:35 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34514 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbcKRG3e (ORCPT ); Fri, 18 Nov 2016 01:29:34 -0500 Received: by mail-pf0-f181.google.com with SMTP id c4so41300704pfb.1 for ; Thu, 17 Nov 2016 22:29:34 -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=gWK8HJA3pjxEhiJZJ/Kd+afGw8VEw9l9JUv7pymr2L1kEVYUVVvsCafmmXYPM0h40W 74R+wuPJNMhqTqfkWIy+vsjHBFnrLO1l7dTGtTJGfsiGp4tyOm1oS8pr1qjl3KuxJoP5 rZVl5TeJnt1yPKMn7n00JtIfcfp5C51tAomWY= 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=BkI1Uj5WFS07IUSF8vB1S6nDpFQkt7AOqlvsNeVfmIeMsGraEQU19wELZEvB3sOxbV 5yzq3rYtnsznonBUiT0hKsoncSJM5+xbvVMfV87uWEAj1hVrO1a3qubufHXxOk5rfsgg XUWKBWGiB/tzMHhN7B1t94IALn3xAhM00YOYBxzo6Ju8YVnLmAXbHjF6He23a49s1bS5 4ypVdDEYKYPYg1rofXNRyaltPtwzW3TrfBmHJJkM0ZXzC9VmdxIA70CjEVf0p3yTSnYl 8GzKCHc8KPquOzv84GMh5inUcL9JRltdKBaurT+NpIVv3yhPJPHtg+XTsheWqBIQB+7M 4g0w== X-Gm-Message-State: ABUngveMxapB9qkUeFfI1v2dnCO2pNdioEF7PJkPaeC0B8/p7yOBsNkD157AhGuxVTfHZFJX X-Received: by 10.99.123.87 with SMTP id k23mr15871465pgn.101.1479450573832; Thu, 17 Nov 2016 22:29:33 -0800 (PST) Received: from localhost.localdomain (61-216-161-10.HINET-IP.hinet.net. [61.216.161.10]) by smtp.gmail.com with ESMTPSA id z62sm13638848pfz.19.2016.11.17.22.29.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Nov 2016 22:29:33 -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, chen.chaokai@zte.com.cn, lai.binz@zte.com.cn, linux-mmc@vger.kernel.org, Jun Nie Subject: [PATCH v6 3/5] Documentation: synopsys-dw-mshc: add binding for fifo quirks Date: Fri, 18 Nov 2016 14:29:13 +0800 Message-Id: <1479450555-19047-4-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479450555-19047-1-git-send-email-jun.nie@linaro.org> References: <1479450555-19047-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]