Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755748AbbHNQ4Y (ORCPT ); Fri, 14 Aug 2015 12:56:24 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:35983 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639AbbHNQzr (ORCPT ); Fri, 14 Aug 2015 12:55:47 -0400 From: Hongtao Wu X-Google-Original-From: Hongtao Wu To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org, shawn.lin@rock-chips.com Cc: Orson.Zhai@spreadtrum.com, Chunyan.Zhang@spreadtrum.com, Jason.Wu@spreadtrum.com Subject: [RFC PATCH v3 2/3] Documentation: Add Spreadtrum MMC DT bindings. Date: Sat, 15 Aug 2015 00:55:52 +0800 Message-Id: <1439571353-30165-3-git-send-email-wuht06@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1439571353-30165-1-git-send-email-wuht06@gmail.com> References: <1439571353-30165-1-git-send-email-wuht06@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2560 Lines: 68 The bindings is used to interpret Spreadtrum MMC dts file. Signed-off-by: Billows Wu(WuHongtao) --- Documentation/devicetree/bindings/mmc/sprd-mmc.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/sprd-mmc.txt diff --git a/Documentation/devicetree/bindings/mmc/sprd-mmc.txt b/Documentation/devicetree/bindings/mmc/sprd-mmc.txt new file mode 100644 index 0000000..9603059 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sprd-mmc.txt @@ -0,0 +1,46 @@ +* Spreadtrum MMC Host Controller + +The Spreadtrum MMC Host Controller provides an interface for MMC, SD, and SDIO +types of memory cards. This file documents differences between the core +properties described by mmc.txt and the properties used by the Spreadtrum MMC +driver. + +Required properties: +- compatible: + should be "sprd,sdhost-3.0": in order to compatible with MMC controller + version +- reg: Registers location and length +- interrupts: exactly one interrupt specifier +- clocks: phandle to input clocks + +Optional properties: +- cd-gpios: specify GPIOs for card detection, see gpio binding +- vmmc-supply: phandle to input sdio core voltage +- vqmmc-supply: phandle to input sdio signal voltage + +*NOTE* +- The following properties are defined by spreadtrum. They are not standard + properties of SDIO. +- sprd,name: The name of the MMC device. For Example, "emmc", "wifi" and "sd". + The capabilities of different MMC device can be set by this property in + spreadtrum MMC host driver. +- sprd,delay: This property value that obtained by hardware testing are fixed. + prop-encoded-array where: + * wr-dl is the delay value between sdio clock signal and data write in + milliseconds + * rd-pos-dl is the delay value between sdio clock signal and posedge data + read in milliseconds + * rd-neg-dl is the delay value between sdio clock signal and negedge data + read in milliseconds + +Example: + +sdio0@abc0000 { + compatible = "sprd,sdhost-3.0"; + reg = <0 0xabc00000 0 0x1000>; + interrupts = ; + vmmc-supply = <&vddemmccore>; + vqmmc-supply = <&vddgen0>; + clocks = <&ext_192m>; + sprd,delay = <0x3 0xa 0xa>; +}; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/