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: 38388 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8752B202E7 for ; Tue, 7 Oct 2014 01:04:36 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf3441089lab.7 for ; Mon, 06 Oct 2014 18:04:35 -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=psIZ7kFKcVgf3bVliKniIOKvRz+9LiMuLs5pObc9LEk=; b=A/NO4kq5mbQsZ3ch9c8dHVXCN9Sdm4GwENVhu7Sm36IAh/J4DpJ5bOUXfmzBmGdq9D hHyleQ7iSr2UXJzCASTv49veD96AQWjKRJScvLpJwd3wwT6L4muW+3oeDvaXTf2/ALqG 2hD8m7iIAnqiCylWspfHB04x1CrUX53Hu8Z9iKV3LuYxCv5PibpwetV/ElwPs6whqowO s5yLgf9W4LI589vLOsSTFlcz+zaeFRtRl+Z95gWZzxyxvCqaZKHOqpt7QVXzy2ihX5RD YFuffm4OKzghsEhb9gPYjpdbhnBI22GVK75tca3LVhnt0WrUkria7IigzhSrZALpYsUS osfw== X-Gm-Message-State: ALoCoQmH4yMF1338Na9PnNcc6UKlVZD6zZyj+E9LPS2aO/hkZi9cnz2He0zdpWBQLNBeqpkw5wkM X-Received: by 10.180.104.229 with SMTP id gh5mr1221717wib.6.1412643875342; Mon, 06 Oct 2014 18:04:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.175 with SMTP id az15ls600509lab.96.gmail; Mon, 06 Oct 2014 18:04:35 -0700 (PDT) X-Received: by 10.153.7.73 with SMTP id da9mr368449lad.56.1412643875186; Mon, 06 Oct 2014 18:04:35 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx.google.com with ESMTPS id ei3si21832044lad.84.2014.10.06.18.04.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Oct 2014 18:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id 10so5266455lbg.32 for ; Mon, 06 Oct 2014 18:04:34 -0700 (PDT) X-Received: by 10.152.23.199 with SMTP id o7mr373053laf.26.1412643874730; Mon, 06 Oct 2014 18:04:34 -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.112.130.169 with SMTP id of9csp277489lbb; Mon, 6 Oct 2014 18:04:33 -0700 (PDT) X-Received: by 10.66.182.227 with SMTP id eh3mr388924pac.68.1412643873040; Mon, 06 Oct 2014 18:04:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8452699pdm.51.2014.10.06.18.04.32 for ; Mon, 06 Oct 2014 18:04:33 -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 S1752160AbaJGBEb (ORCPT + 5 others); Mon, 6 Oct 2014 21:04:31 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:54492 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbaJGBEb (ORCPT ); Mon, 6 Oct 2014 21:04:31 -0400 Received: by mail-pd0-f178.google.com with SMTP id y10so4134079pdj.37 for ; Mon, 06 Oct 2014 18:04:30 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, Wei Yan , Zhangfei Gao 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> 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.217.173 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 | 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>; +}