aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ste-snowball.dts
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-04-27 05:28:33 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-05-13 06:22:18 -0400
commit22a93167025b2b4ae4476bc01645dccb96ff0742 (patch)
tree90a4bbd2e2fd33e9ed0136be0c20e478d5b10de1 /arch/arm/boot/dts/ste-snowball.dts
parent93deea9a60041e9c56bba97b6d3fb0bd147f5ebe (diff)
ARM: ux500: assign the sensor trigger IRQs
The ST sensors on the Ux500 boards were not utilizing the IRQs for data ready sample triggers. Enable this by assigning the right GPIO lines and interrupt lines (when the GPIO lines are used for IRQs) to the accelerometer, gyro and magnetometer sensors. 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.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts
index 3844bbe61d71..d332ea34fd4d 100644
--- a/arch/arm/boot/dts/ste-snowball.dts
+++ b/arch/arm/boot/dts/ste-snowball.dts
@@ -249,6 +249,9 @@
249 vddio-supply = <&db8500_vsmps2_reg>; 249 vddio-supply = <&db8500_vsmps2_reg>;
250 pinctrl-names = "default"; 250 pinctrl-names = "default";
251 pinctrl-0 = <&accel_snowball_mode>; 251 pinctrl-0 = <&accel_snowball_mode>;
252 interrupt-parent = <&gpio5>;
253 interrupts = <3 IRQ_TYPE_EDGE_RISING>, /* INT1 */
254 <4 IRQ_TYPE_EDGE_RISING>; /* INT2 */
252 }; 255 };
253 lsm303dlh@1e { 256 lsm303dlh@1e {
254 /* Magnetometer */ 257 /* Magnetometer */
@@ -258,6 +261,7 @@
258 vddio-supply = <&db8500_vsmps2_reg>; 261 vddio-supply = <&db8500_vsmps2_reg>;
259 pinctrl-names = "default"; 262 pinctrl-names = "default";
260 pinctrl-0 = <&magneto_snowball_mode>; 263 pinctrl-0 = <&magneto_snowball_mode>;
264 gpios = <&gpio5 5 0x4>; /* DRDY line */
261 }; 265 };
262 l3g4200d@68 { 266 l3g4200d@68 {
263 /* Gyroscope */ 267 /* Gyroscope */
@@ -266,6 +270,11 @@
266 reg = <0x68>; 270 reg = <0x68>;
267 vdd-supply = <&ab8500_ldo_aux1_reg>; 271 vdd-supply = <&ab8500_ldo_aux1_reg>;
268 vddio-supply = <&db8500_vsmps2_reg>; 272 vddio-supply = <&db8500_vsmps2_reg>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&gyro_snowball_mode>;
275 gpios = <&gpio5 6 0x4>; /* DRDY line */
276 interrupt-parent = <&gpio5>;
277 interrupts = <9 IRQ_TYPE_EDGE_RISING>; /* INT1 */
269 }; 278 };
270 lsp001wm@5c { 279 lsp001wm@5c {
271 /* Barometer/pressure sensor */ 280 /* Barometer/pressure sensor */
@@ -476,6 +485,16 @@
476 }; 485 };
477 }; 486 };
478 }; 487 };
488 gyro {
489 gyro_snowball_mode: gyro_snowball {
490 snowball_cfg1 {
491 pins =
492 "GPIO166_A22", /* DRDY */
493 "GPIO169_D22"; /* INT */
494 ste,config = <&gpio_in_pu>;
495 };
496 };
497 };
479 magnetometer { 498 magnetometer {
480 magneto_snowball_mode: magneto_snowball { 499 magneto_snowball_mode: magneto_snowball {
481 snowball_cfg1 { 500 snowball_cfg1 {