From patchwork Tue Oct 7 01:04:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 5040431 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 53BBAC11AC for ; Tue, 7 Oct 2014 01:07:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 803FE2017D for ; Tue, 7 Oct 2014 01:07:18 +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 9E31220148 for ; Tue, 7 Oct 2014 01:07:17 +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 1XbJCw-00055B-4e; Tue, 07 Oct 2014 01:04:54 +0000 Received: from mail-pd0-f181.google.com ([209.85.192.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbJCt-00053N-Dr for linux-arm-kernel@lists.infradead.org; Tue, 07 Oct 2014 01:04:51 +0000 Received: by mail-pd0-f181.google.com with SMTP id z10so4127131pdj.40 for ; Mon, 06 Oct 2014 18:04:30 -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=KpdOnnY8ZI3GI1AIzUXGJYZQFP5j9ozdCeubkV3r2Rg=; b=FcgRjDoxyKpbZuHdRqyywS0RTj6AVeDO/u6PCqYkdqnEVB3Gdw4adraD8nVI9WJ5ir ZryPRQm2PI8l1KsKmG6PXg3XAFm09iWcfVCvgCMxT+v8QjWm01WFzpspAf906v3kk+lB oxExSgPE7I8IHBeJW+wj13RZSTcGoQcHNdWkamzeGP+qpesQ1mAEuB6PVnj1MsZmjx0/ jVBonP6LFF052Y4fLpYCwz/TIwNUeQJ+oVPDoXTPSZMKzM38WrMP9uJ+3exxLjzccjke tUI3EXCw0u4TNUy4sEEdUUNYURHUC2CKElB/urrOcrsFkuYPFsGDDe1HbL4AozXDeqiY kbTA== X-Gm-Message-State: ALoCoQlxhAsuwEkw6wMZL+2nrFyrURUo96MWSyG5JjszivyT62HP8+qapB1/DgjHSndGSiNnewgJ X-Received: by 10.66.160.65 with SMTP id xi1mr346464pab.123.1412643870555; Mon, 06 Oct 2014 18:04:30 -0700 (PDT) Received: from linaro.www.huaweimobilewifi.com ([119.7.222.2]) by mx.google.com with ESMTPSA id ei1sm14347386pbd.46.2014.10.06.18.04.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 18:04:29 -0700 (PDT) From: Zhangfei Gao To: Wolfram Sang , Arnd Bergmann , haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Subject: [PATCH v5 1/3] i2c: hix5hd2: add devicetree documentation Date: Tue, 7 Oct 2014 09:04:11 +0800 Message-Id: <1412643853-11115-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412643853-11115-1-git-send-email-zhangfei.gao@linaro.org> References: <1412643853-11115-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141006_180451_487642_83D53DC0 X-CRM114-Status: GOOD ( 10.95 ) 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=-0.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_RHS_DOB autolearn=no 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 | 24 ++++++++++++++++++++ 1 file changed, 24 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..f98b374 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt @@ -0,0 +1,24 @@ +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>; +}