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: 4666851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D5F29C0338 for ; Mon, 4 Aug 2014 03:49:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1FACB2024F for ; Mon, 4 Aug 2014 03:49:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45C532013A for ; Mon, 4 Aug 2014 03:49:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XE9F8-0002EP-Ix; Mon, 04 Aug 2014 03:47:26 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XE9F2-00029X-Gj for linux-arm-kernel@lists.infradead.org; Mon, 04 Aug 2014 03:47:20 +0000 Received: by mail-pa0-f49.google.com with SMTP id hz1so9217650pad.36 for ; Sun, 03 Aug 2014 20:46:59 -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=CtYJ/nCbpu6vCm0EURc9ttuhCr3PSx2xn/58ttcUkS4=; b=A6lun7cbwEeg9Y4TrmoA6VX/t3FBhlKv2V48DH2UHzP77IhnHLSrZIq5yrJ/lgINkY h5vXP8cPtFEGG2ndCupQZifWiNLwqk5aIq3g6iOEkqI28a89rLplP8mluIg9XGLANY4D yD5qC9r7+5stbxAFBbzt8hwSI2HTmbytcCsR/B4/3yZZ/EggeXsBa+HQAb+6bD9lDUwx WlWgXsna48HSy8RyKA52mznmzxlCIDw95EdKVqbYk1tFt1RX4Wzw7coGcuLLb2T+PvVJ YOR2fCkbK9MuejNqNkFcwSHaZZbmqFPbJjAu+gI4xpJbGxMX/UepkGsqAeyRNYN1+ge9 e8kg== X-Gm-Message-State: ALoCoQkc3Y88n0wBMlcMUgzY/deCYc6npv/Ea5sn53znju1cZRnwdg7lPmj9fyX0BFRuRCrPEgbA 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140803_204720_578181_FB8273A8 X-CRM114-Status: GOOD ( 10.40 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Zhangfei Gao , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wei Yan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; +}