From patchwork Sun May 31 09:44:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Tang X-Patchwork-Id: 6515591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 84EDB9F1C1 for ; Sun, 31 May 2015 09:47:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABB962061E for ; Sun, 31 May 2015 09:47:10 +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 CCD092060C for ; Sun, 31 May 2015 09:47:09 +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 1YyznK-0001jw-1u; Sun, 31 May 2015 09:44:38 +0000 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YyznG-0001at-Qp for linux-arm-kernel@lists.infradead.org; Sun, 31 May 2015 09:44:35 +0000 Received: by pdbki1 with SMTP id ki1so86184926pdb.1 for ; Sun, 31 May 2015 02:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=n6sgJlDO4XMP+KkdBGSHjlYnQCaYSdgskbhDhQzqmns=; b=fRCQjO7on4kCf/dRU1SE4O6Au83OU2UPX5Io68GPWkzw7D7NqlPHehJGD2i2FehURp eKwON7j9NHNVzL1nYjF696BYCFIM8q0AVfld4NKguqT0dxoMYOPRpL/g26EYwYMfVDjs Tsbdgw+1ul4shKJ5IBsXmvBc62lzQg8JLkLZ4t4SJEiZXdaqjNR8/5NtzMS+TJCXAVFf B+ZudZs6lVphjAp42eM69aX3inbLFu3q7MidQ/+1uoLL8Dbyb/+aJVtv3vmy8n60ZryC o6OkexRN8kSHSmvn9JTO4kVrhxxoXo65QRE8ui0YODQler1LmGRUknZ+zrKdxAMudabL 2lDQ== X-Received: by 10.68.135.169 with SMTP id pt9mr30203256pbb.110.1433065451463; Sun, 31 May 2015 02:44:11 -0700 (PDT) Received: from tangrs.lan (110-175-69-66.static.tpgi.com.au. [110.175.69.66]) by mx.google.com with ESMTPSA id po2sm10852917pbb.13.2015.05.31.02.44.08 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 May 2015 02:44:10 -0700 (PDT) From: Daniel Tang To: arm@kernel.org Subject: [PATCH] devicetree: Add support for I2C and related devices to TI-NSPIRE platform Date: Sun, 31 May 2015 19:44:02 +1000 Message-Id: <1433065442-92750-1-git-send-email-dt.tangr@gmail.com> X-Mailer: git-send-email 2.2.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150531_024435_009481_0673667E X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Daniel Tang , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 This patch adds device tree entries for I2C hardware to the TI-NSPIRE platforms that have it. It also adds support for the touchpad that communicates over the I2C bus. Signed-off-by: Daniel Tang --- arch/arm/boot/dts/nspire-cx.dts | 13 +++++++++++++ arch/arm/boot/dts/nspire-tp.dts | 14 ++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/nspire-cx.dts b/arch/arm/boot/dts/nspire-cx.dts index 08e0b81..e369e3b 100644 --- a/arch/arm/boot/dts/nspire-cx.dts +++ b/arch/arm/boot/dts/nspire-cx.dts @@ -104,9 +104,22 @@ #size-cells = <1>; i2c@90050000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,designware-i2c"; reg = <0x90050000 0x1000>; interrupts = <20>; + + clocks = <&apb_pclk>; + + i2c-sda-falling-time-ns = <810>; + i2c-scl-falling-time-ns = <2410>; + + touchpad@20 { + compatible = "synaptics_i2c"; + reg = <0x20>; + }; }; }; }; diff --git a/arch/arm/boot/dts/nspire-tp.dts b/arch/arm/boot/dts/nspire-tp.dts index 621391c..49fb97a 100644 --- a/arch/arm/boot/dts/nspire-tp.dts +++ b/arch/arm/boot/dts/nspire-tp.dts @@ -41,4 +41,18 @@ / { model = "TI-NSPIRE Touchpad"; compatible = "ti,nspire-tp"; + + i2c@gpio { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "i2c-gpio"; + gpios = < &gpio 3 0 /* sda */ + &gpio 1 0 /* scl */ >; + + touchpad@20 { + compatible = "synaptics_i2c"; + reg = <0x20>; + }; + }; };