summaryrefslogtreecommitdiff
path: root/zephyr/projects
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: make _BMI and _ICM Kconfigs implicitYuval Peress2022-02-031-1/+0
| | | | | | | | | | | | | | | Removing the prompt text makes these fields implicit and not configurable from a prj.conf file. BRANCH=none BUG=b:208437221 TEST=zmake testall Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I1df5c04eefcc05206d78885ad6cf28556d556248 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3415388 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: brya: do not remove WP GPIODawid Niedzwiecki2022-02-031-1/+0
| | | | | | | | | | | | | | | There is no reason to set the GPIO_WP_L as GPIO_UNIMPLEMENTED at this stage of the project. BUG=b:211779766 TEST=zmake buildall BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ibd5ce553bf5fb2bb817ac05d55318bf65f8e7aec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3431666 Reviewed-by: Andrew McRae <amcrae@google.com> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
* lazor: Use Zephyr APIs for migrated codeAndrew McRae2022-02-0310-69/+302
| | | | | | | | | | | | | Use the zephyr APIs for lazor board-specific code. BUG=b:217460464 TEST=zmake configure -b lazor BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ica1fbccab29d7d2c05ced32815099329735ac42e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3431606 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* lazor: Copy board level code to lazor zephyr projectAndrew McRae2022-02-0310-14/+1004
| | | | | | | | | | | | | | Copy board level code for lazor to lazor zephyr project. Minimal changes to code. BUG=b:217460464 TEST=zmake configure -b lazor BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ic806eecd7ed8ebd0b3dcf022a231cebaf29b7b0d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3431605 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: brya: Enable i2cspeed commandRajesh Kumar2022-02-021-0/+1
| | | | | | | | | | | | | | | | Enable i2cspeed command to get/set i2c speed BUG=b:216756724 BRANCH=none TEST=zmake configure -B ~/tmp/brya/ brya -b i2cspeed command is avialable on EC console Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: I265bf1c48d25e23a4228c69d856625e3f0854f7a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3430313 Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* trogdor: Remove trogdor from Zephyr projectsAndrew McRae2022-02-029-814/+0
| | | | | | | | | | | | | Clean up old unsupported Zephyr projects (trogdor/trogdor) BUG=b:217456306 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Id90a9ab9e57c3c5c4b34dc4c72c80eb04c072f94 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3430643 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: Use GPIO in eeprom WP not named-gpioAndrew McRae2022-02-024-3/+8
| | | | | | | | | | | | | | Use a GPIO reference in the eeprom WP property, not a named-gpio. BUG=b:217287221 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Iae0e24de8d7e93dd7958005e5ce0fef2673d4057 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3428600 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: Remove enum-names that are not used by common codeAndrew McRae2022-02-0213-169/+2
| | | | | | | | | | | | | | | | Clean up the named-gpios enum-names to remove names that are not referenced in common code or shimmed in baseboard code. BUG=b:216466985 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3426250, chromium:3427097 Change-Id: Ifb65c76ef17afec7df1e0b857f666c600d60e6f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3428601 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* herobrine: Migrate GPIO access to use Zephyr APIAndrew McRae2022-02-024-34/+44
| | | | | | | | | | | | | Migrate GPIO access to use Zephyr GPIO API. BUG=b:216466985 TEST=zmake configure -b herobrine_npcx9 BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ifb8591dc282fd367e389d4a0902ea8c001fc82b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426250 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Use DT for ALS_COUNTYuval Peress2022-02-021-1/+0
| | | | | | | | | | | | | | Move the definition of ALS_COUNT to use device tree instead of Kconfig BRANCH=none BUG=b:173507858 TEST=zmake testall Signed-off-by: Yuval Peress <peress@google.com> Change-Id: Id59ec8bc4afc09478265f649ce3bdb723819e48e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3415386 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* Skyrim: Add FRS supportDiana Z2022-02-021-0/+2
| | | | | | | | | | | | | Skyrim and guybrush both support FRS via their TCPC. BRANCH=None BUG=b:195137794,b:208515128 TEST=zmake testall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I0f00ffdd086324e9096516f622fad66b21c1d30b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3425761 Reviewed-by: Keith Short <keithshort@chromium.org>
* corsola: Migrate GPIO access to Zephyr APIAndrew McRae2022-02-0212-61/+103
| | | | | | | | | | | | | | | Migrate the GPIO access to use the Zephyr API. Also consolidate the GPIO naming so that remapping of GPIO names is done through DTS. BUG=b:216466985 TEST=zmake configure -b {krabby,kingler} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I914a1659fb4cc25e513e0aff1c3460855cd9f76d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3427097 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: Fix named-gpios et al to drop #gpio-cellsAndrew McRae2022-02-0119-333/+1
| | | | | | | | | | | | | | | | | | | | | The #gpio-cells property is only required when the referenced node is a GPIO controller. named-gpios is not a GPIO controller, and cannot be used as a GPIO reference. DTS and code can refer to named-gpios directly, and then retrieve the GPIO from the named-gpio gpios property. Also rename irq-gpio to irq-pin so that DTS does not complain about missing #gpio-cells. BUG=b:216402316 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3418800, chromium:3418799, chromium:3423294 Change-Id: Ifdea8662647c092950962d3b6b0f32acda23aa5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3412626 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* jhl8040: Rename *gpios to *pinAndrew McRae2022-02-012-7/+7
| | | | | | | | | | | | | Do not use -gpio to refer to a named-gpio BUG=b:216402316 TEST=zmake configure -b brya BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ia0b58b410dd7ab0228811dc40f9c73fae72720be Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418799 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: Convert wake-pins to use interrupt configAndrew McRae2022-02-0112-39/+52
| | | | | | | | | | | | | | Convert the hibernate wake-pins to use the new interrupt config. BUG=b:214608987,b:216869126 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3423294,chromium:3423295 Change-Id: Iaaf03da88ead8bce7b2b428c265434a5a17b4ab7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3422856 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* nissa: Use aliases for sub-board GPIOsAndrew McRae2022-02-016-75/+87
| | | | | | | | | | | | | Use GPIO aliases for sub-board GPIOs BUG=none TEST=zmake configure -b {nivviks,nereid} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I9816ba1b44f209e10a8f5235498d43e5626d95e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3428599 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* skyrim: Migrate GPIO access to Zephyr APIAndrew McRae2022-01-317-44/+56
| | | | | | | | | | | | | Migrate GPIO access to use the Zephyr GPIO API BUG=b:216466985 TEST=zmake configure -b {skyrim,guybrush} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I50759479c62eac112e77d4e94a292541dff4adce Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426251 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* brya: Migrate GPIO access to Zephyr APIAndrew McRae2022-01-314-12/+21
| | | | | | | | | | | | | First phase of migrating GPIO access to Zephyr API. BUG=b:216466985 TEST=zmake configure -b brya BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I674e93fbe295604aa79eb9a93cf565c1d52567d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426247 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* lazor: Migrate GPIO access to Zephyr APIAndrew McRae2022-01-312-4/+4
| | | | | | | | | | | | | Migrate the GPIO access to use the Zephyr GPIO API. BUG=b:216466985 TEST=zmake configure -b lazor BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I4a7b516977aa2d9ba193b6c1ab48d32134bc4da2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426252 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* herobrine: Include the missing project configWai-Hong Tam2022-01-311-0/+1
| | | | | | | | | | | | | | | | | Need to include the project config prj_herobrine_npcx9.conf to the build. It defines CONFIG_BOARD_HEROBRINE_NPCX9=y. The board specific alternative component code (alt_dev_replacement.c) requires this Kconfig option. BRANCH=None BUG=b:216836197 TEST=Booted the herobrine_npcx9 image. No PPC access error and PD message loop. Change-Id: I73a9987ff49a4dfb346ebe7c994418278817c03b Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3422771 Reviewed-by: Keith Short <keithshort@chromium.org>
* Skyrim: Add backlight enableDiana Z2022-01-312-1/+3
| | | | | | | | | | | | | | Add our active low backlight enable signal. BRANCH=None BUG=b:195137794,b:208515128 TEST=on guybrush, verify backlight reliably turns on during boot Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iede02ecc3703d086354b2d5e31627810958a6b2e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3425760 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* nissa: Consolidate common code into a single file.Andrew McRae2022-01-317-228/+143
| | | | | | | | | | | | | Consolidate common code for nivviks/nereid into a common file BUG=b:217091028 TEST=zmake configure -b {nereid,nivviks} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I87d49f63073a861455f7a868e3ce18d4fc46fc68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426244 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* nissa: Move nivviks specific code to src/nivviksAndrew McRae2022-01-313-2/+2
| | | | | | | | | | | | | Move nivviks specific code to src/nivviks BUG=b:217090502 TEST=zmake configure -b {nivviks,nereid} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I1d8298fb962bb006d7a546d292803bfffa349294 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426243 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* nissa: Nivviks config fixesAndrew McRae2022-01-311-4/+5
| | | | | | | | | | | | | | | | | | Fix some config items: - Use charger TCPC to detect VBUS - Remove redundant SYSINFO config (on by default) - Turn off CONFIG_SOC_POWER_MANAGEMENT_TRACE until chromium:3426238 lands BUG=b:201000681 TEST=zmake configure -b nivviks; flash and run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3426239 Change-Id: I05390aa4a8ba81a0871c9df016e087940f58a41a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3426240 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* nissa: Move sub_usb_a1_vbus to nivviks_overlayAndrew McRae2022-01-313-5/+128
| | | | | | | | | | | | | | | | Should be marked as no-auto-init since it is only used for some sub-boards. Also add nissa.csv as the source of the generated data. BUG=none TEST=zmake configure -b nivviks BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I812019aaee7a386d29883f141839a9da2c34872d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3423616 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: Convert remaining irq-gpio to irq-pinAndrew McRae2022-01-292-2/+2
| | | | | | | | | | | | | | | It appears some new interrupts were added after the conversion was done. BUG=b:216402316 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ifa3c7c97a475c3dac3d42a40e1a91e267b612535 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3423294 Reviewed-by: Piotr Pawliczek <pawliczek@chromium.org> Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org>
* drawcia_riscv: Remove EC_CROS_GPIO_INTERRUPTSAndrew McRae2022-01-281-20/+0
| | | | | | | | | | | | | Remove the empty EC_CROS_GPIO_INTERRUPTS define BUG=b:214608987 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I024c93c02deb5c54e8c97d9dd405d628d7162bbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3422860 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* zephyr: adlrvp: Add initial gpio configurationRajesh Kumar2022-01-281-0/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added gpio configuration generated from gpio.inc, Property 'enum-name' is excluded from this CL, We will keep adding 'enum-name' as and when required in later CL's. Steps to generate named gpios: 1. gcc -o <bin> util/gpios_to_zephyr_dts.c -I board/adlrvpp_npcx/ -I . 2. ./<bin> 3. remove "label= <>;" from genearted gpio's and use in gpio.dts file. / { named-gpios { compatible = "named-gpios"; <use output from step 3> }; }; BUG=none BRANCH=none TEST=none Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: I04246291f8fedeba08a2513e9605bc3538c77fd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421745 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Sam Hurst <shurst@google.com>
* pi3usb9201: User new interrupt handling.Andrew McRae2022-01-284-9/+9
| | | | | | | | | | | | | Use new interrupt handling for pi3usb9201. BUG=b:214608987 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I679e573ecf2215a3538ea2019baf43413962f67d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421906 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: Rename irq-gpio to irq-pinAndrew McRae2022-01-2818-223/+224
| | | | | | | | | | | | | | Avoid the need for #gpio-cells by renaming irq-gpio to irq-pin BUG=b:216402316 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I3c489e7835c487e45ef86b838fab96f55336e061 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419357 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* SPI0: Use Zephyr API for interrupt enabling of SPI0Andrew McRae2022-01-282-2/+0
| | | | | | | | | | | | | Use Zephyr API for SPI0 interrupt enable. BUG=b:214608987 TEST=zmake configure -b krabby BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I2c9d06096b8d4914f57f0e73e40b15ac044c52a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3423612 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: Convert sensor interrupts to new frameworkAndrew McRae2022-01-2812-11/+20
| | | | | | | | | | | | | | Migrate the motion sense interrupt handling to refer to interrupts rather than GPIOs. BUG=b:214608987 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I0d19cd87e2021acae6e167ef3e3c59b7e501a181 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419426 Reviewed-by: Yuval Peress <peress@google.com>
* zephyr: brya: Remove unreachable ACCELGYRO configsCaveh Jalali2022-01-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This removes: CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_SPI CONFIG_PLATFORM_EC_ACCELGYRO_ICM_COMM_SPI since they are only meaningful when PLATFORM_EC_ACCELGYRO_BMI PLATFORM_EC_ACCELGYRO_ICM are enabled. brya does not use these sensors. BRANCH=none BUG=b:211877647,b:216410108 TEST="zmake configure --clobber -B ~/build-brya/ -b brya" runs without warnings Change-Id: I2f0bf6912bbfb6ce43099f7e26158950a60dbc23 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421748 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: remove HOST_EVENT_MASK macroMichał Barnaś2022-01-282-14/+14
| | | | | | | | | | | | | | | | | | | | | | This macro was introduced as workaround to differences in host events definitions between CrOS EC and Zephyr. Since zephyr macros define masks, instead of offsets, it will be easier to define _NONE as 0, instead of BIT(0) and rest of the fields as bit masks. It will remove the differences between host-event-wakeup-mask and event-wakeup-mask definitions in device tree. They use the same compatible string, so there shouldn't be requirement about using macro in only one of the definitions. BUG=none BRANCH=main TEST=Same test as in commit that introduced this macro: Suspend DUT with powerd_dbus_suspend, and make sure the EC command "hostevent set 0x0000000002000000" wakes up the board. Change-Id: Ie582ecd805b1999d09ec71b10cdeff0b5ac1ec82 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3417698 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* nissa/nereid: configure USB-C1 TCPCPeter Marheine2022-01-282-7/+37
| | | | | | | | | | | | | | | It was configured as an EC-internal TCPC, but that was incorrect: that port (if present) is controlled by a PS8745 combination TCPC and redriver on the sub-board. BUG=b:201000844,b:215650649 TEST=zmake build BRANCH=none Change-Id: I0304625cf2ea980fe6e43d18721a0d300f4d9e67 Signed-off-by: Peter Marheine <pmarheine@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3422857 Reviewed-by: Andrew McRae <amcrae@google.com>
* Skyrim: Add i2c port labelsDiana Z2022-01-281-0/+8
| | | | | | | | | | | | | | | Add the i2c port labels so we have nice human-readable options in the command line interface. BRANCH=None BUG=None TEST=on skyrim, scan the i2c ports by name and marvel Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I16ecc83d0e848044cd95ea5fda65914914608832 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421762 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Skyrim: Enable i2c debugsDiana Z2022-01-281-0/+3
| | | | | | | | | | | | | | | | Enable the i2ctrace command while we're in bringup for extra help debugging issues. BRANCH=None BUG=None TEST=on skyrim, enable i2c tracing to the CBI and execute commands to watch the i2c go Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I7a3bf3987ca715b509af80cb016d89901620ea58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421761 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Skyrim: Enable battery cutoffDiana Z2022-01-281-1/+1
| | | | | | | | | | | | | | Our batteries support cutoff i2c commands, and thus enable them. BRANCH=None BUG=b:210896115 TEST=on guybrush, verify cutoff works Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I88bd688375fe7f8b144bed5eaf82ed8afd14f782 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421760 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Skyrim and Guybrush: Suppress unsupported fuel gauge sleep errorDiana Z2022-01-281-1/+3
| | | | | | | | | | | | | | | | | Only print an error if we encountered a problem other than the fuel gauge sleep being unsupported. Not all batteries support this feature, and devs often find it concerning to see a "Fail" message right before hibernating. BRANCH=None BUG=None TEST=on skyrim, hibernate and observe no ominious "fail" print Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ifb9e71068ac984029d0310f8a86eddbd465ace68 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421759 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Skyrim: Enable EFS2Diana Z2022-01-282-2/+1
| | | | | | | | | | | | | | | | We had EFS2 disabled in early development, but the time has come to enable it. BRANCH=None BUG=None TEST=on skyrim, boot and verify we're trying to verify our hash with the GSC Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I6ba28640057f761c52e97b92570083c0128a88a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421758 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* npcx_evb: Migrate interrupts to new frameworkAndrew McRae2022-01-288-44/+66
| | | | | | | | | | | | | Migrate interrupts to new configuration framework. BUG=b:215259628,b:215259627 TEST=zmake configure -b {npcx9,npcx7} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I830e7d888c635fb943b1546d6d827de2c876d8b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3413596 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* hereobrine: Duplicate file interrupts.dts includeAndrew McRae2022-01-281-1/+0
| | | | | | | | | | | | | | Remove a duplicate DTS file include BUG=none TEST=zmake configure -b herobrine_npcx9 BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I872c29b311517a544ee1830e08bea60b23d17d50 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3421905 Reviewed-by: Aaron Massey <aaronmassey@google.com> Commit-Queue: Aaron Massey <aaronmassey@google.com>
* Skyrim: Enable keyboard debugDiana Z2022-01-271-0/+1
| | | | | | | | | | | | | Enable keyboard debug for early bringup BRANCH=None BUG=None TEST=on skyrim, load EC and ensure debugs show up Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I01548d37ff1eddeaa2e611576d9af48ba5c5d213 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3415384 Reviewed-by: Keith Short <keithshort@chromium.org>
* pcf85063: Move int-gpio to int-pinAndrew McRae2022-01-271-1/+1
| | | | | | | | | | | | | Change naming so GPIO is not required. BUG=b:216402316 TEST=zmake configure -b herobrine_npcx9 BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ifc8d961dee6b24f3cc77d16149a981759d0dc4ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418797 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* Skryim: Enable keyboard backlight pinDiana Z2022-01-271-0/+1
| | | | | | | | | | | | | | | | Skyrim uses an enable GPIO for the keyboard backlight, so enable that feature. BRANCH=None BUG=b:216496315 TEST=on skyrim, ensure enable GPIO turns off when keyboard backlight is disabled Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I4e8677dedc81463e5d02e96baebc67d172241d7a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418958 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* nereid: set sys_rst_odl to high levelScott Chao2022-01-271-1/+1
| | | | | | | | | | | | | | Set sys_rst_odl to GPIO_ODR_HIGH to support `sysrst pulse`. BUG=b:216575140 BRANCH=none TEST=zmake configure -b nereid TEST=test by EE. Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Iacc14a2cade60069752b91b19e6789b7fad44785 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419363 Reviewed-by: Andrew McRae <amcrae@google.com>
* nereid: add PD negotiate to high voltage supportScott Chao2022-01-271-0/+9
| | | | | | | | | | | | | | With this change, EC can negotiate to 20v. BUG=b:216581716 BRANCH=none TEST=zmake configure -b nereid TEST=verified on total phase Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Idd0c9b7e2a5dc04c4fb2c1217a6b72170f03732f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419125 Reviewed-by: Andrew McRae <amcrae@google.com>
* delbin: Migrate to new interrupt configAndrew McRae2022-01-274-67/+102
| | | | | | | | | | | | | Migrate delbin to the new interrupt config. BUG=b:215259903 TEST=zmake configure -b delbin BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I62ab5ca7e0f6a9a9630055aa7e9b03eefc18bbfc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3413603 Reviewed-by: Yuval Peress <peress@google.com>
* nissa: Swap EC_SOC_INT_ODL and EC_SOC_WAKE_ODLAndrew McRae2022-01-272-4/+4
| | | | | | | | | | | | | | Swap EC pins EC_SOC_INT_ODL and EC_SOC_WAKE_ODL for GPIO changes to AP. BUG=b:214872254 TEST=zmake cobfigure -b {nereid,nivviks} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I16b084b6d8614291080e898801a22bb933ef37bd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419360 Reviewed-by: Kangheui Won <khwon@chromium.org>
* nissa: Remove all non-common enum-namesAndrew McRae2022-01-274-62/+2
| | | | | | | | | | | | | Only enum-names for legacy common code should be used. BUG=b:216466985 TEST=zmake configure -b {nivviks,nereid} BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I0614fa0532aa18f3d7305809d877743144b8dfe2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3417351 Reviewed-by: Peter Marheine <pmarheine@chromium.org>