From patchwork Sat Oct 31 17:35:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= X-Patchwork-Id: 538668 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 EB4E4140D24 for ; Sun, 1 Nov 2015 04:36:18 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753390AbbJaRgR (ORCPT ); Sat, 31 Oct 2015 13:36:17 -0400 Received: from unicorn.mansr.com ([81.2.72.234]:36715 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039AbbJaRgQ (ORCPT ); Sat, 31 Oct 2015 13:36:16 -0400 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 741641538A; Sat, 31 Oct 2015 17:36:07 +0000 (GMT) From: Mans Rullgard To: Wolfram Sang , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] devicetree: i2c: add binding for Sigma Designs SMP8642 I2C master Date: Sat, 31 Oct 2015 17:35:56 +0000 Message-Id: <1446312957-18744-1-git-send-email-mans@mansr.com> X-Mailer: git-send-email 2.6.2 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a binding for the Sigma Designs SMP8642 built-in I2C master controller. Signed-off-by: Mans Rullgard Acked-by: Rob Herring --- .../devicetree/bindings/i2c/sigma,smp8642-i2c.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/sigma,smp8642-i2c.txt diff --git a/Documentation/devicetree/bindings/i2c/sigma,smp8642-i2c.txt b/Documentation/devicetree/bindings/i2c/sigma,smp8642-i2c.txt new file mode 100644 index 0000000..117fc8b --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/sigma,smp8642-i2c.txt @@ -0,0 +1,24 @@ +Sigma Designs SMP8642 I2C master + +Required properties: +- compatible: should be "sigma,smp8642-i2c" +- reg: physical address space of the device +- interrupts: the interrupt of the device +- clocks: phandle of the clock for the device +- #address-cells: should be <1> +- #size-cells: should be <0> + +Optional properties: +- clock-frequency: frequency of bus clock in Hz, default 100kHz + +Example: + +i2c@10480 { + compatible = "sigma,smp8642-i2c"; + reg = <0x10480 0x2c>; + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sys_clk>; + clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; +};