summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/motionsense
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-0528-766/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* zephyr: motionsense: Add default value of default-rangeWai-Hong Tam2021-07-214-0/+12
| | | | | | | | | | | | | | | | The default range is a chip-specific property. The same motionsense chip use the same setting and rarely changes. Add the value as the default property. So the project dts can neglect this property. Easy to switch chip without bothering to change this property. BRANCH=None BUG=b:194194887 TEST=Built the delbin and hayato images successfully. Change-Id: I856f0b93af67974f29800551f7da779b43facc55 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042986 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: motionsense: Add default value of i2c-spi-addr-flagsWai-Hong Tam2021-07-213-3/+3
| | | | | | | | | | | | | | | Make the property consistent across different sensors: * not required * default to a common I2C address BRANCH=None BUG=b:194194887 TEST=Built the delbin and hayato images successfully. Change-Id: I7784176e6d09e883b9ef957311aba610d3e69597 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042985 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: lis2dw12: add I2C addr_flags in the DTSDenis Brockus2021-06-171-0/+9
| | | | | | | | | | | | | | | | BUG=b:189857004 BRANCH=none TEST=ap console 'ectool motionsense' TEST=ap console 'ectool motionsense lid_angle' TEST=verify lid angle will enable/disable tablet mode Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I81b0c7883fe7f968f8226d0101e27ee03676097c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964956 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* zephyr: driver: add ST accel_lis2dw12Denis Brockus2021-06-072-0/+28
| | | | | | | | | | | | | | | BUG=b:180980668,b:189857004 BRANCH=none TEST=make buildall TEST=zmake configure -b $PROJ_HAYATO Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ib743f0dbcc4a9731ccb575344413f161cd0dbba2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2944617 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Yuval Peress <peress@chromium.org>
* zephyr: Rework CBI to be used as a driverDawid Niedzwiecki2021-05-141-0/+4
| | | | | | | | | | | | | | | | | | Rework the CBI support in Zephyr to be used via driver API. Change also approach what to do with SSFC - let sensor drivers decide how to handle alternative sensors. BUG=b:183990188 BRANCH=none TEST=Add alternative motion sensors to the device tree, modify CBI SSFC with 'cbi set 8 value 4', reboot EC and verify that the new sensors are used with the 'accelinfo' command. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I701af96bfa7a17333220530a5c63b8e8aaeb0d6b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2862727 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: sensors: Add alternate sensors supportYuval Peress2021-04-231-0/+4
| | | | | | | | | | | | | | | | | | | | | In some boards there's a runtime decision for which sensor to use. In order to support this we'll need an instance of the alternate sensors as well as a mapping for them. Add an optional phandle `alternate-for` to the base sensors bindings. When used, the sensor will be excluded from the primary motion_sensors array and added instead to the motion_sensors_alt array. BRANCH=none BUG=b:183990188, b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I6f6e3a9659a381c45fd97fbce9fecb2a807f7fa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2846415 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: drivers: add bindings for KX022Yuval Peress2021-04-232-0/+39
| | | | | | | | | | | | | | | | | | Add the bindings files for the kx022 and generic kionix driver data. Also, add the .inc files needed to create an instance of the sensor and data structures. BRANCH=none BUG=b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Id72690763b27888848645ee38a747a4e49fa0d42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2845558 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: dts: bmi160: Add bmi160 DT bindingsYuval Peress2021-04-225-1/+61
| | | | | | | | | | | | | | Adds the bindings needed to use the bmi160 in devicetree. BRANCH=none BUG=b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I6c83adca1b6456eea34367df693d1993f6ef86eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842709 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: DT: support TCS3400Hyungwoo Yang2021-03-245-0/+87
| | | | | | | | | | | | | | | | | | This change is to support TCS3400 via DT. The change includes, using DT, - creating TCS3400 driver specific data - creating motion sensor entry for TCS3400 - creating the TCS3400 irq event to motion sense task BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I09cb7d69baa95c8450c7f5cc0149038aa23f3bc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778822 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support BMI260Hyungwoo Yang2021-03-244-0/+52
| | | | | | | | | | | | | | | | | | This change is to support BMI260 via DT. The change includes, using DT, - creating BMI260 driver specific data - creating motion sensor entry for BMI260 - creating the BMI260 irq event to motion sense task BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: Id5c64df4d2f14a50709ac15855567a67671b8515 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778821 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support BMA255Hyungwoo Yang2021-03-242-0/+39
| | | | | | | | | | | | | | | | | This change is to support BMA255 via DT. The change includes, using DT, - creating BMA255 driver specific data - creating motion sensor entry for BMA255 BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Change-Id: Ie67dc1fb7a25872d48c805b5ba4385dae399f240 Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778820 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support CONFIG_ACCEL_FORCE_MODE_MASKHyungwoo Yang2021-03-241-0/+11
| | | | | | | | | | | | | | | This change support to create CONFIG_ACCEL_FORCE_MODE_MASK using the information from DT. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Change-Id: Ibd9a3ca2a699b2bd95bdbb3c6ce7b195d460d5d1 Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778819 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support sensor irq enablingHyungwoo Yang2021-03-241-0/+13
| | | | | | | | | | | | | | | This change allows motion sensor interrupt to be enabled at initial stage. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: Ib85a1015110ae0a43c62a10c97e0d8f21a86319d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778818 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support creating motion_als_sensorsHyungwoo Yang2021-03-241-0/+32
| | | | | | | | | | | | | | | This change allows to create motion_als_sensors array by using the information from DT. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: Ic1c169d8f98de9f6b09f68d99844cb709f57e33d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778817 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: basic support for motion sensorHyungwoo Yang2021-03-242-0/+140
| | | | | | | | | | | | | | | This change allows sensor drivers to create motion sensor entry using the information from DT. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I1cae9760492966601c1d98050764a2e93b4fc013 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778816 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support sensor driver dataHyungwoo Yang2021-03-234-0/+147
| | | | | | | | | | | | | | | This has basic support to create instances of sensor-specific driver data using the information from device tree. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I196d7595e8bd880e2314290660f08274ad99e172 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778815 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support sensor rotation matrixHyungwoo Yang2021-03-231-0/+55
| | | | | | | | | | | | | | | | This creates instances of rotation matrix(mat33_fp_t) which is used to convert raw value from a sensor to X, Y and Z on the defined coordinate system. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: Ifc80fe7ff33c46904af279b9f52e611c7157c346 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2778814 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: DT: support sensor driver mutexHyungwoo Yang2021-03-221-0/+34
This change creates mutex instances based on information from device tree. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.corp-partner.google.com> Change-Id: I785e58efe1db9c5fad633bbfb87be3909f253162 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2749427 Reviewed-by: Simon Glass <sjg@chromium.org>