From patchwork Wed Sep 2 20:32:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 52991 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id DA83223002 for ; Wed, 2 Sep 2015 20:34:48 +0000 (UTC) Received: by lanb10 with SMTP id b10sf8389291lan.3 for ; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:cc:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=e7msfHw2hXhmDVdifuL8JFpSLShpn44Ta/amBDHWzKo=; b=gK1WqUlQEZi0Qy7/gh5VhBXNTsgJDuri1/E/d4tlEudSODMKO0Xt94/KDgFUb04Q+b zkUcxjKsA5jxESkCQJSot3dKqLbr4gMlwf0UzxBB4kcDYnWI3BAdHbY71Bak2CQJ1H4T CeSi9Rip6lO9uezZBnNT4PBQVMt2AeW1B09orKwakwe0fSbADqpngWiRpiQ4uabkg+i4 sGEUFlGTkf7NEJAhdJuWyFJiIoiqvsZtaIQfQ2cI4kBvTZPQbYqIubWmx6O1ZszlIWgF 1uHMWO6LGijIdLZu6StYpr47ArUuPcbintYGN6SV17MioEH7RDnAjl3WMpsRuxsqId6H pteQ== X-Gm-Message-State: ALoCoQnknas+rpFusWHnLKcmAhwQulRnuaY9xEYxTVlVwadX0JGe2tRT+zBZXmLt34QMHbbuITeA X-Received: by 10.112.149.39 with SMTP id tx7mr9683516lbb.11.1441226087770; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.72 with SMTP id l8ls158475lae.9.gmail; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) X-Received: by 10.112.201.36 with SMTP id jx4mr18018951lbc.9.1441226087615; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id c5si20853864lae.45.2015.09.02.13.34.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 13:34:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagj9 with SMTP id j9so15612303lag.2 for ; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) X-Received: by 10.152.44.196 with SMTP id g4mr17857602lam.56.1441226087378; Wed, 02 Sep 2015 13:34:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp821850lbb; Wed, 2 Sep 2015 13:34:46 -0700 (PDT) X-Received: by 10.68.233.134 with SMTP id tw6mr61116188pbc.22.1441226086432; Wed, 02 Sep 2015 13:34:46 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id sj1si21362767pac.48.2015.09.02.13.34.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 13:34:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; 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 1ZXEii-0000A5-Vk; Wed, 02 Sep 2015 20:33:24 +0000 Received: from mail-la0-f50.google.com ([209.85.215.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZXEif-000054-Qs for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2015 20:33:22 +0000 Received: by lagj9 with SMTP id j9so15582498lag.2 for ; Wed, 02 Sep 2015 13:32:59 -0700 (PDT) X-Received: by 10.112.64.7 with SMTP id k7mr16728223lbs.31.1441225978987; Wed, 02 Sep 2015 13:32:58 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-297471d5.01-192-6c756e10.cust.bredbandsbolaget.se. [213.113.116.41]) by smtp.gmail.com with ESMTPSA id k9sm5809301lbp.13.2015.09.02.13.32.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 13:32:58 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: nomadik: add accelerometer IRQ and pin setting Date: Wed, 2 Sep 2015 22:32:54 +0200 Message-Id: <1441225974-27134-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150902_133322_058277_DFCEDDBF X-CRM114-Status: GOOD ( 14.53 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.50 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.50 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: Linus Walleij MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The LIS3LV02DL accelerometer on the Nomadik NHK15 can generate IRQs by the DRDY line. Map this in the DTS file and set up the pin as input to the SoC. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-nomadik-nhk15.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ste-nomadik-nhk15.dts b/arch/arm/boot/dts/ste-nomadik-nhk15.dts index b2bde1296623..bae977b859f2 100644 --- a/arch/arm/boot/dts/ste-nomadik-nhk15.dts +++ b/arch/arm/boot/dts/ste-nomadik-nhk15.dts @@ -46,8 +46,15 @@ }; }; }; + lis3lv02dl { + lis3lv02dl_nhk_mode: lis3lv02dl_nhk { + nhk_cfg1 { + pins = "GPIO82_C10"; // IRQ line + ste,input = <0>; + }; + }; + }; }; - src@101e0000 { /* These chrystal outputs are not used on this board */ disable-sxtalo; @@ -75,6 +82,10 @@ lis3lv02dl@1d { /* Accelerometer */ compatible = "st,lis3lv02dl-accel"; + interrupt-parent = <&gpio2>; + interrupts = <18 IRQ_TYPE_EDGE_RISING>; // GPIO 82 + pinctrl-0 = <&lis3lv02dl_nhk_mode>; + pinctrl-names = "default"; reg = <0x1d>; }; stmpe0: stmpe2401@43 {