From patchwork Tue Sep 30 12:20:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 38135 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9AB92032C for ; Tue, 30 Sep 2014 12:20:47 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gi9sf6228828lab.6 for ; Tue, 30 Sep 2014 05:20:46 -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=bicjg3EwYqiUebcrf/6j3/xoLNk3HVQaa7ekpy8m+uc=; b=PHQVoS1ZY9pHQgVv6D9NhYCJ4DAgEEmG+hA0G0dy/jCcNDMR0ISZ4Xyvk4p4dFUF/J gynyNfQAKglSAoairCnhAWG0/rJ4EFqXcqiRrUQGaBFwn76yskos0pnH1+6HCUOZsNmj GiOMxS9OGh7DZX+0hxK2CSq0GUWGrZTFavkcpnXxPNW9Y3RtRBLnzlfQNFa5LaZvwEHG Hj2vP+yzqAkNu7BlgTDUuEdfzqxKU6exwfk4oJ3saZwZUyA7OTKiQNO1cdlPEcRkgpq5 oJZ38cwiv5VoiTxH7lYrO9qkZRsvLJLEOuKXcURzElUSIzA5ADiuVZegEzUNW/iY/3TZ WyUQ== X-Gm-Message-State: ALoCoQnpCPzd7GceeQ3LY549jVpLLmg46asFEGf6xOFwZGkmOx7v0gUXe8uRZxKCK0F/6xqh1BuI X-Received: by 10.181.28.169 with SMTP id jp9mr793172wid.6.1412079646717; Tue, 30 Sep 2014 05:20:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.9 with SMTP id o9ls31669lao.97.gmail; Tue, 30 Sep 2014 05:20:46 -0700 (PDT) X-Received: by 10.112.134.101 with SMTP id pj5mr43932103lbb.47.1412079646562; Tue, 30 Sep 2014 05:20:46 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx.google.com with ESMTPS id x7si22512995lbx.64.2014.09.30.05.20.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 05:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by mail-lb0-f175.google.com with SMTP id u10so4338655lbd.34 for ; Tue, 30 Sep 2014 05:20:45 -0700 (PDT) X-Received: by 10.112.130.226 with SMTP id oh2mr10051131lbb.100.1412079645839; Tue, 30 Sep 2014 05:20:45 -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 of9csp334944lbb; Tue, 30 Sep 2014 05:20:45 -0700 (PDT) X-Received: by 10.70.39.9 with SMTP id l9mr13551916pdk.70.1412079644284; Tue, 30 Sep 2014 05:20:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra9si26869271pbc.54.2014.09.30.05.20.43 for ; Tue, 30 Sep 2014 05:20:44 -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 S1751514AbaI3MUn (ORCPT + 5 others); Tue, 30 Sep 2014 08:20:43 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:48504 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751331AbaI3MUm (ORCPT ); Tue, 30 Sep 2014 08:20:42 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so6540993pad.30 for ; Tue, 30 Sep 2014 05:20:41 -0700 (PDT) X-Received: by 10.70.45.227 with SMTP id q3mr16659142pdm.87.1412079641924; Tue, 30 Sep 2014 05:20:41 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id db2sm15062087pbc.16.2014.09.30.05.20.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Sep 2014 05:20:40 -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 v3 1/3] i2c: hix5hd2: add devicetree documentation Date: Tue, 30 Sep 2014 20:20:26 +0800 Message-Id: <1412079628-6316-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412079628-6316-1-git-send-email-zhangfei.gao@linaro.org> References: <1412079628-6316-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.175 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 | 25 ++++++++++++++++++++ 1 file changed, 25 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..660b7ba --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-hix5hd2.txt @@ -0,0 +1,25 @@ +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>; + status = "disabled"; +}