diff options
Diffstat (limited to 'zephyr/projects')
-rw-r--r-- | zephyr/projects/trogdor/lazor/motionsense.dts | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/zephyr/projects/trogdor/lazor/motionsense.dts b/zephyr/projects/trogdor/lazor/motionsense.dts index 2dfee0969e..d8fc6123a8 100644 --- a/zephyr/projects/trogdor/lazor/motionsense.dts +++ b/zephyr/projects/trogdor/lazor/motionsense.dts @@ -25,8 +25,8 @@ */ motionsense-mutex { compatible = "cros-ec,motionsense-mutex"; - mutex_bma255: bma255-mutex { - label = "BMA255_MUTEX"; + lid_mutex: lid-mutex { + label = "LID_MUTEX"; }; mutex_bmi160: bmi160-mutex { @@ -69,6 +69,11 @@ compatible = "cros-ec,drvdata-bmi160"; status = "okay"; }; + + kx022_data: kx022-drv-data { + compatible = "cros-ec,drvdata-kionix"; + status = "okay"; + }; }; /* @@ -84,7 +89,7 @@ label = "Lid Accel"; active-mask = "SENSOR_ACTIVE_S0_S3_S5"; location = "MOTIONSENSE_LOC_LID"; - mutex = <&mutex_bma255>; + mutex = <&lid_mutex>; port = <&i2c_sensor>; rot-standard-ref = <&lid_rot_ref>; default-range = <2>; @@ -104,6 +109,31 @@ }; }; + alt_lid_accel { + compatible = "cros-ec,kx022"; + status = "okay"; + label = "Lid Accel"; + active-mask = "SENSOR_ACTIVE_S0_S3_S5"; + location = "MOTIONSENSE_LOC_LID"; + mutex = <&lid_mutex>; + port = <&i2c_sensor>; + rot-standard-ref = <&lid_rot_ref>; + drv-data = <&kx022_data>; + alternate-for = <&lid_accel>; + configs { + compatible = + "cros-ec,motionsense-sensor-config"; + ec-s0 { + label = "SENSOR_CONFIG_EC_S0"; + odr = <(10000 | ROUND_UP_FLAG)>; + }; + ec-s3 { + label = "SENSOR_CONFIG_EC_S3"; + odr = <(10000 | ROUND_UP_FLAG)>; + }; + }; + }; + base_accel: base-accel { compatible = "cros-ec,bmi160-accel"; status = "okay"; |