From patchwork Sat Mar 26 23:27:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 64506 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp797805lbc; Sat, 26 Mar 2016 16:29:29 -0700 (PDT) X-Received: by 10.66.222.199 with SMTP id qo7mr31656556pac.38.1459034969751; Sat, 26 Mar 2016 16:29:29 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id b14si3926231pat.152.2016.03.26.16.29.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Mar 2016 16:29:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org 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 1ajxch-00039q-Ru; Sat, 26 Mar 2016 23:28:03 +0000 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ajxcd-00038B-Q8 for linux-arm-kernel@lists.infradead.org; Sat, 26 Mar 2016 23:28:01 +0000 Received: by mail-lf0-x22a.google.com with SMTP id c62so70142820lfc.1 for ; Sat, 26 Mar 2016 16:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=p2gNBZEWUkqmE9YhzyFkLZU5qPAqePUxdwsmhg6kWZ0=; b=gL/l01y7dAp6O5S7U9qhhX2k/a7V/hsm6o3foEuTldWKxRbROHH3BEt3H6xqP/whnt UCMV4sCe2l35MlXNrzPq4GECvEgavDx6teqwBw8Pk9yEKRhF0ah34SomXSMQhUV+OBAX qy/od+QrGRwPRE1IVYxH8fWiR9BMFl4xG+emc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p2gNBZEWUkqmE9YhzyFkLZU5qPAqePUxdwsmhg6kWZ0=; b=hPf+th2zljSlQXrumb2H/xm/R0R7hQ//x1S9O9qVR/xleuRrKF3s/eLxLJjVKvBSIP pAeQOxZ5dM0KireH38U2hWlXIwLQGE6L40wr1+iBXqKnrix8rSuA8DcO7zwhzRjwYT6s n+03MVF1zpid7abzcEqWB6rBaRwSzK8YJKVdnhAuu+myM2s1PrizUSxF2Yumr72ywspG a1qgeyL8k+5r49qDyaP6JXFfhF7rM83RBzy2Nuo1A/MYmeyr7SePyUvBDKD6Z8Z60FGf qbv9MZFGX39awUE4aU45Pa6PotjxjlwOJu2JRMUkJCylBMu76QXnVTvbpX91oyFMVa6h c9kQ== X-Gm-Message-State: AD7BkJK3HZjZCkarV2HZHaA0VtRRObdnoV2Wo4fTqtifE7XcBOll7jhqeysLVSGVg1LPEzr/ X-Received: by 10.25.27.200 with SMTP id b191mr8327597lfb.8.1459034857207; Sat, 26 Mar 2016 16:27:37 -0700 (PDT) Received: from localhost.localdomain.localdomain ([213.113.123.146]) by smtp.gmail.com with ESMTPSA id o10sm3069817lbp.47.2016.03.26.16.27.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Mar 2016 16:27:36 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: nomadik: add accelerometer IRQ and pin setting Date: Sun, 27 Mar 2016 00:27:26 +0100 Message-Id: <1459034846-29326-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-20160326_162800_173941_8743337B X-CRM114-Status: GOOD ( 12.79 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:22a listed in] [list.dnswl.org] -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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 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(-) -- 2.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/boot/dts/ste-nomadik-nhk15.dts b/arch/arm/boot/dts/ste-nomadik-nhk15.dts index 4a21c6492dbb..d35aa88791ad 100644 --- a/arch/arm/boot/dts/ste-nomadik-nhk15.dts +++ b/arch/arm/boot/dts/ste-nomadik-nhk15.dts @@ -57,8 +57,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; @@ -86,6 +93,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 {