From patchwork Thu Jul 30 08:12:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 502009 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7D7821402CA for ; Thu, 30 Jul 2015 18:14:01 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751216AbbG3IOA (ORCPT ); Thu, 30 Jul 2015 04:14:00 -0400 Received: from conuserg011.nifty.com ([202.248.44.37]:55186 "EHLO conuserg011-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750838AbbG3IN7 (ORCPT ); Thu, 30 Jul 2015 04:13:59 -0400 Received: from beagle.diag.org (KD036010086095.au-net.ne.jp [36.10.86.95]) (authenticated) by conuserg011-v.nifty.com with ESMTP id t6U8CXx7028452; Thu, 30 Jul 2015 17:12:49 +0900 X-Nifty-SrcIP: [36.10.86.95] From: Masahiro Yamada To: linux-i2c@vger.kernel.org Cc: Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang , Kumar Gala , Ian Campbell , Rob Herring , Pawel Moll , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] i2c: uniphier: add bindings for UniPhier I2C controllers Date: Thu, 30 Jul 2015 17:12:22 +0900 Message-Id: <1438243942-26401-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438243942-26401-1-git-send-email-yamada.masahiro@socionext.com> References: <1438243942-26401-1-git-send-email-yamada.masahiro@socionext.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Device Tree bindings for two I2C controllers embedded in UniPhier SoCs. Signed-off-by: Masahiro Yamada --- .../devicetree/bindings/i2c/i2c-uniphier.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-uniphier.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-uniphier.txt b/Documentation/devicetree/bindings/i2c/i2c-uniphier.txt new file mode 100644 index 0000000..e4ddb50 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-uniphier.txt @@ -0,0 +1,46 @@ +UniPhier I2C controller + +Two different types of I2C controller IPs are used on UniPhier SoC platform: +- FIFO-less I2C controller on PH-LD4, PH1-sLD8 or older SoCs +- FIFO-builtin I2C controller on PH1-Pro4 or newer SoCs + +Required properties: +- compatible: should be one of the followings: + "socionext,uniphier-i2c" (FIFO-less) + "socionext,uniphier-fi2c" (FIFO-builtin) +- #address-cells: should be 1. +- #size-cells: should be 0. +- reg: offset and length of the register set for the device. +- interrupts: a single interrupt specifier. +- clocks: phandle to the input clock. + +Optional properties: +- clock-frequency: desired I2C bus frequency in Hz. The maximum supported + value is 400000. Defaults to 100000 if not specified. + +Examples: + +- FIFO-less + + i2c0: i2c@58400000 { + compatible = "socionext,uniphier-i2c"; + reg = <0x58400000 0x40>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0 41 1>; + clocks = <&i2c_clk>; + clock-frequency = <100000>; + }; + + +- FIFO-builtin + + i2c0: i2c@58780000 { + compatible = "socionext,uniphier-fi2c"; + reg = <0x58780000 0x80>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <0 41 4>; + clocks = <&i2c_clk>; + clock-frequency = <100000>; + };