| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit af25602b15b22b9ef5821dcba9934311f2157c48.
Reason for revert: broken build due to ec-utils.
Original change's description:
> Merge remote-tracking branch cros/main into factory-brya-14517.B-main
>
> Generated by: util/update_release_branch.py --baseboard brya --relevant_paths_file
> baseboard/brya/relevant-paths.txt factory-brya-14517.B-main
>
> Relevant changes:
>
> git log --oneline 54462f034b..aa40b859b3 -- baseboard/brya board/agah
> board/anahera board/banshee board/brya board/crota board/felwinter
> board/gimble board/kano board/mithrax board/osiris board/primus
> board/redrix board/taeko board/taniks board/vell board/volmar
> driver/bc12/pi3usb9201_public.* driver/charger/bq25710.*
> driver/ppc/nx20p348x.* driver/ppc/syv682x_public.*
> driver/retimer/bb_retimer_public.* driver/tcpm/nct38xx.*
> driver/tcpm/ps8xxx_public.* driver/tcpm/tcpci.* include/power/alderlake*
> include/intel_x86.h power/alderlake* power/intel_x86.c
> util/getversion.sh
>
> e6da633c38 driver: Sort header files
> 234a87ae2d tcpci: Add FRS enable to driver structure
> a56be59ccd tcpm_header: add test for tcpm_dump_registers
> 57b3256963 Rename CONFIG_CHARGER_INPUT_CURRENT to _CHARGER_DEFAULT_CURRENT_LIMIT
> e420c8ff9a marasov: Modify TypeC and TypeA configuration.
> 43b53e0045 Add default implementation of board_set_charge_limit
> b75dc90677 Add CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMIT
> f1b563c350 baseboard: Sort header files
> 7d01b1e58d driver/retimer/ps8818.h: Add I2C ADDR FLAGS 0x30, 0x58, 0x70
> ec31407993 Add CONFIG_CHARGER_INPUT_CURRENT_DERATE_PCT
> 8f89f69a5b crota: disable lid angle sensor for clamshell
>
> BRANCH=None
> BUG=b:259002141 b:255184961 b:247100970 b:259354679 b:260630630
> BUG=b:163093572 b:254328661
> TEST=`emerge-brya chromeos-ec`
>
> Force-Relevant-Builds: all
> Change-Id: Ia85a701fbf6b8e67ec214b9e25e0e55e980a6f47
> Signed-off-by: YH Lin <yueherngl@google.com>
Bug: b:259002141 b:255184961 b:247100970 b:259354679 b:260630630
Bug: b:163093572 b:254328661
Change-Id: I48d5aa4cc67a69ee1f6ac9255ac3087d34da4c72
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4077248
Tested-by: YH Lin <yueherngl@chromium.org>
Commit-Queue: YH Lin <yueherngl@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Auto-Submit: YH Lin <yueherngl@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Zephyr uses a -emul suffix on all emulation bindings. Rename some of the
EC emul bindings so that they are consistent with upstream and the other
ones we already have.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I666b74bb243da10a79dd1d0da56028c2b142d360
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4047463
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename the compatible string for the PI3USB9201 emulator to match the
real driver. Also move all bc12 setup into the devicetree for tests.
BUG=b:218331557
BRANCH=none
TEST=twister
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Iaf15fadf20b070033a474d395ae330b4f84e4f18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4023768
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename the compatible string for the BB retimer emulator to match the
real driver. Also removed unneeded devicetree properties from the
emulator devicetree node.
BUG=b:239457738
BRANCH=none
TEST=twister
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I312129f5ffab9ba39394a3a2655d7ce3def5f9f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4023765
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The RT9490 emulator was missing the binding file what caused the
DT_HAS_ macro not being defined in the .config file.
BUG=b:251812799
BRANCH=main
TEST=build fw and check that macro is defined properly
Change-Id: I1c1e84bafb57ae9803c70c82e1c34faee0f6218c
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3982639
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implemented tusb1064 usb mux emulator with basic i2c read/write, and
export peek reg functions.
BUG=b:229340646
TEST=none
BRANCH=none
Signed-off-by: lschyi <lschyi@google.com>
Change-Id: Ie91c216a6d1fb9ffc1decbb07c2b082b02bf8cda
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3965888
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Sung-Chi Li <lschyi@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Sung-Chi Li <lschyi@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify the EC_CMD_RTC_GET/SET_VALUE host commands by setting the value
to two different arbitrary values via the SET host command and
subsequently retrieving these values via the GET host command.
Also adds a new test-binary under the drivers tests for shim rtc code.
BRANCH=none
BUG=b:236161110
BUG=b:236160901
TEST=twister --clobber -i -s zephyr/test/drivers/drivers.shim_rtc
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I8b843c15d7f73e6905caccfec5a3ee5046bbfff8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3938407
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add basic ANX7447 TCPC emulator, along with KConfig option, dts binding,
and can be found in the TCPC shim code.
BUG=b:244232583
TEST=none
BRANCH=none
Signed-off-by: lschyi <lschyi@google.com>
Change-Id: Idac771d92de526abf0796015fab6d473dae5502e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905448
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Sung-Chi Li <lschyi@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Tested-by: Sung-Chi Li <lschyi@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Verify the virtual_battery code appropriately responds to a manufacture
info extended smart battery spec command.
BRANCH=none
BUG=b:246652125
TEST=./twister --clobber -i -s zephyr/test/drivers/drivers.default
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: Ibc316a052b26364110b7b8a3712af1ce466cc8f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905884
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The upstream Zephyr PWM API supports passing extra flags to control PWM
polarity and this feature is used in our keyboard backlight PWM driver.
However, our internal PWM mock/emul doesn't support specifying flags in
the device tree. This CL adds support for this.
* Add a "flags" cell to cros,pwm-mock
* Update references in the device tree to pass the default flag of
PWM_POLARITY_NORMAL. Since this only affects the PWM mock, this was
limited in scope to our test code, specifically
`zephyr/test/drivers/boards/native_posix.overlay`
* Update the PWM mock to store the passed flags in its state struct and
add a getter function.
To make use of the updated PWM mock for an upcoming test suite covering
`common/keyboard_backlight.c`, I also:
* Add a keyboard backlight driver to the device tree
* Enable CONFIG_PWM_MOCK for all driver tests, as required by the above
backlight driver.
BRANCH=None
BUG=None
TEST=./twister
LOW_COVERAGE_REASON=Minor upgrade (~6 SLOC) to an emulator
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: I6abb6aba8b7ab4f2185c2ef28868767f95f79af2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893395
Reviewed-by: Keith Short <keithshort@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Code-Coverage: Jeremy Bettis <jbettis@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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Emulate RTC driver
BUG=b:236074639
BRANCH=NONE
TEST=./twister -T zephyr/test
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: Ib1073c0e30c0c39d8e778c228a89cc9b6638c887
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880865
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all devicetree label usage from the i2c_mock emulator.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Iece16f5aa8ff48e280db4487f38b776554556174
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855428
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all devicetree label usage from the sn5s330 emulator.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I9f30cb5ba28b85d1cef1a838327a4ff599e28506
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855427
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all devicetree label usage from the lis2dw12 emulator.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ice425e988f1d39e1eb3293c1ac1e9ff97de174d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855426
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous CLs remove the label property from the ps8xxx and generate
TCPCI emulators. Restore the tcpci.yaml file so the label property is
deprecated.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I9169a13fc9db07a76fe12abba64bac6b56b8a02f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855425
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all devicetree label usage from the isl923x emulator.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ie7bd86eadb0804d8d8321c56a2e1a06390b8d1e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855422
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove all devcietree label references from the ln9310 emulator.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Id56fe974d4f18b32fcd47f9e0a2c4b69412fb827
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855420
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The isl923x emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I69a3622f6f9c5e0b97ad84603305f490172bfa50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852904
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The i2c_mock emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Iae40d695a6ae0e92a448a6a0b123d9cb3f1b1899
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852903
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The lis2dw12 emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I03aaee950bc674036646a8598eaa3baf451bcc97
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852902
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ln9310 emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I0c7596ed1a0f1564be15e30c8f4b59f5127a3563
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852901
Reviewed-by: Tristan Honscheid <honscheid@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The TCPCI emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I3bbc85dc882ae7cd17b178189979f81e3657d521
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852576
Reviewed-by: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The sn5s330 emulator and tests currently require the label property.
Override the deprecated attribute from the base.yaml.
BUG=b:239165779
BRANCH=none
TEST=./twister --clobber
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I48e603607236c4837b10a89e403e1b826c15a4d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852575
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement a mock pwm device for testing pwm_led driver.
This driver supports 1 channel, and an extra get_duty function for
verification.
BUG=b:241064591
TEST=passed the new test in CL:3792590
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ife27e29bd615f37733b3592c9c8b0a6df61defb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3825344
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is empty now, no sense keeping it around.
BRANCH=none
BUG=none
TEST=zmake testall
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I585008317dab45e0df8755f2d1f4a406ffb5aaff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763912
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rework the TCPC emulators architecture. A separate general TCPCI
emualtor is now not needed for a scific chip emulator.
Only one DTS node should be created per the TCPC emulator and
the TCPCI_EMUL_DEFINE macro should be used.
BUG=b:233645785
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I5eba9eeb9bcff5d587f843094e530a13c140cc22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3705480
Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The emulator doesn't do anything yet, but it gets flash.c into the
drivers test and all the tests pass.
BRANCH=None
BUG=b:214256453
TEST=zmake test -a
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I9fc9656796e3ed6ae09824c54c58419888336d4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3502428
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A posix emulator for the cros kb_raw driver. Doesn't really do anything.
BRANCH=None
BUG=b:214256453
TEST=zmake testall
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I8e5f62eadc49987ba800de7e86adbb1044a4663a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3433633
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
Commit-Queue: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid referencing named-gpio with a *gpio property
BUG=b:216402316
TEST=zmake configure --test test/drivers
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Iecd35e771319da9b4b3431277bb46de5e049736e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418800
Reviewed-by: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
int_gpio expects the referred node to be a GPIO
instead of a named-gpio node
BUG=b:216402316
TEST=zmake configure -b herobrine_npcx9
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ib797fd2755922c6f16927d884ce9676d99049486
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418796
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hook up ln9310 emul's GPIO interrupt for integration testing.
BRANCH=none
BUG=b:201437348
TEST=zmake configure --test test-drivers
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I1edfebd316d92f8e0e8b0dbf83e860d42d093b8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352711
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To verify driver interrupt handler, configure sn5s330 emul to assert low
on interrupt pin and add corresponding gpio interrupt dispatch to test.
BRANCH=none
BUG=b:203364783
TEST=zmake configure --test test-drivers
Signed-off-by: Aaron Massey <aaronmassey@google.com>
Change-Id: I458b746d7918df26f5c3f675025b8349e72a51e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3321110
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the current limit is changed in isl923x, also change the reported
battery current.
BRANCH=None
BUG=b:201314530
TEST=integration_usb
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I8ed908b451ba2b998edd4a1891e487e743ea6e4f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3298887
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The cros,isl923x_emul.yaml wasn't being read, because: 1) the cros
prefix was unknown, and 2) it was named with _ instead of -.
BRANCH=None
BUG=b:201314530
TEST=integration_usb
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ibb3e6ce036ac19ccb5903f1bb7947796d8af7e29
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3298886
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set and clear the ALERT_L signal in the SYV682x emulator based on the
state of underlying conditions. Test the driver by just setting the
underlying conditions instead of calling the ISR from within the test.
Define the interrupt signal in the device tree and enable interrupts
from it in the test.
BUG=b:190519131
TEST=zmake configure --test zephyr/test/drivers
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: Idc8b957fe53ce78bd8236e4af6b005636498ada2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3288914
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the SYV682 emulator, only assert FRS status when FRS is enabled via
GPIO. In the test, check that FRS enable and disable updates the GPIO.
BUG=b:190519131
TEST=zmake configure --test zephyr/test/drivers
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I50f640882f7e59a0e609614c400e93c75fe34e0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3271350
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add alert_gpio property to tcpci-emul node in dts.
Set the emulated Alert# gpio when the alert status changes.
BRANCH=None
BUG=b:201314530
TEST=Watched the interrupt fire in gdb.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I190b591cdcb71da58d587faf2a48cdf2d9ef3edb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3269059
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add PS8xxx emulator which is extension of TCPCI emulator. It has its own
DTS node which should be sibling of TCPCI emulator that is used for
tcpci-i2c phandle. PS8xxx register additional "hidden" I2C devices.
BUG=b:184857030
BRANCH=none
TEST=make configure --test zephyr/test/drivers
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ib88e5e78b52ab6a8a48efd165e8e7ac86b6d982f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220595
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a basic test that ensures that the func_set1 register write is
attempted at least one more time on an initial failure.
BRANCH=none
BUG=b:203364783
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: Ib06794de0af29fb44e4cb550c7b1ef3c2667af0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229005
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add TCPCI emulator. It follows TCPCI specification revision 2.0
version 1.2, but allows access to TX and RX buffer registers in
revision 1.0 style if configured to do so.
It can be extended by device specific operations (to implement specific
TCPC device behaviour) and partner operations to emulate scenarios with
different devices connected on other side of TCPC.
BUG=b:184857030
BRANCH=none
TEST=make configure --test zephyr/test/drivers
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I6305c437d820528de24439337211f32a015e83d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3181722
Tested-by: Tomasz Michalec <tmichalec@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Yuval Peress <peress@google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:180112248
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: I4a6561c58c7fab33a66ec8fd4a34da38ace6a45c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3213364
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the skeleton code needed to emulate the isl923x charger.
BRANCH=none
BUG=b:201602829
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: Ic9af555ccd7ff6a0be2e7a0818b5e566816a0c13
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3195202
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a simple mock with no state to test common i2c code.
BRANCH=none
BUG=b:200589041
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I99730361a298708278106deb58890a0ed2c9febf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3171694
Tested-by: Yuval Peress <peress@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BRANCH=none
BUG=b:200046770
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: If425d9760b8db9024478fb9a664ffa71e7c25eb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3168034
Tested-by: Yuval Peress <peress@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Yuval Peress <peress@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an LN9310 emulator. The emulator is mostly a stub right now with
some limited functionality to update the battery cell type and chip
version number.
BRANCH=none
BUG=b:184856083
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I156393f4612bf69e31d4d28d88d74fa4dd1689fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3156846
Commit-Queue: Yuval Peress <peress@google.com>
Tested-by: Yuval Peress <peress@google.com>
Reviewed-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add BB retimer emulator on i2c bus. Emulator properties can be defined
using device tree or runtime emulator API. Emulator checks if RO
registers and reserved bits are accessed correctly. API allows to set
custom read/write i2c messagess handlers to emulate complex behaviour.
BUG=b:184856919
BRANCH=none
TEST=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I4b641a90e6fb55e89aaee388c0ac04ab7bf367ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3110085
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add TCS3400 emulator which is emulated device on i2c bus. Emulator
properties can be defined using device tree or runtime TCS emulator API.
It allows to set custom handlers for write and read messages. Emulator
is able to convert internal values to register values that can be
obtained by driver through i2c interface. Conversion takes current state
set by driver into account (gain and data acquisition time).
BUG=b:184856080
BRANCH=none
TEST=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I16f25de43e047df39f84ce86044736d50c9a49c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3048094
Reviewed-by: Simon Glass <sjg@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add extension to support BMI260 model.
BUG=b:184856157
BRANCH=none
TEST=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Iaffebdb5279001d085fd56868e81318528380380
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2997364
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|