board/shields: x-nucleo-iks01a3: (FIX) use INT2 for LSM6DSO DRDY

On LSM6DSO sensor the INT1 pin is used for both generating the drdy
interrupt and for switching to I3C hotjoin mode just after reset if
it is at logical '1' level. If you reset the x_nucleo_shield3 board
the LSM6DSO enter in hot join, as INT1 '1' level is preserved by
the level shifter.

This commit switch to INT2 to generate DRDY interrupt, so that INT1
always remain to logical '0' level.

Fixes: #20933

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-11-21 16:32:18 +01:00 committed by Ioannis Glaropoulos
parent 03ae58490c
commit 75d21c1513
4 changed files with 6 additions and 6 deletions

View file

@ -43,7 +43,7 @@
lsm6dso@6b {
compatible = "st,lsm6dso";
reg = <0x6b>;
irq-gpios = <&arduino_header 10 0>; /* D4 */
irq-gpios = <&arduino_header 11 0>; /* D5 */
label = "LSM6DSO";
};
};

View file

@ -16,7 +16,7 @@
lsm6dso@6b {
compatible = "st,lsm6dso";
reg = <0x6b>;
irq-gpios = <&arduino_header 10 0>; /* D4 */
irq-gpios = <&arduino_header 11 0>; /* D5 */
label = "LSM6DSO";
};
};

View file

@ -8,7 +8,7 @@ CONFIG_LIS2DW12=y
CONFIG_LIS2DW12_TRIGGER_NONE=y
CONFIG_LSM6DSO=y
CONFIG_LSM6DSO_ENABLE_TEMP=n
CONFIG_LSM6DSO_INT_PIN_1=y
CONFIG_LSM6DSO_INT_PIN_2=y
CONFIG_LSM6DSO_TRIGGER_OWN_THREAD=y
CONFIG_LSM6DSO_SENSORHUB=y
CONFIG_LSM6DSO_EXT_LIS2MDL=y

View file

@ -11,10 +11,10 @@ CONFIG_LPS22HH_TRIGGER_OWN_THREAD=y
CONFIG_STTS751=y
CONFIG_STTS751_TRIGGER_NONE=y
CONFIG_LIS2MDL=y
CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y
CONFIG_LIS2MDL_TRIGGER_NONE=y
CONFIG_LIS2DW12=y
CONFIG_LIS2DW12_TRIGGER_NONE=y
CONFIG_LIS2DW12_TRIGGER_OWN_THREAD=y
CONFIG_LSM6DSO=y
CONFIG_LSM6DSO_ENABLE_TEMP=n
CONFIG_LSM6DSO_INT_PIN_1=y
CONFIG_LSM6DSO_INT_PIN_2=y
CONFIG_LSM6DSO_TRIGGER_OWN_THREAD=y