From patchwork Thu Nov 5 09:22:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 56030 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp293518lbr; Thu, 5 Nov 2015 01:24:57 -0800 (PST) X-Received: by 10.50.40.67 with SMTP id v3mr1721872igk.30.1446715497379; Thu, 05 Nov 2015 01:24:57 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id w188si5555655iod.177.2015.11.05.01.24.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2015 01:24:57 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com 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 1ZuGlX-0007j1-Rt; Thu, 05 Nov 2015 09:23:31 +0000 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZuGlU-0007fb-Ch for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2015 09:23:29 +0000 Received: by lbblt2 with SMTP id lt2so11949610lbb.3 for ; Thu, 05 Nov 2015 01:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7qb7Cd8YxFz7bXGW2/3mxHQwbSzOpfQG+1s+9gxxHyg=; b=LsK24pNYIfJOneMS8mvi8MM4haC2fFbiE/fjcpZM8jhBYUfM/ytXy5GR6uUb56xxcX 1bhaS4alpryovveNZnBpLJDt6f6ZbjCP4B44tBX2oL3Z6ZYwyc2PR0KWAgisF3PoTxk8 uI4Rfe+EOM7egFV5EsDoP7tYmjV8nrqbd0U748WDfvcTs7ki7e4GUzLjB1PmOfJn58Pf Nw2/Cq+4OIog9+UPmkktK/+eQD+AT6eiW6ewLhBS98RMzIzZyhUmc3YhOy4KFL7hz7kp msHXzAYdt098E6Ibiq3ZkW1ykoTvTKFISwb5SnfBJ37Js7nCtBDfpnyQOXdvleCBwlvS s3xQ== 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=7qb7Cd8YxFz7bXGW2/3mxHQwbSzOpfQG+1s+9gxxHyg=; b=fokjU58LcMv3Q6eGvNLz3H2CsHNcQQmOwUaoLiHMbGDdm1pgivRT1jDurjpz4nrbyH hN84SuUc7z1ssI//FyrPENuHm2FHRvPeG1HKKVyl0Vz/csZQYQTkvQaMXWG/xAFTFe1k RiNH5Eb+u4MeXpFgNkDxb2AGODykZATDmODUoVeQlzY+RAaZTM4+JNpkm9jgYAQkFoi3 kWTJfwhZV87Q652wASXqXJFhR6svq3p52f9ciHgKkDSimzN7zXjPgi1BscyDkFsozFbt qEBc16o7MlrkJHM9j7d1Dk2p37FVCE3QMOTZ1VLFDJd1Fx/Wl8h4XHK8ob7GKePTnzgQ xgcQ== X-Gm-Message-State: ALoCoQnPJdtq5IOGYj8ZzEChh8J80xnypNjmjsYJaRARExhc4IAG4plJ9lhFRrGtfT/OSm4lQ7Ze X-Received: by 10.112.135.9 with SMTP id po9mr3259721lbb.56.1446715386006; Thu, 05 Nov 2015 01:23:06 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id kk6sm802479lbc.48.2015.11.05.01.23.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2015 01:23:05 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Ulf Hansson Subject: [PATCH] ARM: ux500: Assign proper sensore IRQs for Snowball Date: Thu, 5 Nov 2015 10:22:59 +0100 Message-Id: <1446715379-4374-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-20151105_012328_619294_9C0F756F X-CRM114-Status: GOOD ( 13.29 ) 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 [2a00:1450:4010:c04:0:0:0:235 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 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 , Denis Ciocca MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The Snowball gyro and magnetometer DRDY (data ready) lines are used as interrupt triggers by the IIO subsystem, triggering new data retrieveal on edges on this signal. Thus assign them as the primary interrupt in the device tree. The "other interrupt" coming out of the sensors is for alarms and similar complex events, the DRDY is for periodic measures, which is what we want. After this the generic_buffer tool from IIO tools gives a nice stream of readings after enabling the desired channels in sysfs. Cc: Denis Ciocca Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-snowball.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 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-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts index e80e42163883..08f82077b64d 100644 --- a/arch/arm/boot/dts/ste-snowball.dts +++ b/arch/arm/boot/dts/ste-snowball.dts @@ -281,7 +281,8 @@ vddio-supply = <&db8500_vsmps2_reg>; pinctrl-names = "default"; pinctrl-0 = <&magneto_snowball_mode>; - gpios = <&gpio5 5 0x4>; /* DRDY line */ + interrupt-parent = <&gpio5>; + interrupts = <5 IRQ_TYPE_EDGE_RISING>; /* DRDY line */ }; l3g4200d@68 { /* Gyroscope */ @@ -292,9 +293,9 @@ vddio-supply = <&db8500_vsmps2_reg>; pinctrl-names = "default"; pinctrl-0 = <&gyro_snowball_mode>; - gpios = <&gpio5 6 0x4>; /* DRDY line */ interrupt-parent = <&gpio5>; - interrupts = <9 IRQ_TYPE_EDGE_RISING>; /* INT1 */ + interrupts = <6 IRQ_TYPE_EDGE_RISING>, /* DRDY line */ + <9 IRQ_TYPE_EDGE_RISING>; /* INT1 */ }; lsp001wm@5c { /* Barometer/pressure sensor */