From patchwork Tue Aug 26 05:25:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 35947 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1635920565 for ; Tue, 26 Aug 2014 05:26:03 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g18sf85731383oah.6 for ; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=J5b+86Thu0BxdYRlmTKCbXRExlyXN5qHXHrKoW6ygtI=; b=YlolG61gnhoJ9ASRT7mDEbLjG6ds8H7X1pxRdossMWgFk+a1Nhlhn1eC3d6nhH4ayk 7d8iBksV3W8DPRfKdXGZF6LREvfeOZD//8onBJEQPpX9AzqCFcEYNm4Skqqcg6vO2jUa 29hdPObCjEU1Oe335JdDXPoalNFqa/dg9j9Fr+wRX03Xa73EuKV1IzEeE1PYOtXpWZC0 vBYCG5Eif0nQfPAt7hMYvyI+9in5XxRZ1b43ZiwLbO5P6OEhyJ6ShlGSdUMMo2z3MjuE 92ucB+V+TM8z2mDXEPt2liCWRveos+6M3fR/nr1r5NtSE+zUe7jYCLw5dv0v1/CRIL34 o58w== X-Gm-Message-State: ALoCoQnBur2LEI9whRUQJEVvNKV4CBj5yfcoPoS6LJNI9ESVa7p29k9Sk+ca4Q6ut5sSD0POrYAP X-Received: by 10.182.91.97 with SMTP id cd1mr17869730obb.33.1409030762651; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.242 with SMTP id 105ls969824qgx.17.gmail; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) X-Received: by 10.52.146.17 with SMTP id sy17mr9040551vdb.29.1409030762576; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id fg6si1045469vdc.31.2014.08.25.22.26.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 22:26:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id le20so16548384vcb.28 for ; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) X-Received: by 10.220.163.130 with SMTP id a2mr43688vcy.52.1409030762471; Mon, 25 Aug 2014 22:26:02 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp170224vcb; Mon, 25 Aug 2014 22:26:01 -0700 (PDT) X-Received: by 10.68.242.9 with SMTP id wm9mr34073472pbc.47.1409030761505; Mon, 25 Aug 2014 22:26:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gp10si2533410pbd.167.2014.08.25.22.26.00 for ; Mon, 25 Aug 2014 22:26:01 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933827AbaHZF0A (ORCPT + 6 others); Tue, 26 Aug 2014 01:26:00 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:45168 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933812AbaHZFZ6 (ORCPT ); Tue, 26 Aug 2014 01:25:58 -0400 Received: by mail-pa0-f47.google.com with SMTP id kx10so22533529pab.6 for ; Mon, 25 Aug 2014 22:25:58 -0700 (PDT) X-Received: by 10.68.65.9 with SMTP id t9mr34526814pbs.77.1409030758059; Mon, 25 Aug 2014 22:25:58 -0700 (PDT) Received: from localhost.localdomain ([114.97.111.70]) by mx.google.com with ESMTPSA id j1sm2598448pdf.72.2014.08.25.22.25.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 22:25:56 -0700 (PDT) From: Zhangfei Gao To: Wolfram Sang , Arnd Bergmann , haifeng.yan@linaro.org, jchxue@gmail.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, Wei Yan , Zhangfei Gao Subject: [PATCH resend 1/2] i2c: hix5hd2: add devicetree documentation Date: Tue, 26 Aug 2014 13:25:20 +0800 Message-Id: <1409030722-30709-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409030722-30709-1-git-send-email-zhangfei.gao@linaro.org> References: <1409030722-30709-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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..2ecc8a7 --- /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 400000 +- 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"; +}