| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add initial shim for the lsm6dsm accel/gryo sensor
BUG=none
BRANCH=none
TEST=zmake build pujjo
Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com>
Change-Id: Ib1ab863bedd2575dfafcbfc1c49c54afe46a7c2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865215
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
Code-Coverage: Andrew McRae <amcrae@google.com>
Tested-by: Andrew McRae <amcrae@google.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Normally we don't do this, but enough changes have accumulated that
we're doing a tree-wide one-off update of the name & style.
BRANCH=none
BUG=chromium:1098010
TEST=`repo upload` works
Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b
Signed-off-by: Mike Frysinger <vapier@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use separate data structures for each lsm6dso
driver data sensor entry.
v2 - add comments
BUG=b:242009482
TEST=zmake build nivviks; flash & run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ib0bfb95ba44e1e4b90f7afc52675d777dc665600
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3834903
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Adam Mills <adamjmills@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Zephyr DTS bindings are normally named to match their compatible
strings. Rename few bindings that were misnamed in the EC bindings
directory.
BUG=none
BRANCH=none
TEST=zmake testall
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I789c6fea96cda0d0fb4b697574ed7037097f6b1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779901
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Drop label property from motionsensor bindings, replace it with the node
name where it was used.
BRANCH=none
BUG=b:239165779
TEST=zmake testall
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Ie28a25feafd4e063e0c9bd90a4a2be1b815e181d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763914
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commits adds the motionsense device tree and config changes
required to enable motion sensors for guybrush and skyrim.
BUG=b:214619940
TEST=Used `ectool motionsense` and `accelread` to validate sensor readings
under zephyr
BRANCH=none
Signed-off-by: Robert Zieba <robertzieba@google.com>
Change-Id: I3ef8e14eadcb07c97c616f938c78a8e1254444bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3517676
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A kconfig option for this driver already existed, but device tree
bindings didn't exist and the driver wouldn't actually be built.
BUG=none
TEST=driver builds and runs when enabled on nereid
BRANCH=none
Change-Id: Ia147f582c0782db16a94bf5580c06cd0c2e2cd82
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3442901
Reviewed-by: Andrew McRae <amcrae@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Migrate the motion sense interrupt handling
to refer to interrupts rather than GPIOs.
BUG=b:214608987
TEST=zmake testall
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I0d19cd87e2021acae6e167ef3e3c59b7e501a181
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419426
Reviewed-by: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Porting the dts from cros-ec to zephyr.
BUG=b:213280143
TEST=enabled on kingler, and can be probed
BRANCH=none
Change-Id: I7f11f062d59d17c0f96a43f4cd3e19c759e41847
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369164
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the initial shim for the lsm6dso accel/gyro sensor.
BUG=b:212497341
TEST=zmake testall
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I01b5787f960971a637da743131ef4b74ba07885c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360326
Reviewed-by: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement the dts binding and driver for ICM42607 sensor.
BUG=b:211845298
TEST=`accelread 1` on krabby
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I469b1d5b1f5063691ffd3155040490ef3f43c34e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354657
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The improvements include:
-Use better names for SSFC related things.
-Do not call checking SSFC and replacing alternate sensors automatically.
Let the board-code call the replacement, since it is very specific
operation.
BUG=b:202451919
TEST=zmake testall & test if an alternate sensors are used as it is done
in CL:3310639
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I77a720d5b2ce09ea85902b681c5266d44eb6d144
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3289205
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove a function to probe all alternate motion sensors, but prepare a
function to probe a specific sensor. It introduces more flexibility.
Also, create a separated header file motionsense_sensors_defs.h with
definitions needed in board.h.
BUG=b:202451919
TEST=zmake testall & test if an alternate sensors are used as it is done
in CL:3310639
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ibfab10cbff39e17c8a86aad0c6d7c5897285a0a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3289415
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update SPI references to controller/peripheral for inclusivity.
BUG=b:163885307
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I19b02fb949aad9ade569c4658a904e9ce59e27c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3066272
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Tom Hughes <tomhughes@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for icm426xx accel and gyro sensors.
This allows to define these sensors in board's device tree.
Add support for runtime probing of this sensor.
BRANCH=main
BUG=b:194424288
TEST=icm426xx sensor can be defined in zephyr build
all dependencies are generated correctly
Change-Id: I7a6499cb099c3edca8513b664d4948afea59998c
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3137943
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add possibility to define alternative motion sensors that
will be probed on EC boot.
This will allow to easily specify different variants of boards with
different motion sensors.
BRANCH=main
BUG=b:194424288
TEST=This commit shouldn't change anything.
Build, flash EC and motion sensors should work correctly,
detecting tablet mode and orientation changes.
Change-Id: Ia2f864854699416abdd188a6bc36e6356e86f6f5
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3129962
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
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>
|