From patchwork Mon Dec 5 02:29:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 86486 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1275718qgi; Sun, 4 Dec 2016 18:30:53 -0800 (PST) X-Received: by 10.99.144.65 with SMTP id a62mr98625066pge.103.1480905053559; Sun, 04 Dec 2016 18:30:53 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17si12870432pge.203.2016.12.04.18.30.53; Sun, 04 Dec 2016 18:30:53 -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 S1751589AbcLECar (ORCPT + 7 others); Sun, 4 Dec 2016 21:30:47 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:34449 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbcLEC3y (ORCPT ); Sun, 4 Dec 2016 21:29:54 -0500 Received: by mail-pf0-f172.google.com with SMTP id c4so60417767pfb.1 for ; Sun, 04 Dec 2016 18:29:54 -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=6+u8vxCqtd5gwA2OnT63y91aQ5d8cSVJINGFM3Y+ZuQ=; b=froJOIyHEfwy/utUT/odwK8ZMoTfA7JXfUtek2ShJvM7D/EvMjP/o9CU4fsf2F/uBe iDKhr5Ckv8Pp7Kpxoo0bs6ukMpwgOckVJ4f1Nhqo/+k12DPyiJoF2/d4AUI38jIpgKg0 rUbX3yHzkShfocZjOxgscZZSdfSSOYWcm0uto= 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=6+u8vxCqtd5gwA2OnT63y91aQ5d8cSVJINGFM3Y+ZuQ=; b=Wkefmno4eGFhC+iRBUts8TVR22e24fH7Vhb5QPi3G1MZ4VkBiKb+Dr0tlbSstZt+NB 8pk30LLZFg2bd/652P+6UMp+R8n6BMvdypDV4g7RQNwdXY3vz457fZKX8iLYInNNl4jW gSDHevzczyZ+aDcWP1ujjq87XvwgXoi6zXobE03z4wOtG3yDTZ0Kq2ydJgXEdaxX861H eu4mW7zWQSPEJER/e0OIwpzqrFuHyUZ6KNpHfAR4Yp/5h6aZqci9LlNmAk/F+g5hY9eC Ti7c9nez4ZKkr95DfC9tEwyB9DNgDCo96kWsFom3X3Z6uIYYm0tfWc9dPh4valASOLsG r5Ig== X-Gm-Message-State: AKaTC00YuQIsnit5HtVVcx6u2RyBba5ATT9bkmGknXKSBhq9MJx6/PoLqyuJvJlCRKs19Eiu X-Received: by 10.98.204.72 with SMTP id a69mr55618474pfg.76.1480904993986; Sun, 04 Dec 2016 18:29:53 -0800 (PST) Received: from localhost.localdomain (118-163-207-41.HINET-IP.hinet.net. [118.163.207.41]) by smtp.gmail.com with ESMTPSA id w125sm22818670pfb.8.2016.12.04.18.29.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Dec 2016 18:29:53 -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 v7 3/5] Documentation: synopsys-dw-mshc: add binding for fifo quirks Date: Mon, 5 Dec 2016 10:29:34 +0800 Message-Id: <1480904976-7081-4-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480904976-7081-1-git-send-email-jun.nie@linaro.org> References: <1480904976-7081-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 --- 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 Acked-by: Rob Herring 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"; };