| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|