diff options
-rw-r--r-- | zephyr/projects/nissa/pujjo/motionsense.dts | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/zephyr/projects/nissa/pujjo/motionsense.dts b/zephyr/projects/nissa/pujjo/motionsense.dts index d5719ef08f..ce4a6babe0 100644 --- a/zephyr/projects/nissa/pujjo/motionsense.dts +++ b/zephyr/projects/nissa/pujjo/motionsense.dts @@ -41,11 +41,23 @@ 0 0 (-1)>; }; + lid_rot_lis2dw12: lid-rotation-lis2dw12 { + mat33 = <0 (-1) 0 + (-1) 0 0 + 0 0 (-1)>; + }; + base_rot_ref: base-rotation-ref { mat33 = <0 1 0 (-1) 0 0 0 0 1>; }; + + base_rot_lsm6dsm: base-rotation-lsm6dsm { + mat33 = <1 0 0 + 0 1 0 + 0 0 1>; + }; }; /* @@ -160,7 +172,7 @@ location = "MOTIONSENSE_LOC_LID"; mutex = <&lid_mutex>; port = <&i2c_ec_i2c_sensor>; - rot-standard-ref = <&lid_rot_ref>; + rot-standard-ref = <&lid_rot_lis2dw12>; default-range = <2>; drv-data = <&lis2dw12_data>; i2c-spi-addr-flags = "LIS2DWL_ADDR1_FLAGS"; @@ -186,7 +198,7 @@ location = "MOTIONSENSE_LOC_BASE"; mutex = <&base_mutex>; port = <&i2c_ec_i2c_sensor>; - rot-standard-ref = <&base_rot_ref>; + rot-standard-ref = <&base_rot_lsm6dsm>; drv-data = <&lsm6dsm_data_accel>; alternate-for = <&base_accel>; alternate-ssfc-indicator = <&base_sensor_1>; @@ -212,7 +224,7 @@ location = "MOTIONSENSE_LOC_BASE"; mutex = <&base_mutex>; port = <&i2c_ec_i2c_sensor>; - rot-standard-ref = <&base_rot_ref>; + rot-standard-ref = <&base_rot_lsm6dsm>; drv-data = <&lsm6dsm_data_gyro>; alternate-for = <&base_gyro>; alternate-ssfc-indicator = <&base_sensor_1>; |