From patchwork Tue Apr 11 16:02:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thor Thayer X-Patchwork-Id: 749550 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 3w2Wvd3P8bz9sNb for ; Wed, 12 Apr 2017 01:59:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728AbdDKP7X (ORCPT ); Tue, 11 Apr 2017 11:59:23 -0400 Received: from mga05.intel.com ([192.55.52.43]:44060 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752433AbdDKP7W (ORCPT ); Tue, 11 Apr 2017 11:59:22 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 11 Apr 2017 08:59:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,186,1488873600"; d="scan'208";a="72610582" Received: from tthayer-hp-z620-ubuntu.an.intel.com (HELO tthayer-HP-Z620-Ubuntu.altera.com) ([10.122.105.144]) by orsmga002.jf.intel.com with ESMTP; 11 Apr 2017 08:59:19 -0700 From: thor.thayer@linux.intel.com To: wsa@the-dreams.de, robh@kernel.org Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, Thor Thayer Subject: [PATCH 2/3] Documentation: dt: i2c: Add Altera I2C Controller Date: Tue, 11 Apr 2017 11:02:26 -0500 Message-Id: <1491926547-29510-3-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491926547-29510-1-git-send-email-thor.thayer@linux.intel.com> References: <1491926547-29510-1-git-send-email-thor.thayer@linux.intel.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Thor Thayer Add the documentation to support the Altera I2C Controller. Signed-off-by: Thor Thayer --- .../devicetree/bindings/i2c/i2c-altera.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-altera.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-altera.txt b/Documentation/devicetree/bindings/i2c/i2c-altera.txt new file mode 100644 index 0000000..a67241c --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-altera.txt @@ -0,0 +1,37 @@ +* Altera I2C Controller + +Required properties : + - compatible : should be "altr,sip-i2c" + - reg : Offset and length of the register set for the device + - interrupts : where IRQ is the interrupt number. + - clocks : phandles to input clocks. + - #address-cells = <1>; + - #size-cells = <0>; + +Recommended properties : + - clock-frequency : desired I2C bus clock frequency in Hz. + +Optional properties : + - altr,fifo-size : Size of the RX and TX FIFOs. + - Child nodes conforming to i2c bus binding + +Example : + + i2c@100080000 { + compatible = "altr,sip-i2c"; + reg = <0x00000001 0x00080000 0x00000040>; + interrupt-parent = <&intc>; + interrupts = <0 43 4>; + clocks = <&clk_0>; + clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + altr,fifo-size = <4>; + + eeprom@51 { + compatible = "atmel,24c32"; + reg = <0x51>; + pagesize = <32>; + }; + }; +