aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ste-snowball.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-11-05 04:18:14 -0500
committerLinus Walleij <linus.walleij@linaro.org>2015-11-17 03:37:09 -0500
commitc80b4010d7e4a1ba2aa83928a659f4bd87c1019c (patch)
treef44d257ca75f8f16510170eed0d1b5fb51ee55a5 /arch/arm/boot/dts/ste-snowball.dts
parent250656b4bc442d8e8c264733241b7b083dabb1a8 (diff)
ARM: ux500: Assign proper sensor IRQs for Snowball
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 <denis.ciocca@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/ste-snowball.dts')
-rw-r--r--arch/arm/boot/dts/ste-snowball.dts7
1 files changed, 4 insertions, 3 deletions
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 @@
281 vddio-supply = <&db8500_vsmps2_reg>; 281 vddio-supply = <&db8500_vsmps2_reg>;
282 pinctrl-names = "default"; 282 pinctrl-names = "default";
283 pinctrl-0 = <&magneto_snowball_mode>; 283 pinctrl-0 = <&magneto_snowball_mode>;
284 gpios = <&gpio5 5 0x4>; /* DRDY line */ 284 interrupt-parent = <&gpio5>;
285 interrupts = <5 IRQ_TYPE_EDGE_RISING>; /* DRDY line */
285 }; 286 };
286 l3g4200d@68 { 287 l3g4200d@68 {
287 /* Gyroscope */ 288 /* Gyroscope */
@@ -292,9 +293,9 @@
292 vddio-supply = <&db8500_vsmps2_reg>; 293 vddio-supply = <&db8500_vsmps2_reg>;
293 pinctrl-names = "default"; 294 pinctrl-names = "default";
294 pinctrl-0 = <&gyro_snowball_mode>; 295 pinctrl-0 = <&gyro_snowball_mode>;
295 gpios = <&gpio5 6 0x4>; /* DRDY line */
296 interrupt-parent = <&gpio5>; 296 interrupt-parent = <&gpio5>;
297 interrupts = <9 IRQ_TYPE_EDGE_RISING>; /* INT1 */ 297 interrupts = <6 IRQ_TYPE_EDGE_RISING>, /* DRDY line */
298 <9 IRQ_TYPE_EDGE_RISING>; /* INT1 */
298 }; 299 };
299 lsp001wm@5c { 300 lsp001wm@5c {
300 /* Barometer/pressure sensor */ 301 /* Barometer/pressure sensor */