summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: shim: set a placeholder period cell for pwms propertyFabio Baltieri2022-04-251-2/+2
| | | | | | | | | | | | | | | | | | | | Update all pwms entries to set a period property. This is part of an ongoing standardization effort in the PWM subsystem in Zephyr, for the moment just set a "0" placeholder (it's not used by any high level driver), will followup setting it to the target value once we'll have the frequency dt macro available, and then use them in the higher level driver and deprecate the old frequency label properties on a later stage. BRANCH=none BUG=b:230093078 TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Cq-Depend: chromium:3605349, chromium:3605359 Change-Id: I38cc7ab4cbbb8a7e256a913e3c592aa7ffd55000 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3602884 Reviewed-by: Yuval Peress <peress@google.com>
* zephyr: zmake: Add test_args to project configurationJack Rosenthal2022-04-221-0/+4
| | | | | | | | | | | | | | | | | | | | | For tests, provide a mechanism to pass extra arguments on the command line to the test binary. A temporary directory is provided to place temp files. The purpose of doing so can be seen in the modified BUILD.py for the drivers test: the drivers test has been littering a `flash.bin` file in the working directory, and we'd like to stop that if we can. BUG=b:230107609 BRANCH=none TEST=zmake test test-drivers -> no flash.bin litter Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I52e9ed68489eea46b109e0e553bd6cf26c23a64a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3602223 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com> Commit-Queue: Aaron Massey <aaronmassey@google.com>
* zephyr: Add charger docAaron Massey2022-04-151-0/+291
| | | | | | | | | | | | | | Document configuring the charger chip on a Zephyr enabled board. BRANCH=none BUG=b:216366887 TEST=gerrit gitiles view of markdown Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Ie1fcf2824c1d3a6a580427748f49347fbd0159fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3522749 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: zephyr: drop stale PWM descriptionFabio Baltieri2022-04-141-1/+0
| | | | | | | | | | | | | | The CONFIG_PLATFORM_EC_PWM is not used anymore, drop it from the zephyr_pwm doc page. BRANCH=none BUG=b:217741090 TEST=check the doc on gerrit Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I0c272275ae406e832d10412a4c0f15fa7239afbf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578702 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: docs: add AP Power documentationSam Hurst2022-04-132-0/+59
| | | | | | | | | | | | | Document the AP Power Kconfig.ap_power options BUG=b:208437225 TEST=Browse doc in gerrit BRANCH=main Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I5332a20c9125bd78cb14d4245479f6fd6ad41c81 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3451007 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: docs: add USBA documentationSam Hurst2022-04-133-0/+83
| | | | | | | | | | | | | Document the USBA Kconfig.usba options BUG=b:208437225 TEST=Browse doc in gerrit BRANCH=main Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: If1c791a85c2497584e28de67c2eac6fb9368b92b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3451006 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: docs: Update the doc templateKeith Short2022-04-121-12/+13
| | | | | | | | | | | | | | | Update the document template to reflect current best practices. Specifically, move all related Kconfigs into a separate file and link to the file only BUG=b:207403708 BRANCH=none TEST=View preview in gitiles Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I19e9b78124843e0c9828369464dc37889aeb5114 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3583046 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: Document chargestate AP cmd in battery docAaron Massey2022-04-121-1/+18
| | | | | | | | | | | | | Document the chargestate ectool command in the zephyr battery doc. BRANCH=none BUG=b:216366887 TEST=gitiles gerrit view Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I1bfb93ff9f04f6fbd3ddf902d52c651fbe30615b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3579621 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* docs: ec_terms: Reference the ectoolAaron Massey2022-04-121-4/+10
| | | | | | | | | | | | | | Add a quick description and reference to the ectool in the ec_terms.md to make the ectool documentation more discoverabe. BRANCH=none BUG=None TEST=gitiles gerrit view Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I5a7aa99884fd81e549539c76e61d23cd0f6448c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3577991 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* zephyr: Document pwr_avg cmd in batteries docAaron Massey2022-04-121-0/+70
| | | | | | | | | | | | | | | | The pwr_avg EC console command can be invoked to query battery charging rates. Document this functionality in the Zephyr battery doc. BRANCH=none BUG=b:216366887 TEST=gerrit view Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I139aa8d83dcdc0d80067b95fafbca77c48e3fdaa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3576667 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: docs: Add references to the Zephyr devicetree introKeith Short2022-04-114-9/+15
| | | | | | | | | | | | | | | Add references to the Zephyr devicetree introduction documents upstream. Also add direct references to the "node label" definition, as this is a common source of confusion for new users. BUG=b:207403708 BRANCH=none TEST=View docs with gitiles Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I6fad8781cfe51a0d7741cd7eb2ba13b5e744661d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3579985 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: convert PLATFORM_EC_I2C to a helper symbolKeith Short2022-04-081-1/+2
| | | | | | | | | | | | | | Convert CONFIG_PLATFORM_EC_I2C to a helper symbol that is automatically enabled if the Zephyr CONFIG_I2C option is enabled. BUG=b:217926701 BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I5aab26b0dea609a706b07ed752503f7432848136 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3575084 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: Move all I2C configs into a separate fileKeith Short2022-04-081-23/+7
| | | | | | | | | | | | | Move the I2C related Kconfigs to a separate file. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ic5518c7209217e88677a8818d3793ddc58c2d41f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3575081 Reviewed-by: Sam Hurst <shurst@google.com>
* zephyr: update documentation after removing prompt for mkbp masksMichał Barnaś2022-03-291-12/+3
| | | | | | | | | | | | | | Remove the sentences that reference the mkbp wake-up masks Kconfigs and write that the Kconfigs are automatically selected. BRANCH=main BUG=b:222689734 TEST=read the doc Change-Id: I93424494f4e25c7ea22f9208106440b92c1568a6 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3550277 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: Document USB-C alt modesAbe Levkoy2022-03-252-0/+98
| | | | | | | | | | | | | | Document the implementation of the USB PD DPM, particularly DP and TBT3 alt modes and USB4. BUG=b:190399774 TEST=View rendered Markdown in Gitiles BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I19f34db2f34d2bb0f93086cdba8e53e8b316c9c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3543483 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: CBI documentationDenis Brockus2022-03-245-43/+292
| | | | | | | | | | | | | | BRANCH=none BUG=b:222105950, b:226143500 TEST=none Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ibf7f8be8aae82fa776f6165ef9d82a6aa3ab76cc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500076 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: doc: Remove battery doc's "aforementioned"Aaron Massey2022-03-221-2/+1
| | | | | | | | | | | | | | | | | | The Zephyr battery doc states "The `vendor` and `part` references must match an existing battery defined in [battery bindings directory]." before a battery bindings directory is mentioned. This would likely cause an unfamiliar reader confusion. Remove the "aforementioned" part of the sentence. BRANCH=none BUG=None TEST=gerrit view Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I9ed2a092de239b9c67a1bababcf2b7a4499b406e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3541330 Reviewed-by: Tristan Honscheid <honscheid@google.com>
* zephyr: extract information about MKBP from hostcmd docMichał Barnaś2022-03-222-83/+111
| | | | | | | | | | | | | | | This commit extracts the information about MKBP protocol and its configuration from AP/EC communication documentation to separate file. BRANCH=main BUG=b:208438167 TEST=generate preview Change-Id: I2c579472170de73b944183793b324ee72f0631d8 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500405 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: add documentation about host commandsMichał Barnaś2022-03-224-1/+314
| | | | | | | | | | | | | | | This commit adds information about available Kconfigs and device tree definitions used to enable and configure host interface support. BRANCH=main BUG=b:208438167 TEST=generate preview Change-Id: I049dbd5efd5edc32492b191b8f1cc7911ad2b2bd Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3401640 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: remove Volteer boardDawid Niedzwiecki2022-03-211-12/+16
| | | | | | | | | | | | | | | | Volteer was the first reference board with EC based on Zephyr. At this stage of migrating to Zephyr, the support for Volteer can be dropped, so remove volteer project. BUG=b:218888909 TEST=zmake testall BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ie78cc69e478267f45446b9d11fc2f433136ebfe0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3521781 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
* zephyr: zmake: Add a syntax to make simple variants of a buildJack Rosenthal2022-03-171-1/+19
| | | | | | | | | | | | | | Add a BUILD.py syntax to copy another project and make simple modifications. BUG=b:224998797 BRANCH=none TEST=provided unit test passes Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I87f0fe6b0e02c3ac34bec6de09d38e620fc293e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3530957 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: volteer: delete use of remote-portKeith Short2022-03-111-1/+0
| | | | | | | | | | | | | | | The "remote-port" property is only needed on ARM platforms to directly check the battery and fuel-gauge. The AP firmware and kernel uses the EC_CMD_LOCATE_CHIP to determine the I2C bus for EEPROM and TCPC chips. BUG=none BRANCH=none TEST=zmake testall Change-Id: Ie955317fe4ad22441c97443221c0041bd3580233 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3518083 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* docs/fingerprint: Document flash error on icetowerAndrea Grandi2022-03-041-0/+10
| | | | | | | | | | | | | | | | Flashing Icetower with flash_ec and servo micro does not work at the moment - see timeout error in b/177331210. Document the known issue and provide link to workaround using J-Link. BRANCH=none BUG=b:177331210 TEST=view in gitiles Signed-off-by: Andrea Grandi <agrandi@google.com> Change-Id: I1d4895f1723b55ca07a8717f984afc696865e8d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3502650 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* docs/fingerprint: Add links to Linux kernel driverTom Hughes2022-03-031-0/+11
| | | | | | | | | | | | | BRANCH=none BUG=b:217390997 TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: If0a1d6a48cf039491b88bb2d1d7ccd22a94e7fbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3498718 Reviewed-by: Andrea Grandi <agrandi@google.com> Reviewed-by: Bobby Casey <bobbycasey@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* docs/fingerprint: Add sudo to J-Link commandAndrea Grandi2022-03-031-1/+1
| | | | | | | | | | | | | | | The command JLinkRemoteServerCLExe fails with error "Cannot connect to J-Link" if executed without sudo. BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Andrea Grandi <agrandi@google.com> Change-Id: Ie1434180d60efc41fa68b37102a019732b288d68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3501016 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Bobby Casey <bobbycasey@google.com>
* docs: zephyr: fix kconfig linksFabio Baltieri2022-03-034-5/+5
| | | | | | | | | | | | | | | Kconfig generated documentation links changed with https://github.com/zephyrproject-rtos/zephyr/pull/41753, this fixes all the upstream links in the existing documentation. BRANCH=none BUG=none TEST=check link on gerrit Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ib619924837ace0a482d7977fb2676456e2fc6858 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500306 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* docs: Remove local build instructionsAndrea Grandi2022-03-011-82/+3
| | | | | | | | | | | | | | | | | | EC build outside of ChromiumOS chroot is not tested and guaranteed to be working. While still possible in theory, this is not the recommended way to build the EC image and therefore it's removed from the "Getting Started" page. BRANCH=none BUG=b:219082979 TEST=View of Markdown preview in VSCode Signed-off-by: Andrea Grandi <agrandi@google.com> Change-Id: Ib837f10515682471d3e622bbaefbb8bf7366bf96 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3491073 Reviewed-by: Bobby Casey <bobbycasey@google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* docs: zephyr: add an initial Zephyr PWM doc pageFabio Baltieri2022-02-262-0/+134
| | | | | | | | | | | | | | Add documentation for configuring PWM on Zephyr. BRANCH=none BUG=b:215168520 TEST=browse on gerrit Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I11e5ea336e1fe1535a35c4a890cb9eb224e213a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3416229 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: split legacy and shimmed codes into librariesKeith Short2022-02-251-3/+3
| | | | | | | | | | | | | | | Split the legacy EC code and shimmed code into separate libraries. This allows for declaring different compiler definitions to the legacy and shim code. BUG=b:218856245 BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ice25c21409d33594e7d465092ad5066be7336dbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489101 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* docs: Update "Getting Started Quickly"Andrea Grandi2022-02-251-14/+25
| | | | | | | | | | | | | | | | | | | | | | Instructions in this document have become out of date. Align the content with the "Chromium OS Developer Guide": - Add missing package to fix local build error with libusb header - Use ~/chromiumos folder for chroot to be consistent with dev guide - Set missing env variable $BOARD - Replace deprecated script ./build_pacakges - Remove minilayout and use stable branch to make the build more reliable BRANCH=none BUG=b:219082979 TEST=View of Markdown preview in VSCode Signed-off-by: Andrea Grandi <agrandi@google.com> Change-Id: I3fdac3b346098575a0957394e80052626ecbb551 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3466428 Reviewed-by: Bobby Casey <bobbycasey@google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* docs/fingerprint: Add image of Icetower v0.1 boardTom Hughes2022-02-253-5/+14
| | | | | | | | | | | | | | | The development board for dartmonkey firmware is Icetower, which replaces the Dragontalon board. BRANCH=none BUG=b:168656024 TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ic47c18eddc7fd842e211630001fa00c0f82d4ac3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3484838 Reviewed-by: Andrea Grandi <agrandi@google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com>
* zephyr: cbi: drop the driver modelDawid Niedzwiecki2022-02-241-4/+2
| | | | | | | | | | | | | | | | | | | Start using CBI SSFC and CBI FW_CONFIG via the shim layer, drop the driver model for CBI. The CBI is used only by EC via EEPROM operations in cros code. The change simplifies the initialization of CBI and saves memory(104B of FLASH and 8B of SRAM for Herobrine). BUG=b:216802531 BRANCH=main TEST=Verify the CBI SSFC and FW_CONFIG operation in Zephyr Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I1dc14806c29bb67578445e7b3029c6b168a0d9e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3471596 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
* docs: zephyr: BatteriesAaron Massey2022-02-242-2/+187
| | | | | | | | | | | | | | Add Zephyr doc for setting up batteries on a board. BRANCH=none BUG=b:208436216 TEST=Browse in Gerrit TEST=Reviewers Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Ib457dbef808bcbb9ea9a6d2fa8297df282423c2f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3379463 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs/fingerprint: Remove servo v2 referencesTom Hughes2022-02-2310-82/+9
| | | | | | | | | | | | | | | | The fingerprint team no longer uses servo v2 for development, so remove all references to avoid confusion. BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I7c1d349afab14b2390a576bc2b4f9ed9241a955c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3481577 Reviewed-by: Andrea Grandi <agrandi@google.com> Reviewed-by: Bobby Casey <bobbycasey@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: docs: Reorganize the build stepsJack Rosenthal2022-02-232-104/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I went reading this document from the perspective of a potential ODM partner looking to build Zephyr and noticed it has a bunch of issues: - It seems that we recommend using the ebuild as the primary way of building as it was at the top of this document. This ebuild exists only to integrate with the greater portage build system, and it's unlikely that folks will want to run the ebuild manually in most cases. I kept this in the doc, but moved it down lower so it didn't seem like the recommended thing. `zmake build` is now the first command people will see when they want to know how to build the EC. - The out-of-chroot steps are mixed in with the regular build steps. I moved these out to another doc, recommending the standard Chromium OS developer guide for chroot setup. - The `volteer` Zephyr project is deprecated. Updated references to `skyrim` so there's a working build target for folks to try. BUG=none BRANCH=none TEST=view markdown in gitiles Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ib93d37f8bdd6fe3e33667ce60d15dffc8949bd68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3484837 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zmake: Implement zmake test v2Jeremy Bettis2022-02-233-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described in go/zmake-cli-v2 Change zmake test to call zmake configure --test, unless the --no-rebuild flag is used, in which case just run tests on existing binaries. It is an error to use --no-rebuild, if you never did a zmake build. BRANCH=None BUG=b:217788621 TEST=make clobber zmake -j8 build herobrine test-drivers zmake -j8 test --no-rebuild herobrine zmake -j8 test --no-rebuild herobrine test-drivers zmake -j8 test --no-rebuild herobrine test-drivers test-tasks zmake -j8 build test-tasks zmake -j8 test --no-rebuild herobrine test-drivers test-tasks make clobber zmake -j8 build --coverage herobrine test-drivers zmake -j8 test --coverage --no-rebuild herobrine zmake -j8 test --coverage --no-rebuild herobrine test-drivers zmake -j8 test --coverage --no-rebuild herobrine test-drivers test-tasks zmake -j8 build --coverage test-tasks zmake -j8 test --coverage --no-rebuild herobrine test-drivers test-tasks zmake -j8 test --coverage herobrine brya zmake -j8 test --coverage --no-rebuild herobrine brya zmake -j8 testall zmake -j8 test --all zmake -j8 test --all --no-rebuild zmake -j8 test --host-tests-only zmake -j8 test --host-tests-only --no-rebuild zmake -j8 test --host-tests-only --coverage zmake -j8 test --host-tests-only --coverage Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I90f23cd0061d97e42359e1d49f2331b71554e3a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3472683 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
* zmake: Implement zmake build v2Jeremy Bettis2022-02-232-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As described in go/zmake-cli-v2 Change zmake build to call zmake configure --build. Updated docs to stop telling people to run both configure and build as well as some other small documentation mistakes. BRANCH=None BUG=b:217788621 TEST=zmake -j8 build herobrine_npcx9 zmake -j8 build test-drivers zmake -j8 build herobrine_npcx9 test-drivers zmake -j8 build --all zmake -j8 build --coverage herobrine_npcx9 zmake -j8 build --coverage test-drivers zmake -j8 build --coverage herobrine_npcx9 test-drivers zmake -j8 build --all --coverage zmake test build/zephyr/test-drivers/ zmake test --coverage build/zephyr/test-drivers/ zmake -j8 configure --build herobrine_npcx9 zmake -j8 configure --build test-drivers zmake -j8 configure --build herobrine_npcx9 test-drivers zmake -j8 configure --build --all zmake -j8 configure --build --coverage herobrine_npcx9 zmake -j8 configure --build --coverage test-drivers zmake -j8 configure --build --coverage herobrine_npcx9 test-drivers zmake -j8 configure --build --all --coverage zmake -j8 configure --test herobrine_npcx9 zmake -j8 configure --test test-drivers zmake -j8 configure --test herobrine_npcx9 test-drivers zmake -j8 configure --test --all zmake -j8 configure --test --coverage herobrine_npcx9 zmake -j8 configure --test --coverage test-drivers zmake -j8 configure --test --coverage herobrine_npcx9 test-drivers zmake -j8 configure --test --all --coverage Cq-Depend: chromium:3470081 Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: Iee939b92e39f0787e50234040a8b6b248ba6c831 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3462631 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
* zmake: Implement zmake configure for multi-project.Jeremy Bettis2022-02-193-7/+7
| | | | | | | | | | | | | | | | | Change zmake configure to work as described in go/zmake-cli-v2. BRANCH=None BUG=b:217788621 TEST=Various zmake configure cmds. Cq-Include-Trybots: luci.chromeos.cq:cq-orchestrator Cq-Depend: chromium:3462900 Change-Id: I58fa4d8427efff64c5764eac6ba4752a71785127 Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3445105 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: docs: Add introduction sectionKeith Short2022-02-183-1/+124
| | | | | | | | | | | | | | | | Update the legacy README.md to define "legacy EC" vs "Zephyr EC". Add an Zephyr EC introduction section. BUG=b:207403708 BRANCH=none TEST=view docs with gerrit browse Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I966102d901b516e665d3a6034709cdfc120b5d0a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3474634 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* docs: zephyr: Provide example of motionsense DTSYuval Peress2022-02-181-6/+101
| | | | | | | | | | | | | | Add an example of the various devicetree compontents of initializing motionsense. BRANCH=none BUG=b:208437221 TEST=none Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Ie2be39bd378ff8c6ccd868d916cc10a6a410e098 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459249 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: zephyr: Add testing information about motionsenseYuval Peress2022-02-181-1/+26
| | | | | | | | | | | | | | Add some general guidelines for tests that can be run to make sure that motionsense was initialized correctly. BRANCH=none BUG=b:208437221 TEST=none Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I06c0bb77373e149bca8eaee8d08a0581bd04fcab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459248 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: zephyr: Add information about motionsenseYuval Peress2022-02-181-3/+5
| | | | | | | | | | | | | | Include documentation detailing that motionsense requires no board specific code as well as how to configure the motionsense task. BRANCH=none BUG=b:208437221 TEST=none Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I2a408605b734c10e872177f751bae4ad47ca8902 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459943 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: zephyr: Add more information about motionsenseYuval Peress2022-02-181-3/+49
| | | | | | | | | | | | | | Add details about the various devicetree nodes and configuration needed for Zephyr motionsense initialization. BRANCH=none BUG=b:208437221 TEST=none Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Id2b0b7622bfc387119a3977069adf673f6943e68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459942 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs: Set BOARD in quick build instructionsBobby Casey2022-02-151-0/+13
| | | | | | | | | | | | | | | | | | | | Step 3 of the instructions in the "Building" section indicate to run a make command that includes `make BOARD=${BOARD}`. This assumes that ${BOARD} is set properly but the instructions to not specify to do so. The first paragraph does link to documents that cover this but then go on to state that you can safely ignore them. Fix by adding a step to specify the BOARD env var, including a brief description of where to find this value and a safe default. BUG=b:219081299 BRANCH=none TEST=view in gitiles Signed-off-by: Bobby Casey <bobbycasey@google.com> Change-Id: I9b0a7f9b6b64ff2b1bb5844c5fa750514ecf6d1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3460062 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* docs: add link to the Zephyr new board checklistKeith Short2022-02-101-0/+1
| | | | | | | | | | | | | | Add a link to the index for the Zephyr new board checklist. BUG=b:207403708 BRANCH=none TEST=verify link in Gerrit browse Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ib42ef2087f6149c913a176412401e0e0c5458836 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3453162 Reviewed-by: Aaron Massey <aaronmassey@google.com> Commit-Queue: Aaron Massey <aaronmassey@google.com>
* zephyr_gpio: Update docs about GPIOsAndrew McRae2022-02-041-49/+218
| | | | | | | | | | | | | Update the Zephyr GPIO docs BUG=none TEST=none BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I3c2e439cf0224db803c16675e2ec877f1baf7dcf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426246 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs/fingerprint: Fix formatting with mdformatTom Hughes2022-02-042-6/+6
| | | | | | | | | | | BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I4fbbcd73e78bb7caa5855ed33ff3773c425ede55 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3425447 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* docs: zephyr: Add Kconfig details for motionsenseYuval Peress2022-02-033-1/+221
| | | | | | | | | | | | | | Replicate the zephyr_template.md and document the Kconfig values in zephyr/Kconfig.motionsense and zephyr/Kconfig.sensor_devices BRANCH=none BUG=b:208437221 TEST=none Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I72d36687ea07a840456908a4c66db4167f0a4993 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3405646 Reviewed-by: Keith Short <keithshort@chromium.org>
* docs/fingerprint: Update audit report linkTom Hughes2022-02-011-1/+1
| | | | | | | | | | | BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I3cb185e03f6df1e35dccf0923f27cc6e57c6c981 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3425446 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: fw config doc fixesAndrew McRae2022-01-251-1/+1
| | | | | | | | | | | | | Fixed filename and added missing back quote. BUG=none TEST=none BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I3b8cc7355bb82d16533e1781266cdea0005604e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3413591 Reviewed-by: Wai-Hong Tam <waihong@google.com>