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: 396279 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id E47DC14017F for ; Sat, 4 Oct 2014 01:40:59 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711AbaJCPk5 (ORCPT ); Fri, 3 Oct 2014 11:40:57 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:38052 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489AbaJCPk5 (ORCPT ); Fri, 3 Oct 2014 11:40:57 -0400 Received: by mail-pa0-f46.google.com with SMTP id fa1so1690124pad.19 for ; Fri, 03 Oct 2014 08:40:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wyZOfMIu5MrQdESZuloSsJvHVqxbrOcy3/+wnRr240s=; b=ckr9jx7Q62ci0KmQ2gvJltgg7j/rpgfChbXWFei8i1yXioKPhtsTwpTWuvtDFJgoU5 M38ELsPWyLqrrEIBWL7TEcwxUWfUugO1mmQbmNUwTmgUWzoG8BDH1moq+5Xe9xNwAdtf bF9i+gCgno717QhOi+ov2HsRbSjvPLQkdZURWCanfDNTOwqrFrXCFqild1vusLQZU43P BUy8ziIevU/v3TJNou54y/CtAiLAbXwrnpMaeGDyGVIsTt9fCbt+pZY/HYzPRGLKbsjS VocpY9Eff9rHV8ao+vjzgwdxGXhySJBF/BCtsIQNDbyJWVa3P4LGeYmbFiUAUnKjXd7J ddtw== X-Gm-Message-State: ALoCoQlpPhF++L2KkFT3elTEavkkOCQB/04+5chia/ARmm9dbt9Pzr5ZdsUTVagg6JuHeZSq7EpS 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: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org 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"; +}