From patchwork Sun Sep 28 04:22:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4990891 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 4838FBEEA6 for ; Sun, 28 Sep 2014 04:26:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5572D20176 for ; Sun, 28 Sep 2014 04:26:28 +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 30FCB2012B for ; Sun, 28 Sep 2014 04:26:27 +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 1XY61E-0003w3-Fo; Sun, 28 Sep 2014 04:23:32 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XY61B-0003t2-3i for linux-arm-kernel@lists.infradead.org; Sun, 28 Sep 2014 04:23:29 +0000 Received: by mail-pd0-f175.google.com with SMTP id v10so13983725pde.34 for ; Sat, 27 Sep 2014 21:23:08 -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=S8LuyrunhuZ4uTIReLj+5A0cYdcgESSf0WpBwU7pJf4=; b=FQ4U5jvLlvSRZBWrkv1LGvWjfd48uGG9pEiXHuzeqcoMsbE57dELqi9/3w/mHpo9wH Lj30TxeOOIdUKQkzwxQyUI+/knaDbrsSMp0arIuoz+dcFbOAHqH0vfEWnj8RebGWOZ8M QS/qOxjRwxdMRbRNV0t1bBRHoARoMGQlG5fiCDmLUExKP/Hqc2sMYwf/bXc9vTdJWOgV RhNyBAtMlx/qNe0XVlnOCOXsYfrFVasytWAPZSFf9Phz0JiliuUcCnv0rdiNGTi6tca7 q9CcI4eZ4X+CgszJXcnL1juSuQ0v4N1i+53Uf6mg5ExHJoALiaSjSFpBNksAKkLQElM3 kggg== X-Gm-Message-State: ALoCoQn0w/RDfzjAymH8hzQQr629ui1SDq4LNA/jGCgcN/lc9RKFYOSr54Fb05DGyIdTErmFrDD3 X-Received: by 10.66.140.76 with SMTP id re12mr26302108pab.141.1411878188080; Sat, 27 Sep 2014 21:23:08 -0700 (PDT) Received: from localhost.localdomain ([60.168.114.151]) by mx.google.com with ESMTPSA id kk7sm8835695pab.31.2014.09.27.21.22.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 27 Sep 2014 21:23:07 -0700 (PDT) From: Zhangfei Gao To: Wolfram Sang , Arnd Bergmann , haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Subject: [PATCH v2 1/3] i2c: hix5hd2: add devicetree documentation Date: Sun, 28 Sep 2014 12:22:07 +0800 Message-Id: <1411878129-19743-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411878129-19743-1-git-send-email-zhangfei.gao@linaro.org> References: <1411878129-19743-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140927_212329_176252_1DC4013A X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -0.9 (/) 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.8 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 | 31 ++++++++++++++++++++ 1 file changed, 31 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..981a069 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt @@ -0,0 +1,31 @@ +I2C for Hisilicon hix5hd2 chipset platforms (3716,3719,3798...) + +Required properties: +- compatible: Must be "hisilicon,hix5hd2-i2c" + Specifically, the following versions of the chipset are supported: + Hi3716CV200 (support six I2C module) + Hi3719CV100 (support six I2C module) + Hi3718CV100 (support six I2C module) + Hi3719MV100 (support two I2C module) + Hi3718MV100 (support two I2C module) +- 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"; +}