summaryrefslogtreecommitdiff
path: root/board/osiris
Commit message (Collapse)AuthorAgeFilesLines
* charger: Move charger_state_v2.h into charge_state.hSimon Glass2023-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | We don't have a v1 anymore, so the name makes no sense. Move it into the existing file. Include charge_state.h instead of v2, doing this in the same change to avoid build errors. This makes no functional change. BUG=b:218332694 TEST=make buildall Change-Id: Ic3e3adc45e4d002c2cd5ba8aa65e24686e01d628 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4516191 Reviewed-by: Tim Van Patten <timvp@google.com> Commit-Queue: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
* osiris,volmar: disable TCPC VCONNBoris Mittelberg2023-02-221-2/+0
| | | | | | | | | | | | | | | | | Disable TCPC sourcing VCONN via SYV682. The CC pins on SYV682 are not 5V tolerant, use internal VCONN sourcing instead. BUG=b:180973460 BRANCH=none TEST=make buildall Change-Id: I5a852a998cfcef613c720e200b542e43eece9cd5 Signed-off-by: Boris Mittelberg <bmbm@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4279301 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org>
* board: Sort header filesJeremy Bettis2022-12-017-18/+16
| | | | | | | | | | | | | | | | | | | | Sort all includes in board with the clang-format rules used by the zephyr project. BRANCH=None BUG=b:247100970 TEST=zmake build -a TEST=./twister --clobber -v -i TEST=make -j72 buildall_only runtests TEST=zmake compare-builds -a Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I6ad72b167cbb768a64c338fa633eb4bf5a401897 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4060360 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
* Add default implementation of board_set_charge_limitPeter Marheine2022-11-241-6/+0
| | | | | | | | | | | | | | | | | | | The majority of boards simply call charge_set_input_current_limit() from board_set_charge_limit() now that the minimum current limit and derating are available as config options. Make this the default behavior of the charge manager, overridable by boards as needed. Boards that have existing custom behavior retain it, with their versions of board_set_charge_limit() marked as __override as necessary. BUG=b:163093572 TEST=make buildall; zmake build -a BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I72475ca0e8381596cafbcda4b042c7f884ae0432 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022857 Reviewed-by: Keith Short <keithshort@chromium.org>
* Add CONFIG_CHARGER_MIN_INPUT_CURRENT_LIMITPeter Marheine2022-11-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This splits the dual use of CONFIG_CHARGER_INPUT_CURRENT into two different symbols, changing the uses of that which are used to set a minimum current limit to be CONFIG_CHARGER_MAX_INPUT_CURRENT_LIMIT. Most boards implement this in the same way within either the board or baseboard, so handling of the new option is moved into charge_set_input_current_limit (which is called by every user of the option) and every board which repeated this pattern has the new symbol set to the same value as the old one, with the duplicated code deleted. One functional change to the charge manager is made: when charging stops, the input current limit is set to the default value (CONFIG_CHARGER_INPUT_CURRENT) rather than 0. This captures the intent that the default current is appropriate at any time, which was previously configured by individual boards' implementation of board_set_charge_limit() while still allowing the limit to be set lower as needed. To verify that all changes are appropriate, the following has been manually checked: * All boards with a change to a .c file also have a .h change * All boards without a changed .h file have a changed baseboard.h * For Zephyr projects, those with a changed .c file have config added for the minimum limit and others (only corsola) are unchanged to leave it off. This is intended to verify that each board that duplicated the MAX() logic has its configuration updated to use the shared copy, and that boards with that code in the baseboard also update their configuration. BUG=b:163093572 TEST=make buildall; zmake build -a BRANCH=none LOW_COVERAGE_REASON=added lines will soon be deleted Change-Id: Ia460a16293c1fb82aac3784fd9be57ba0985f2fe Signed-off-by: Peter Marheine <pmarheine@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4019703 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* osiris: Add refresh key maskYu-An Chen2022-09-281-0/+2
| | | | | | | | | | | | | | Add CONFIG_KEYBOARD_REFRESH_ROW3 BUG=b:220800586 BRANCH=none TEST=Check system can enter recovery mode when ac only Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I4406917bd4de0c0591647919646126fa3be8cdc7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3924555 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* osiris: Prevent discharging when battery is disconnectedYu-An Chen2022-09-211-0/+5
| | | | | | | | | | | | | | Prevent discharging when battery is disconnected BUG=b:246214501 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I25d06c06cffc96be8152571668697152fe56d6f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906510 Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
* osiris: Discharge on AC when high MLCC noiseYu-An Chen2022-09-162-0/+72
| | | | | | | | | | | | | | | | | | | | | | Charger will work on the hybrid mode if battery full and system current over 3A. The voltage gap between the Vsys and Vbat will cause the Vsys has high ripple, Although it is normal design behaviors, But it will cause MLCC noise a bit larger than other conditions. This CL force battery discharge when battery full, So the battery MOS of NVDC charger will turn on always, it make the Vsys same as Vbat and the noise has been improved. BUG=b:246214501 TEST=check battery discharging when battery full BRANCH=none Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I61c65efbe4d44697371f3e039c8193e0adc9ec6c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3890025 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: YH Lin <yueherngl@chromium.org>
* brya: usb_mux: Split struct usb_mux in brya boardsTomasz Michalec2022-09-131-19/+29
| | | | | | | | | | | | | | | | | Update brya boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=make buildall BRANCH=None Cq-Depend: chromium:3748785 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ibfce1a895db0b179672f26cdf2c27b7168bf8985 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779625 Tested-by: Tomasz Michalec <tmichalec@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* Update license boilerplate text in source code filesMike Frysinger2022-09-1217-17/+17
| | | | | | | | | | | | | | | 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>
* tree-wide: const-ify argv for console commandsCaveh Jalali2022-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This updates the API for console commands from "int cmd(int argc, char **argv)" to "int cmd(int argc, const char **argv)" which is more accurate and in line with common convention. BRANCH=none BUG=b:244387210 TEST="make buildall" passes TEST="zmake build -a" passes TEST="util/compare_build.sh -b all" passes TEST="./twister -v -T zephyr/test" passes Cq-Depend: chrome-internal:4960125 Cq-Depend: chrome-internal:4959932 Change-Id: I57de9f35b85b8f3c7119df36aefb2abf25d2625f Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3863941 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* Osiris: Remove const keyword from rgbkbd_type variableParth Malkan2022-08-301-1/+1
| | | | | | | | | | | | | | Rgbkbd_type could be set at runtime, remove const. BUG=b:242259557 BRANCH=none TEST=None Cq-Depend: chromium:3864982, chromium:3861817, chromium:3866411 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I63e7f034aeb3ca31cbe293e5d2c4defd8c21176e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864981 Reviewed-by: YH Lin <yueherngl@chromium.org>
* osiris: Reduce host low battery shutdown percentage to 3%Yu-An Chen2022-08-261-0/+4
| | | | | | | | | | | | | | | Reduce host low battery shutdown percentage to 3%, default is 4%. BUG=b:237624128 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I770ecd55be21162972bcac49063465f4bdd9252e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853301 Reviewed-by: Parth Malkan <parthmalkan@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: YH Lin <yueherngl@chromium.org>
* osiris: Remove tablet modeYu-An Chen2022-07-283-2/+6
| | | | | | | | | | | | | | | Since osiris doesn't support tablet mode, remove it to avoid unexpected triggering. BUG=b:224423318 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ia574bed5a0583b6cc9bb0b0d34aa4f20c6bbd494 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3781951 Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
* osiris: Update thermal policyYu-An Chen2022-07-203-10/+158
| | | | | | | | | | | | | | | | This CL updated fan control policy to step control. Each fan has its own control table, and the number of steps can be different between two fans. BUG=b:234545460 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I2572868974947beade5e6f83610130d9110814ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3760804 Commit-Queue: Boris Mittelberg <bmbm@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* osiris: Move second fan enable pin to gpio97Yu-An Chen2022-07-152-2/+2
| | | | | | | | | | | | | | | Move second fan enable pin to gpio97 BUG=b:234545460 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I9cba1ba97dd2d2f9e323aa6c9ff645d73645727c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3756995 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Parth Malkan <parthmalkan@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* osiris: Remove unused gpio defineYu-An Chen2022-07-111-1/+0
| | | | | | | | | | | | | | Remove GPIO73 input define BUG=b:235020065 BRANCH=none TEST=HW team confirmed IO voltage as expected Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Id0ae99bb4bb84f93d700f402826cac0fdec7d58d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3742846 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* clang-format: Ran clang-format on all files againJack Rosenthal2022-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | A number of files have had non-compliant changes uploaded since all files were formatted. Likely, the changes were uploaded before CL:3751770, so the author would not have seen any pre-upload failures. Re-format these files. This CL was generated via: clang-format -i $(find -name '*.[ch]' -type f -not -path '*third_party*') BUG=b:236386294 BRANCH=none TEST=none Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Iedad17d13c29f45c7601d43f7fa2ce3215cc678e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3751462 Commit-Queue: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* board/osiris/fans.c: Format with clang-formatJack Rosenthal2022-07-071-1/+1
| | | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: I38e5ef11a3359db44755b554f4e7ed092d9d2013 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749395 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/pwm.c: Format with clang-formatJack Rosenthal2022-07-071-10/+6
| | | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: Icace7ddb3c635b14b8b0c241dfa920b97cbd3a3e Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749416 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* osiris: rgbkbd: Add rgb keyboard type fieldParth Malkan2022-07-071-2/+5
| | | | | | | | | | | | | | rgbkbd_type describes number of zones and LEDs supported. BRANCH=none BUG=b:232134905 TEST=make -j buildall Cq-Depend: chromium:3732802 Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I400f38f45469874f8ea9bf75f45135e3baa21764 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3733668 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* osiris: Update EN_PP5000_FAN init stateYu-An Chen2022-07-061-1/+1
| | | | | | | | | | | | | | Set EN_PP5000_FAN init low to prevent fan turn to full speed when ec boot. BUG=b:234545460 BRANCH=none TEST=check fan will not turn to full speed when ec reboot. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ic10a4c7247a3663028674cf59f3e3cb8faff0556 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3742855 Commit-Queue: Boris Mittelberg <bmbm@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* board/osiris/keyboard.c: Format with clang-formatJack Rosenthal2022-07-061-53/+42
| | | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: Ibde10f26f91d8077c4c2f524e51d06d7630d196f Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728801 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/board.h: Format with clang-formatJack Rosenthal2022-07-061-68/+56
| | | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: I55fd69eb42cc15ceb05bf183a80ba3954f22d314 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728795 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/usbc_config.h: Format with clang-formatJack Rosenthal2022-07-011-6/+2
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Iead12406d5706f440f16d517c636c4b9d30f4953 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728805 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/fw_config.h: Format with clang-formatJack Rosenthal2022-07-011-4/+4
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ib028764e6a4ebb700a0c4ac9c7aa391e7d6d22e5 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728799 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/i2c.c: Format with clang-formatJack Rosenthal2022-07-011-1/+1
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I6e40aafb0e449e74c24d25a6a8a35a2111948ae1 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728800 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* osiris: Support second fan controlYu-An Chen2022-06-304-23/+32
| | | | | | | | | | | | | | | Added second fan configuration BUG=b:234545460 BRANCH=none TEST=ectool pwmsetfanrpm <0|1> <rpm> TEST=ectool pwmgetfanrpm <0|1> Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I0fa24371b757382b12ed401789326f2339f0a2ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3733931 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* board/osiris/fw_config.c: Format with clang-formatJack Rosenthal2022-06-291-1/+1
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I2a505c57d7ae865a9996adce3126e468bb28be88 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728798 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/fans.c: Format with clang-formatJack Rosenthal2022-06-291-1/+1
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I4e16cc0bb054db3773904fdf09685db373367721 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728797 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/charger.c: Format with clang-formatJack Rosenthal2022-06-291-6/+4
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I6359b6356110812f8f5993e77a42eac62336d090 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728796 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* osiris: Update rgbkbd_mapYu-An Chen2022-06-281-130/+14
| | | | | | | | | | | | | | | | | This patch allow RGBKBD_SET_COLOR to specify LEDs by ID for Osiris BUG=b:237350685 BRANCH=none TEST=ectool rgbkbd <1~12> <0xff0000|0x00ff00|0x0000ff> TEST=ectool rgbkbd clear <0xff0000|0x00ff00|0x0000ff> Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ie22066067553ee197644cce02070b3b8272e06e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3726605 Reviewed-by: Parth Malkan <parthmalkan@google.com> Tested-by: Dexter ( Chia Hang ) Yeh <dyeh@google.com> Reviewed-by: Paris Yeh <pyeh@chromium.org> Commit-Queue: Dexter ( Chia Hang ) Yeh <dyeh@google.com>
* board/osiris/usbc_config.c: Format with clang-formatJack Rosenthal2022-06-281-7/+4
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I058af98a401e9a43980ea85cd2eaa58f4347122b Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728804 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/sensors.c: Format with clang-formatJack Rosenthal2022-06-281-5/+4
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I0fe420d8eb4f5f249db112b60bc3d97989a83027 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728803 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/board.c: Format with clang-formatJack Rosenthal2022-06-281-10/+9
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I0cd9d4146d646712aba1208cb96fd12deadc7bbe Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728794 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/osiris/led.c: Format with clang-formatJack Rosenthal2022-06-281-16/+21
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I91b5bb7a640e493b192877c4174c13112ca31ad0 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728802 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* osiris: Remove unused batteryYu-An Chen2022-06-222-34/+0
| | | | | | | | | | | | | | Remove unused battery BUG=b:229947325 BRANCH=none TEST=make BOARD=osiris Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I954b50983a6863dca64bf0474788fa957deab956 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716417 Commit-Queue: Parth Malkan <parthmalkan@google.com> Reviewed-by: Parth Malkan <parthmalkan@google.com>
* osiris: Update gpio output typestabilize-14918.B-mainYu-An Chen2022-06-161-2/+2
| | | | | | | | | | | | | | | | Set AMP_PWR_EN(GPIO57) to GPIO_OUT_LOW from GPIO_ODR_LOW. Set RGB_KB_INT(GPIO56) to GPIO_INPUT BUG=b:224423318 b:235020065 BRANCH=none TEST=HW team confirmed IO voltage as expected Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I8550703b84249f339663861964b5d65c2eb17e0e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3706482 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* osiris: Remove unused i2c portYu-An Chen2022-06-163-11/+3
| | | | | | | | | | | | | | Remove unused i2c port BUG=b:224423318 BRANCH=none TEST=check i2cscan will not scan i2c3 Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I31d5d8907ee99436b2f418ba693025843972a720 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3705160 Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
* osiris: Modify thermal and fan configurationYu-An Chen2022-06-132-125/+20
| | | | | | | | | | | | | | | | | This patch update thermal halt/alert temperature and fan minimum/start/maximum speed. BUG=b:234545460 BRANCH=none TEST=Thermal team verified thermal policy is expected. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I8bd473b85d92f2315b88d66732b5a50872b973c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3682990 Commit-Queue: Kenny Pan <kennypan@google.com> Reviewed-by: Kenny Pan <kennypan@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Parth Malkan <parthmalkan@google.com>
* osiris: Support factory keyboard testYu-An Chen2022-06-102-0/+27
| | | | | | | | | | | | | | | Support factory keyboard connector test BUG=b:224423318 BRANCH=none TEST=check ectool kbfactorytest pass Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ie2c0e5e10bd3f8713bca2e1807f8e5e60eca01fb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3686009 Commit-Queue: Parth Malkan <parthmalkan@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Parth Malkan <parthmalkan@google.com>
* osiris: Update gpio configYu-An Chen2022-06-081-1/+1
| | | | | | | | | | | | | | | | | Set GPIO73 as input to prevent I/O pin leakage current. BUG=b:235020065 BRANCH=none TEST=HW team confirmed IO voltage as expected Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I7dd1d22a4635fd55dc803c7e025ec0b3fd52c156 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3678879 Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com> Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com>
* osiris: Update KYBL_EN output typeYu-An Chen2022-06-071-1/+1
| | | | | | | | | | | | | | Set KYBL_EN(GPIOA7) to GPIO_OUT_LOW from GPIO_ODR_LOW. BUG=b:233323599 BRANCH=none TEST=build pass Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I1964a76984d417dfe9c3db5a0374edb243cdc039 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3692486 Commit-Queue: Parth Malkan <parthmalkan@google.com> Reviewed-by: Parth Malkan <parthmalkan@google.com>
* osiris: Update PWM settingYu-An Chen2022-06-021-3/+3
| | | | | | | | | | | | | Update PWM setting, osiris PWM setting is follow kano BUG=b:234545460 b:229039902 BRANCH=none TEST=build pass Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I2c9aeee96be7869008f6b98029bdf242d67d8afa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3682985 Reviewed-by: Kenny Pan <kennypan@google.com>
* osiris: Initialize the vivaldi keyboardYu-An Chen2022-05-312-6/+46
| | | | | | | | | | | | | | | Initialize the vivaldi keyboard. BUG=b:220800586 BRANCH=none TEST=check all top row keys working Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I29c6a517aff72affc4c902e6c66c2a0f66a841e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663673 Reviewed-by: Kenny Pan <kennypan@google.com> Commit-Queue: Kenny Pan <kennypan@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* osiris: Add battery AP22ABNYu-An Chen2022-05-312-1/+33
| | | | | | | | | | | | | | | Add battery AP22ABN BUG=b:229947325 BRANCH=none TEST=Check battery charge/discharge/cutoff working Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I8e2d3cfd08932c0a066fa53f0502ee2a1a26b721 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3662668 Commit-Queue: Kenny Pan <kennypan@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Kenny Pan <kennypan@google.com>
* osiris: Fixed keyboard matrixYu-An Chen2022-05-311-6/+3
| | | | | | | | | | | | | | | Fixed keyboard matrix BUG=b:220800586 BRANCH=none TEST=manual check function working Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: Ida179b3cd01b1578e1b73e7bc0f92596e4df1283 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3670786 Reviewed-by: Kenny Pan <kennypan@google.com> Commit-Queue: Kenny Pan <kennypan@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* osiris: Add rgb kb functionYu-An Chen2022-05-285-6/+177
| | | | | | | | | | | | | | Add rgb kb function BUG=b:233323599 b:233012340 BRANCH=none TEST=check "ectool rgbkbd <1~12> <0xff0000|0x00ff00|0x0000ff>" working Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I407176d33c9d958cf30c5dfef9d2abbcddd43405 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3667237 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* osiris: Update FW_CONFIG fieldYu-An Chen2022-05-274-56/+3
| | | | | | | | | | | | | | remove usb_db_type field BUG=b:232647819 BRANCH=none TEST=check system boot Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I09142c02eb9b1418740b33c2699ad0f9bb054023 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3670784 Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
* usbc: wrap task_set_event to have an explicit port argumentFabio Baltieri2022-05-271-2/+2
| | | | | | | | | | | | | | | | | Define an explicit function to set events for the usb charger tasks, so that the caller is not coupled to the internal task implementation, and we can use a single task on a later patch. BRANCH=none BUG=b:226411332 TEST=make buildall TEST=zmake testall TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I7a1223642b800568bf4f9864f75b2b647c84d29f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3663746 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>