mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 14:30:55 +07:00
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>
This commit is contained in:
parent
93deea9a60
commit
22a9316702
@ -99,6 +99,9 @@ lsm303dlh@18 {
|
||||
vddio-supply = <&db8500_vsmps2_reg>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&accel_tvk_mode>;
|
||||
interrupt-parent = <&gpio2>;
|
||||
interrupts = <18 IRQ_TYPE_EDGE_RISING>,
|
||||
<19 IRQ_TYPE_EDGE_RISING>;
|
||||
};
|
||||
lsm303dlh@1e {
|
||||
/* Magnetometer */
|
||||
|
@ -249,6 +249,9 @@ lsm303dlh@18 {
|
||||
vddio-supply = <&db8500_vsmps2_reg>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&accel_snowball_mode>;
|
||||
interrupt-parent = <&gpio5>;
|
||||
interrupts = <3 IRQ_TYPE_EDGE_RISING>, /* INT1 */
|
||||
<4 IRQ_TYPE_EDGE_RISING>; /* INT2 */
|
||||
};
|
||||
lsm303dlh@1e {
|
||||
/* Magnetometer */
|
||||
@ -258,6 +261,7 @@ lsm303dlh@1e {
|
||||
vddio-supply = <&db8500_vsmps2_reg>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&magneto_snowball_mode>;
|
||||
gpios = <&gpio5 5 0x4>; /* DRDY line */
|
||||
};
|
||||
l3g4200d@68 {
|
||||
/* Gyroscope */
|
||||
@ -266,6 +270,11 @@ l3g4200d@68 {
|
||||
reg = <0x68>;
|
||||
vdd-supply = <&ab8500_ldo_aux1_reg>;
|
||||
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 */
|
||||
};
|
||||
lsp001wm@5c {
|
||||
/* Barometer/pressure sensor */
|
||||
@ -476,6 +485,16 @@ snowball_cfg1 {
|
||||
};
|
||||
};
|
||||
};
|
||||
gyro {
|
||||
gyro_snowball_mode: gyro_snowball {
|
||||
snowball_cfg1 {
|
||||
pins =
|
||||
"GPIO166_A22", /* DRDY */
|
||||
"GPIO169_D22"; /* INT */
|
||||
ste,config = <&gpio_in_pu>;
|
||||
};
|
||||
};
|
||||
};
|
||||
magnetometer {
|
||||
magneto_snowball_mode: magneto_snowball {
|
||||
snowball_cfg1 {
|
||||
|
Loading…
Reference in New Issue
Block a user