summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* rex: Add support for eSPIScott Collyer2022-08-033-0/+29
| | | | | | | | | | | | | | | | This support adds config options requires to support eSPI as well as the eSPI node to the device tree. BRANCH=none BUG=b:240434243 TEST=zmake build rex Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: Id74183d2decacef325632c85aec849c6e0ec5522 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3798470 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* rex: Add power button and lid switch supportScott Collyer2022-08-034-1/+35
| | | | | | | | | | | | | | | | This CL adds config options and GPIO interrupt nodes required to support power button and lid close events. BRANCH=none BUG=b:240434243 TEST=zmake build rex Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I0e7f3599d83b4a8c980ef213ed1ea57544f2638d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3798469 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Commit-Queue: Scott Collyer <scollyer@chromium.org>
* sm5803: Fix failed to read VBUS after resuming from hibernationDevin Lu2022-08-031-4/+4
| | | | | | | | | | | | | | | | | | CL:3750543 turned off GPADCs when LPM. If GPADCs turned off, we cannot get VBUS while charger init. Make sure GPADCs are turned on before read VBUS ADC. BUG=b:240506854 BRANCH=firmware-dedede-13606.B-master TEST=On Drawcia. Check OCPC port is working after resuming from hibernation. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I607eebd0df61ad8bc1db8fbfd6bdea0f9b475abc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3789203 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Tested-by: Devin Lu <devin.lu@quantatw.com> Commit-Queue: Devin Lu <devin.lu@quantatw.com>
* NX20P348x: enable RCP 5V SRC mask functionamber.chen2022-08-034-0/+22
| | | | | | | | | | | | | enable RCP 5V SRC mask function BRANCH=none BUG=b:237468526 TEST=make -j BOARD=taniks Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: I47c7ad99c0ab2141d8e08f5ac385250353ed8227 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779857 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* TCPMv2: Add BIST shared modeDiana Z2022-08-036-3/+126
| | | | | | | | | | | | | | | | | | Systems which have a shared power reserve over ports are required to implement BIST shared test mode. This mode will force us to advertise more current than we can actually support, but it is only for test purposes and the tester should not actually draw past our VIF declared maximum. BRANCH=None BUG=b:237256250 TEST=zmake testall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iacb17e0b3eb14c5b38220c7008aa3d2a8f0607a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3789835 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* TCPM: Unify BIST helpersDiana Z2022-08-031-9/+9
| | | | | | | | | | | | | | | Define the BDO_MODE helpers in terms of the already existing BIST_ descriptions for the BIST_MODE field. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iccc12c136f8824937a15b8445a2c32e26228c175 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3793699 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* tests: Migrate tasks tests to TwisterAaron Massey2022-08-033-1/+17
| | | | | | | | | | | | | | | | | | As part of the migration from zmake test to twister: 1. Add a stub native_posix board overlay to zephyr/tests/tasks. 2. Make zmake explicitly use aforementioned stub overlay. BRANCH=none BUG=b:240343833 TEST=twister -T zephyr/tests/tasks TEST=zmake test test-tasks Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I4ed5655df636b211c7ba1ec82fd64750c6fd59c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805545 Commit-Queue: Tristan Honscheid <honscheid@google.com> Tested-by: Tristan Honscheid <honscheid@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com>
* test: utils: Remove g3_then_transition_to_s5Aaron Massey2022-08-022-38/+5
| | | | | | | | | | | | | | | | | | The g3_then_transition_to_s5 function was misnamed and wasn't intending on doing anything other than getting the CHIPSET to some kind of off, specifically CHIPSET_STATE_ANY_OFF. Remove the g3_then_transition_to_s5 in favor of already prevalent test_set_chipset_to_g3. BRANCH=None BUG=b:236726670 TEST=zmake test-drivers-chargesplash # Only relevant usage Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I63bc7e9f4d6784fecd38002df7f8b039904ea393 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3765456 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* test: utils: Harden chipset state functionsAaron Massey2022-08-021-3/+13
| | | | | | | | | | | | | | | | | | | The various test_set_chipset_to_* functions can have their power state changes overwritten by state changes that are in progress by the chipset_task. In the preamble of test_set_chipset_to_* functions wake the chipset task and do a virtual one second sleep for the power states to stabilize before attempting to force them to a particular state. BRANCH=none BUG=None TEST=twister -T test/drivers Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: If7d0350e1eb118e4c344da087f81f00dd3f848a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3795801 Reviewed-by: Al Semjonovs <asemjonovs@google.com>
* test: EC_CMD_GPIO_GET version 0 host commandAaron Massey2022-08-021-1/+30
| | | | | | | | | | | | | Test happy-path coverage on the EC_CMD_GPIO_GET version 0 host command. BRANCH=none BUG=b:239608056 TEST=zmake test test-drivers Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Ia0be87104e70988107c0310d3d1ac69a96d35b27 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780764 Reviewed-by: Keith Short <keithshort@chromium.org>
* flash_fp_mcu: Add config for ghostJack Rosenthal2022-08-021-0/+5
| | | | | | | | | | | | | | Just the same as brya. BUG=b:241140333 BRANCH=none TEST=run flash_fp_mcu on ghost Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I2a74043a38d2b837cf5e0615024260f00fb1c099 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3806600 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* c2d2: define usart to usb constantsMary Ruthven2022-08-021-12/+14
| | | | | | | | | | | | | | | All of the c2d2 consoles should be the same size. Define constants and use them in the queue definitions. BUG=b:240718978 BRANCH=servo TEST=none Change-Id: I69add9f13567833f8563d813cb63c29094845a44 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805280 Reviewed-by: Ziting Shen <zitingshen@google.com> Commit-Queue: Ziting Shen <zitingshen@google.com>
* c2d2: increase the usart1_to_usb sizeMary Ruthven2022-08-021-1/+1
| | | | | | | | | | | | | | Set the usart1_to_usb size to 1024 to match the other consoles. BUG=b:240718978 BRANCH=servo TEST=none Change-Id: I0b57677365eca98684a883482562d5e9ad2f2ced Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805279 Commit-Queue: Ziting Shen <zitingshen@google.com> Reviewed-by: Ziting Shen <zitingshen@google.com>
* zephyr: test: bc12: Clear AC enabled pin after testTomasz Michalec2022-08-021-9/+7
| | | | | | | | | | | | | | | | Clear AC enabled pin after bc12 test to fix other tests that depends on AC being disabled. BUG=None TEST=zmake -D test test-drivers BRANCH=None Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I236f81a67a2612f51ea00694f3d63c719434483c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3785337 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* servo_micro: increase the usart4_to_usb buf sizeMary Ruthven2022-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | The Cr50 console drops a lot of characters on servo micro. Increase the uart4 buf size to match the EC and AP uart sizes. BUG=b:240718978 BRANCH=servo release branch TEST=basic check run `ccd` a bunch of times. Make sure characters aren't dropped. # full test add chargen to cr50 run firmware_Cr50CCDUartStress through servo micro cr50 console. Change-Id: I0c857310f88886dcffa29712c512c37dbe557f13 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3790822 Reviewed-by: Ziting Shen <zitingshen@google.com> Reviewed-by: Brian Nemec <bnemec@google.com>
* zephyr: test: isl923x: run testsuite before tasksTomasz Michalec2022-08-021-1/+1
| | | | | | | | | | | | | | | | | The isl923x testsuite modify charger state outside of charger_task. This may result in hard to predict side effects. To prevent that, whole testsuite is run before tasks. BUG=None TEST=zmake -D test test-drivers BRANCH=None Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ic5fa7aa66a6b8c5d1b23a6b53b4e6648a09b09d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3785336 Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: test: isl923x: Fix finish i2c writeTomasz Michalec2022-08-021-0/+5
| | | | | | | | | | | | | | | | | Side effects of I2C write messages should be applied only after actual write message. Selecting register before an I2C read message isn't considered as a write message. BUG=None TEST=zmake -D test test-drivers BRANCH=None Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I95871d1b518c7211ff1e56b74598e7ba35358d41 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3785335 Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* pujjo: Config hdmi-en-odl for pujjoRuibin Chang2022-08-025-51/+147
| | | | | | | | | | | | | | | Due to CL:3778918 only config hdmi-en-odl for nereid board v2, config hdmi-en-odl for pujjo as well. BUG=b:240084173 TEST=zmake build pujjo BRANCH=none Signed-off-by: jimmy.wu <jimmy.wu@lcfc.corp-partner.google.com> Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: Iecc66f9644d3bea882248a40de9b081296e9b1ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787954 Reviewed-by: Andrew McRae <amcrae@google.com>
* agah: update ppc ilimit to 5.5AZick Wei2022-08-021-0/+2
| | | | | | | | | | | | | | | agah use maximum 100W USBC adapter, set ppc ilimit to 5.5A, in case OCP event will triggered with default 3.3A setting. BUG=b:215231068 BRANCH=none TEST=check ilimit setting with ec console command:ppc_dump. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I029f939074cee6b224717581be4222b31a241389 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3793283 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
* nissa: fix cannot boot from C1 without batteryScott Chao2022-08-022-2/+2
| | | | | | | | | | | | | | | This change avoid same port be enabled sink twice. BUG=b:229345424 BRANCH=none TEST=make sure C1 can boot with AC only. TEST=Connect battery and AC. Set`chgoverride -1`: charging, `chgoverride -2`: discharging. Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ide3a7ce0443d73afdd9f1901e05298fa3f5b8734 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3802345 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* kuldax: update thermal Fan tableben chen2022-08-022-22/+25
| | | | | | | | | | | | | Update thermal Fan table BUG=b:238260272 BRANCH=cros/main TEST=build BOARD PASS and thermal check is PASS. Change-Id: I03cd8d2ba59e9cd2a15aa9cffb402300f3f20537 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787656 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* nissa: pujjo: add config for temp sensor 3Andrew McRae2022-08-012-1/+19
| | | | | | | | | | | | | Add configuration for temp sensor 3 BUG=b:240234369 TEST=zmake build pujjo BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I6381b6acd55fe3ddca3377c62055d6d71f8781d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787980 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* nissa: xivu: add config for temp sensor 3Andrew McRae2022-08-012-1/+19
| | | | | | | | | | | | | Add configuration for temp sensor 3 BUG=b:240234369 TEST=zmake build xivu BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ief5dacf303e0fbde0067ff78253c6edd7130211d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787981 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* nissa: craask: Add config for temp sensor 3Andrew McRae2022-08-012-1/+19
| | | | | | | | | | | | | Add configuration for temp sensor 3 BUG=b:240234369 TEST=zmake build craask BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I9246b863308d3c56badb02d4b94b578a530909cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787979 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: Delete CONFIG_PLATFORM_EC_MPUKeith Short2022-08-018-24/+12
| | | | | | | | | | | | | | CONFIG_PLATFORM_EC_MPU is redundant with the Zephyr Kconfig option, CONFIG_MPU. Use the Zephyr option directly. BUG=none BRANCH=none TEST=zmake testall --static; compare binaries Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Iff92c7e9fe3a003366d153e618d2450b367fd169 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791660 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: test: Migrate to upstream emulator APIAaron Massey2022-08-0162-1760/+2398
| | | | | | | | | | | | | | | | | Migrate the existing emulators and tests to use the new upstream emulator API. Majority of these changes was the removal of struct i2c_emul usages in favor of direct usages of struct emul. BRANCH=none BUG=b:240291860 TEST=zmake test -a Signed-off-by: Aaron Massey <aaronmassey@google.com> Cq-Depend: chromium:3776856 Change-Id: I09c509ffc34ac3b28fbd4dece0acebcc36cc0932 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3781964 Reviewed-by: Yuval Peress <peress@google.com> Tested-by: Yuval Peress <peress@google.com>
* zephyr: Delete CONFIG_PLATFORM_EC_ADCKeith Short2022-08-0120-49/+43
| | | | | | | | | | | | | | | | | | | CONFIG_PLATFORM_EC_ADC is redundant with the Zephyr Kconfig option, CONFIG_ADC. Use the Zephyr option directly. Note - projects based on the "minimal" config do not compare. The minimal config disabled CONFIG_ADC, but the CONFIG_PLATFORM_EC_ADC_CMD was still enabled. With this CL, CONFIG_PLATFORM_EC_ADC_CMD now depends on CONFIG_ADC. BUG=none BRANCH=none TEST=zmake testall --static; compare binaries Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I129a3f490abd5c8234bc06ed6f86f2d7ff8a13b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791659 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: Replace full paths in assert outputKeith Short2022-08-011-0/+13
| | | | | | | | | | | | | | | | | Use the compiler option "-fmacro-prefix-map" to replace the full filenames generated by the __file__ preprocessor macro with a hard-coded string. This generates a more deterministic build when asserts are enabled. BUG=none BRANCH=none TEST=zmake build npcx7. This target enables CONFIG_ASSERT. Confirm that the filepaths in the output binary use the "EC_BASE" prefix. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I00347df316f888043e535778370647d7638deee9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791658 Reviewed-by: Al Semjonovs <asemjonovs@google.com>
* ghost: Disable CONFIG_BRINGUPCaveh Jalali2022-08-011-5/+0
| | | | | | | | | | | | | | | The board is up 'n running. CONFIG_BRINGUP is not needed any more. BRANCH=none BUG=b:230813416 TEST=boots on ghost Change-Id: I1d3c88be2a783f00f05d226bfb3d9d5019b0a915 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3797998 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* joxer: Configure top row keysWill Tsai2022-08-011-8/+11
| | | | | | | | | | | | | | | | T1:TK_BACK, T2:TK_REFRESH, T3:TK_FULLSCREEN, T4:TK_OVERVIEW, T5:TK_SNAPSHOT, T6:TK_BRIGHTNESS_DOWN, T7:TK_BRIGHTNESS_UP, T8:TK_KBD_BKLIGHT_TOGGLE, T9:TK_PLAY_PAUSE, T10:TK_MICMUTE, T11:TK_VOL_MUTE, T12:TK_VOL_DOWN, T13:TK_VOL_UP BUG=b:240635192 BRANCH=none TEST=zmake build joxer Signed-off-by: Will Tsai <will_tsai@wistron.corp-partner.google.com> Change-Id: I0f80630883ef34c7e5f4587188f2613252372ddd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3792709 Reviewed-by: Andrew McRae <amcrae@google.com>
* bmi3xx: loop querying the written calibrated valueEric Yilun Lin2022-07-311-37/+23
| | | | | | | | | | | | | | | | | | | | | | The critical path of writing the calibration value to the delay for writing calibrated data will be added up to 240ms, and this will exceed the EC/AP SPI communication timeout 200ms. This CL loops the querying the result for an early return. BUG=b:237953471 TEST=echo -n "0" \ > /sys/bus/iio/devices/iio\:device3/in_anglvel_x_calibbias and doesn't complain the timeout. BRANCH=none Change-Id: Ic14e54c53d8bd5c0d83bd1f3eac20a17c98a1bdc Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750539 Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Huanhuan Liu <huanhuanl@chromium.org>
* rgbkbd: Update RGBKBD type to 4-zones-4-LEDsParth Malkan2022-07-302-3/+3
| | | | | | | | | | | | | | | | RGBKBD type variable is set to 4-zones-15-LEDs, update it to the correct value of 4-zones-4-LEDs. This is because Mithrax only has four addressable LED IDs (4 zones) even though it has 15 physical LEDs. BUG=b:239653506 BRANCH=none TEST=make BOARD=mithrax -j, ectool rgbkbd getconfig Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3794616, chromium:3795088 Change-Id: I2b76166377981dce7759ab79915efe17b5f67804 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3794617 Reviewed-by: YH Lin <yueherngl@chromium.org>
* mithrax: Update RGBKBD type to 4-zones-4-LEDsParth Malkan2022-07-301-1/+1
| | | | | | | | | | | | | | | | RGBKBD type variable is set to 4-zones-15-LEDs, update it to the correct value of 4-zones-4-LEDs. This is because it only has four addressable LED IDs (4 zones) even though it has 15 physical LEDs. BUG=b:239653506 BRANCH=none TEST=make BOARD=mithrax -j Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3794617, chromium:3795088 Change-Id: I5d3572c48869594fe5e5744dedc6938905d4ecd4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3794616 Reviewed-by: YH Lin <yueherngl@chromium.org>
* nissa: Default the initial USB PD debug level to 0Andrew McRae2022-07-301-0/+3
| | | | | | | | | | | | | | Set the initial default of the USB PD debug level to 0 to reduce the impact of logging on performance. BUG=b:233963296 TEST=zmake build nivviks; flash & run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Idfca708390b6b514884a434459a58feb1669678e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791285 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: test: Migrate system test to TwisterTomasz Michalec2022-07-293-1/+9
| | | | | | | | | | | | | | | | | | | | Add testcase.yaml for Twister. Move overaly to default location and update BUILD.py. Add naitve_posix.dts include to the DTS overlay BRANCH=None BUG=b:240343510 TEST=./twister -T zephyr/test/system TEST=zmake -D test test-system Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I307c10b684a85264f7766e00d90712e2cf5219e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3790850 Tested-by: Yuval Peress <peress@google.com> Commit-Queue: Yuval Peress <peress@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com> Reviewed-by: Yuval Peress <peress@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com> Tested-by: Tristan Honscheid <honscheid@google.com>
* zephyr: Change final output binary to ec.binJeremy Bettis2022-07-296-11/+9
| | | | | | | | | | | | | | | | | | For backwards compatibility set the final output binary to ec.bin instead of zephyr.bin. Remove some references to zephr.bin. BRANCH=None BUG=b:239887568 TEST=zmake build -a ; ls build/zephyr/*/output Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I9840699505ef97e338b5552de3237f5f6741c8e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3788136 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: corsola: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: Iabbf1b46bf8840b5fdd0c1a8178d5620b66a35bf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783354 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Bob Moragues <moragues@chromium.org> Tested-by: Bob Moragues <moragues@chromium.org>
* zephyr: LED: yaml files cleanupParth Malkan2022-07-294-128/+161
| | | | | | | | | | | | | | | | | | | | | | Rename cros-ec,led-colors.yaml to cros-ec,led-policy.yaml to avoid name conflict with child node of the same name and to reflect the purpose of the nodes. Also, update description of properties. BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685751, chromium:3685752 Cq-Depend: chromium:3685753, chromium:3783354 Cq-Depend: chromium:3783355, chromium:3783356 Cq-Depend: chromium:3783357, chromium:3783185 Cq-Depend: chromium:3783183 Change-Id: I10567f48da3978ead99150bf23853d3a376a14ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685750 Tested-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: tentacruel: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I1b79f2bb2f2637f6a74a985f65006ebc72e71015 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783355 Tested-by: Bob Moragues <moragues@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Bob Moragues <moragues@chromium.org>
* zephyr: xivu: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I7588a9ea75fe30b2aa4519710720e74fd685d153 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783183 Commit-Queue: Bob Moragues <moragues@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Bob Moragues <moragues@chromium.org>
* zephyr: herobrine: Update compatible fieldParth Malkan2022-07-292-2/+2
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I838ab6d08747c44c5105d11fe3f904385a930f6b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685751 Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org>
* zephyr: hoglin: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I2fd9aaa2ff1eae3c9abf243dd2c59e03c54d7806 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783357 Reviewed-by: Wai-Hong Tam <waihong@google.com> Tested-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org>
* zephyr: evoker: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I731533bd12040dba3a57d8f83d5682e2939cac08 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783356 Commit-Queue: Bob Moragues <moragues@chromium.org> Tested-by: Bob Moragues <moragues@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: skyrim: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: Id344349de088f4a3afe75e4927901ceccdf1d714 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685752 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org> Tested-by: Bob Moragues <moragues@chromium.org>
* zephyr: led-driver-test: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: Ia836f34c149d639e1ab37be1da3e27067d234aad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3783185 Tested-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: lazor: Update compatible fieldParth Malkan2022-07-291-1/+1
| | | | | | | | | | | | | | | | | cros-ec,led-colors.yaml changed to cros-ec,led-policy.yaml, update compatible BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685750 Change-Id: I2cb55c83973788395ee352d9d454e948b8f3ec93 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685753 Tested-by: Bob Moragues <moragues@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org>
* cq: Upload coverage html report as dir, not tarJeremy Bettis2022-07-291-4/+3
| | | | | | | | | | | | | | | | | | Instead of uploading a coverage html tar file, upload a directory. This should make the report more viewable. BRANCH=None BUG=b:231639771 TEST=Check results in CQ dry-run Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I7ec57e6e2ed705aa8e1404fd53b9c57a260353c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3790240 Commit-Queue: Al Semjonovs <asemjonovs@google.com> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Al Semjonovs <asemjonovs@google.com>
* usbc-pd: Allow setting an initial debug levelAndrew McRae2022-07-295-0/+22
| | | | | | | | | | | | | | | Allow setting an initial (default) debug level without disabling the higher debug levels or other debug info such as state names etc. BUG=b:240541974 TEST=zmake build nivviks; flash & run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I4a9fc49c4a6bab0115ce7a54cda0d20d7a351dd7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791284 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Update header templates/examplesAlex Klein2022-07-291-1/+1
| | | | | | | | | | | | | | | | ChromiumOS instead of Chromium OS and drop "All rights reserved.". BRANCH=None BUG=b:230609017 TEST=None Signed-off-by: Alex Klein <saklein@google.com> Change-Id: I6a28e041909f484298f499c9b1730ea7e6cccd6a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791657 Auto-Submit: Alex Klein <saklein@chromium.org> Reviewed-by: Ram Chandrasekar <rchandrasekar@google.com> Commit-Queue: Ram Chandrasekar <rchandrasekar@google.com> Tested-by: Alex Klein <saklein@chromium.org>
* zephyr: Kconfig: use devicetree Kconfig symbolsFabio Baltieri2022-07-2910-30/+20
| | | | | | | | | | | | | | | | Replace all instances of $(dt_compat_enabled, ...) with the equivalent auto-generated Kconfig symbols. BRANCH=none BUG=none TEST=zmake testall TEST=zmake build brya and diff the .config Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:3776850 Change-Id: I3a86a934182d3277aab7e5a545a4ca2d5cfedfb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779894 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>