From patchwork Mon Aug 4 03:46:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 34760 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05C61204FF for ; Mon, 4 Aug 2014 03:47:10 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id s7sf17713657qap.2 for ; Sun, 03 Aug 2014 20:47:09 -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=K6/XH1wPcb/57D7tNM9gc9MfRcjyh1/v02hYLuPQIRo=; b=JBEEZPT/vz3R0xz52pKcYlkxgwZgPK9sXl38RcISiRvCiSSsHZknbCA2HiL9AI/ZyH JeqRBHNW0WmzTRHTvRlPva5QCNyqerNQFSJOnZ0+OrIhDChLpU/RBMXgnqZ6CgCd8KKK rYMbj41RccUedtXx2AKI25ItA3hm/qbehbiGHGZNuCOxNIrLEFKgJJ1R5Wg3r+l7kJmB y4nqMZhf6uMWvAuOILNpt0hn9AUGRwRJb1hFnT6m9nEbWVJo/LjSqpXHcx0+SLMo6HU1 X5idI7bsFMVQKul1rsNc/H6r+ifRjQKxUqHhyc/PWfRCD1dCQQtwYNcQkGtmHjXmr513 +sMA== X-Gm-Message-State: ALoCoQm2g2dZHpVwUQhGJoEBW8qWN/WSqMs6/NSdOKhexTwN+rwKEW2XQddKEWPkYAhO+UAIADwZ X-Received: by 10.236.206.51 with SMTP id k39mr6736155yho.23.1407124029792; Sun, 03 Aug 2014 20:47:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.11 with SMTP id n11ls2032179qge.11.gmail; Sun, 03 Aug 2014 20:47:09 -0700 (PDT) X-Received: by 10.220.49.10 with SMTP id t10mr20759637vcf.34.1407124029716; Sun, 03 Aug 2014 20:47:09 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ts6si11270863vdc.84.2014.08.03.20.47.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Aug 2014 20:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so10240285vcb.19 for ; Sun, 03 Aug 2014 20:47:09 -0700 (PDT) X-Received: by 10.220.49.10 with SMTP id t10mr20759628vcf.34.1407124029595; Sun, 03 Aug 2014 20:47:09 -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.37.5 with SMTP id tc5csp269563vcb; Sun, 3 Aug 2014 20:47:09 -0700 (PDT) X-Received: by 10.66.184.42 with SMTP id er10mr1843155pac.62.1407124028689; Sun, 03 Aug 2014 20:47:08 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck8si2835465pad.215.2014.08.03.20.47.08 for ; Sun, 03 Aug 2014 20:47:08 -0700 (PDT) Received-SPF: none (google.com: linux-i2c-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 S1752082AbaHDDrC (ORCPT + 1 other); Sun, 3 Aug 2014 23:47:02 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:53418 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070AbaHDDq7 (ORCPT ); Sun, 3 Aug 2014 23:46:59 -0400 Received: by mail-pd0-f173.google.com with SMTP id w10so8851323pde.4 for ; Sun, 03 Aug 2014 20:46:59 -0700 (PDT) X-Received: by 10.67.21.131 with SMTP id hk3mr20819302pad.25.1407124019060; Sun, 03 Aug 2014 20:46:59 -0700 (PDT) Received: from localhost.localdomain ([180.150.153.56]) by mx.google.com with ESMTPSA id oo3sm24447686pdb.19.2014.08.03.20.46.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Aug 2014 20:46:58 -0700 (PDT) From: Zhangfei Gao To: Wolfram Sang , 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 1/2] i2c: hix5hd2: add devicetree documentation Date: Mon, 4 Aug 2014 11:46:46 +0800 Message-Id: <1407124007-27631-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1407124007-27631-1-git-send-email-zhangfei.gao@linaro.org> References: <1407124007-27631-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-i2c@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.174 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 000000000000..2ecc8a7f4401 --- /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"; +}