diff options
Diffstat (limited to 'zephyr/projects/nissa/craask/motionsense.dts')
-rw-r--r-- | zephyr/projects/nissa/craask/motionsense.dts | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/zephyr/projects/nissa/craask/motionsense.dts b/zephyr/projects/nissa/craask/motionsense.dts index 445de5c9a9..a0085d63e6 100644 --- a/zephyr/projects/nissa/craask/motionsense.dts +++ b/zephyr/projects/nissa/craask/motionsense.dts @@ -24,7 +24,10 @@ */ motionsense-mutex { compatible = "cros-ec,motionsense-mutex"; - lid_mutex: lid-mutex { + lid_mutex: lis2dw12-mutex { + }; + + lid_mutex_bma422: bma422-mutex { }; base_mutex: base-mutex { @@ -51,6 +54,12 @@ 0 (-1) 0 0 0 1>; }; + + lid_rot_bma422: lid-rotation-ref { + mat33 = <1 0 0 + 0 (-1) 0 + 0 0 (-1)>; + }; }; /* @@ -72,6 +81,11 @@ compatible = "cros-ec,drvdata-lis2dw12"; status = "okay"; }; + + bma422_data: bma4xx-drv-data { + compatible = "cros-ec,drvdata-bma4xx"; + status = "okay"; + }; }; /* @@ -143,6 +157,34 @@ }; }; + motionsense-sensor-alt { + alt_lid_accel: alt-lid-accel { + compatible = "cros-ec,bma4xx"; + status = "okay"; + + active-mask = "SENSOR_ACTIVE_S0_S3"; + location = "MOTIONSENSE_LOC_LID"; + mutex = <&lid_mutex_bma422>; + port = <&i2c_ec_i2c_sensor>; + rot-standard-ref = <&lid_rot_bma422>; + default-range = <2>; + drv-data = <&bma422_data>; + i2c-spi-addr-flags = "BMA4_I2C_ADDR_PRIMARY"; + alternate-for = <&lid_accel>; + alternate-ssfc-indicator = <&lid_sensor_1>; + configs { + compatible = + "cros-ec,motionsense-sensor-config"; + ec-s0 { + odr = <(10000 | ROUND_UP_FLAG)>; + }; + ec-s3 { + odr = <(10000 | ROUND_UP_FLAG)>; + }; + }; + }; + }; + motionsense-sensor-info { compatible = "cros-ec,motionsense-sensor-info"; |