From patchwork Tue Sep 30 12:20:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 5002501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 43F3EBEEA6 for ; Tue, 30 Sep 2014 12:23:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E12220149 for ; Tue, 30 Sep 2014 12:23:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9DFE820172 for ; Tue, 30 Sep 2014 12:23:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYwQa-0002eI-LG; Tue, 30 Sep 2014 12:21:12 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XYwQQ-0002UK-Qc for linux-arm-kernel@lists.infradead.org; Tue, 30 Sep 2014 12:21:03 +0000 Received: by mail-pa0-f41.google.com with SMTP id eu11so4155493pac.14 for ; Tue, 30 Sep 2014 05:20:41 -0700 (PDT) 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=wyZOfMIu5MrQdESZuloSsJvHVqxbrOcy3/+wnRr240s=; b=itvqOrjd6k83lMi48nraI5lNJgtNucKXO4utD6mvvnK2vclwTcvpoIq2GPpui0cTtw QJaGT9Z6qlr+Px8V2P/pyRa5ak+Lnp+04JJYMx8+P6l2/l8Ulk+c0dA8tJT/PSUrgMEG Bys+QkPFraKoGy0mgePdUUKKSYLvfrXrkMNIvym7iFk3VncUtUOEqa6EjuV0xhBTL5OT V95nLY5KK1O+1fgE71QzD5wjeJWHWTPyNm4h+rZWlwnY1HAVYtWH/PZXieNMToQiwyLc c2agvVUBDHzjv2yF5yuQ2ETQ9EKtpLR+mqoqxsPNuI8Af6lQuA7lPGOkyrKfpCviAkEa i3uQ== X-Gm-Message-State: ALoCoQnY8H0B3j5gGKDW+3DLAsQfqZwWGmBXlM7D7Dm41MxOtvgsAnj/0OQJ0D6mv4FpeFvRmjGs X-Received: by 10.70.45.227 with SMTP id q3mr16659142pdm.87.1412079641924; Tue, 30 Sep 2014 05:20:41 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id db2sm15062087pbc.16.2014.09.30.05.20.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 05:20:40 -0700 (PDT) From: Zhangfei Gao To: Wolfram Sang , Arnd Bergmann , haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Subject: [PATCH v3 1/3] i2c: hix5hd2: add devicetree documentation Date: Tue, 30 Sep 2014 20:20:26 +0800 Message-Id: <1412079628-6316-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412079628-6316-1-git-send-email-zhangfei.gao@linaro.org> References: <1412079628-6316-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140930_052102_903128_28F830B7 X-CRM114-Status: GOOD ( 11.01 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Zhangfei Gao , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wei Yan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yan Signed-off-by: Wei Yan Signed-off-by: Zhangfei Gao --- .../devicetree/bindings/i2c/i2c-hix5hd2.txt | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt new file mode 100644 index 0000000..660b7ba --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt @@ -0,0 +1,25 @@ +I2C for Hisilicon hix5hd2 chipset platform + +Required properties: +- compatible: Must be "hisilicon,hix5hd2-i2c" +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: interrupt number to the cpu. +- #address-cells = <1>; +- #size-cells = <0>; +- clocks: phandles to input clocks. + +Optional properties: +- clock-frequency: Desired I2C bus frequency in Hz, otherwise defaults to 100000 +- Child nodes conforming to i2c bus binding + +Examples: +I2C0@f8b10000 { + compatible = "hisilicon,hix5hd2-i2c"; + reg = <0xf8b10000 0x1000>; + interrupts = <0 38 4>; + clocks = <&clock HIX5HD2_I2C0_RST>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; +}