brya: Alloc separate lsm6dso drvdata structures
Allocate separate lsm6dso drvdata structures for each
instance in the motion_sensors array.
TEST=zmake build brya
BRANCH=none
status = "okay";
};
- lsm6dso_data: lsm6dso-drv-data {
+ lsm6dso_accel_data: lsm6dso-drv-data {
+ compatible = "cros-ec,drvdata-lsm6dso";
+ status = "okay";
+ };
+
+ lsm6dso_gyro_data: lsm6dso-drv-data {
compatible = "cros-ec,drvdata-lsm6dso";
status = "okay";
};
port = <&i2c_sensor>;
rot-standard-ref = <&base_rot_ref>;
default-range = <4>;
- drv-data = <&lsm6dso_data>;
+ drv-data = <&lsm6dso_accel_data>;
i2c-spi-addr-flags = "LSM6DSO_ADDR0_FLAGS";
configs {
compatible =
port = <&i2c_sensor>;
rot-standard-ref = <&base_rot_ref>;
default-range = <(1000 | ROUND_UP_FLAG)>; /* dps */
- drv-data = <&lsm6dso_data>;
+ drv-data = <&lsm6dso_gyro_data>;
i2c-spi-addr-flags = "LSM6DSO_ADDR0_FLAGS";
};
