From patchwork Fri Oct 3 15:35:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 38336 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8E88F2057C for ; Fri, 3 Oct 2014 15:41:03 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf851278lbi.2 for ; Fri, 03 Oct 2014 08:41:01 -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=HOmUt96Z2iMNW4rl8FzU2yu6bCeMZAhWJ6g25iN1r0p3GFYhrSOixGajRhAHYZo6i1 6P+qd9CJDtSbUHTI3Vcr8kdQkqrLsCIAltN2WUE5DenC38sbW21XgE7S4GmFh3RvEsiM XL0LlhO6ZAavKyeYnni0B8IenV/RiFWJRD9LkTPyY3JuPhLMf5D/ESXFe5CyKTfRQ7/0 2KRpDxmRY9f/8u+oWfJ9a8uNRfnm62F50y1Y3uFQnLUibTctBHyDvSplB8+RlbQLyf5Q gfw3KzfHopfLFXc/yfj3qLgYAAwfCiBYE05XyeaaLkUf4VRRZtu4wyVKapBJTb7ZJyat R7Nw== X-Gm-Message-State: ALoCoQmlendJ5e/09/tahRcPfyLBnhS3iYKGvoD83pMGx7IX4QFxGuCk2hazbW3sVIcuK8dGvnVD X-Received: by 10.180.82.74 with SMTP id g10mr594700wiy.0.1412350861720; Fri, 03 Oct 2014 08:41:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.44 with SMTP id t12ls166787lal.104.gmail; Fri, 03 Oct 2014 08:41:01 -0700 (PDT) X-Received: by 10.152.9.37 with SMTP id w5mr6852935laa.28.1412350861563; Fri, 03 Oct 2014 08:41:01 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id it2si11814854lac.40.2014.10.03.08.41.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 08:41:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id p9so1241115lbv.35 for ; Fri, 03 Oct 2014 08:41:01 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr6238611lbh.67.1412350861446; Fri, 03 Oct 2014 08:41:01 -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 of9csp251431lbb; Fri, 3 Oct 2014 08:41:00 -0700 (PDT) X-Received: by 10.66.159.164 with SMTP id xd4mr8021618pab.60.1412350859617; Fri, 03 Oct 2014 08:40:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id td1si7468023pbc.140.2014.10.03.08.40.58 for ; Fri, 03 Oct 2014 08:40:59 -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 S1752721AbaJCPk6 (ORCPT + 5 others); Fri, 3 Oct 2014 11:40:58 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:51286 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbaJCPk5 (ORCPT ); Fri, 3 Oct 2014 11:40:57 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj1so1715954pad.15 for ; Fri, 03 Oct 2014 08:40:57 -0700 (PDT) X-Received: by 10.68.193.194 with SMTP id hq2mr1857765pbc.169.1412350856917; Fri, 03 Oct 2014 08:40:56 -0700 (PDT) Received: from localhost.localdomain ([60.168.125.194]) by mx.google.com with ESMTPSA id qc3sm6757422pab.48.2014.10.03.08.38.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 Oct 2014 08:40:55 -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 v4 1/3] i2c: hix5hd2: add devicetree documentation Date: Fri, 3 Oct 2014 23:35:47 +0800 Message-Id: <1412350549-2607-2-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412350549-2607-1-git-send-email-zhangfei.gao@linaro.org> References: <1412350549-2607-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.176 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"; +}