summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.keyboard
Commit message (Collapse)AuthorAgeFilesLines
* zephyr/Kconfig: allow keyboard protocol be optionalTing Shen2023-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | | Keyboard EC needs keyscan but does not talk directly to AP. In terms of config option, this is PLATFORM_EC_KEYBOARD=y and PLATFORM_EC_KEYBOARD_PROTOCOL_MODE=none. Update Kconfig to allow this combination. BUG=b:269989432 TEST=1. `zmake compare-builds --all` no change for existing devices 2. `zmake build roach --clobber` with CL:4269915 chain BRANCH=none Change-Id: Iac0b79b767df46a68eefd654faf0177e4137d149 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4339258 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* geralt: add CONFIG_BUTTON_TRIGGERED_RECOVERYTing Shen2023-02-171-0/+7
| | | | | | | | | | | | | | | BUG=b:268292361 TEST=hold recovery button combination for 10 seconds. Verify AP reboots into recovery mode, and recovery reason shows "recovery_reason: 0x02 / 0x00 Recovery button pressed" BRANCH=none Change-Id: Ie8e09a3d7ecc525ce6d10836a05c3f55b2e73da6 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4243439 Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* zephyr: enable Kconfig based on the devicetree - keyboardMichał Barnaś2023-01-121-2/+4
| | | | | | | | | | | | | | | This commit adds automatic selection of required Kconfig options based on the device tree nodes for module: keyboard BUG=b:251812799 BRANCH=main TEST=run twister and zcompare script Change-Id: I7efb4ed68b475b62d5a399d0f68d2b9e0f1c1bf4 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3982647 Reviewed-by: Yuval Peress <peress@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: config: select PWM automaticallyFabio Baltieri2022-11-211-0/+1
| | | | | | | | | | | | | | | | | | | Add the missing dependency to the PWM subsystem for the drivers that depends on PWM. This is done using the select Kconfig directive, so that the subsystem gets enabled explicitly as soon as the first of these gets defined in the devicetree. Drop a bunch of now unnecessary CONFIG_PWM=y settings. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I55a78d6324f753fe5fe13a0b81b5e129626621af Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4031191 Reviewed-by: Aaron Massey <aaronmassey@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: keyboard: split dt based keymap to its own configFabio Baltieri2022-11-161-0/+9
| | | | | | | | | | | | | | | | | Add a separate config for instantiating keyscan_config based on the devicetree, decoupling it from the main PLATFORM_EC_KEYBOARD option. The new one is selected automatically based on devicetree and the driver does not need a #if guard anymore. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I8e6654c7ebca8553b1f930b87c320af50895048f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4030886 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Kconfig: fix wrong helptext indentationFabio Baltieri2022-11-161-9/+9
| | | | | | | | | | | | | | Fix wrong indentation of PLATFORM_EC_KEYBOARD_CUSTOMIZATION helptext. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I3021373f917e85c5d06a2b4d1bb28d65f64d5fce Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4021955 Reviewed-by: Wai-Hong Tam <waihong@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: keyboard: select PLATFORM_EC_KEYBOARD_DISCRETE automaticallyFabio Baltieri2022-11-161-0/+2
| | | | | | | | | | | | | | | | | Select PLATFORM_EC_KEYBOARD_DISCRETE automatically and make it depend on having the corresponding nodelabel. This allows removal of an explicit config entry and prevents the driver from trying to build with an invalid configuration. BRANCH=none BUG=none TEST=cq dry run Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ib2bbdf18952b0536761c72070f5113723e99bb7a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4021953 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Yuval Peress <peress@google.com>
* zephyr: add keyboard factory test supportSue Chen2022-11-071-0/+7
| | | | | | | | | | | | | | | | | Add support for factory keyboard test through command 'ectool kbfactorytest' command. BUG=b:252950988 BRANCH=none TEST=none LOW_COVERAGE_REASON=b:256670141 create unit test for keyboard factory test Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I6c0c9c6098a306baa1a64eb664818db28f01041e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3944300 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: add customization keyboard supportLeo-Tsai2022-10-051-0/+15
| | | | | | | | | | | | | | | Add support for customization keyboard, some projects need to use a custom matrix. BRANCH=none BUG=b:246873434 TEST=zmake build board pass Signed-off-by: Leo-Tsai <leocx_tsai@compal.corp-partner.google.com> Change-Id: I0dd6c6bf5dcb3505ba4b8ae270ff3460edfbabe5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3928565 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com>
* Zephyr: Clarify keyboard powerbutton assert optionsDiana Z2022-09-151-4/+4
| | | | | | | | | | | | | | Clarify the causality in the powerbutton assert options, and also clarify why one might select either option. BRANCH=None BUG=b:245626014 TEST=zmake build skyrim Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id388200403976dc3914eae32b8ffe258d34e2521 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3896633 Reviewed-by: Jett Rink <jettrink@chromium.org>
* Update license boilerplate text in source code filesMike Frysinger2022-09-121-1/+1
| | | | | | | | | | | | | | | 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>
* zephyr: Kconfig: Add strict debouncerwen zhang2022-08-221-0/+10
| | | | | | | | | | | | | | Porting the config CONFIG_KEYBOARD_STRICT_DEBOUNCE to Zephyr BUG=b:242028243 TEST=zmake build steelix BRANCH=None Change-Id: I907b597b997f79fb39bba69bec7cfaaba11058a9 Signed-off-by: wen zhang <zhangwen6@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3819446 Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Reviewed-by: Eric Yilun Lin <yllin@google.com>
* zephyr: Kconfig: use devicetree Kconfig symbolsFabio Baltieri2022-07-291-3/+2
| | | | | | | | | | | | | | | | 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>
* zephyr: Remove gpio_map.h legacy include fileAndrew McRae2022-07-071-2/+2
| | | | | | | | | | | | | Remove gpio_map.h and update Kconfig references to it. BUG=b:237716584 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I4b21b53a4a63c6a934f9ab3bef3707e225bd01b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750267 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Add support for discrete KeyboardVijay Hiremath2022-04-251-0/+6
| | | | | | | | | | | | | | | | Added support to enable discrete Keyboard if the platform needs one or the raw Keyboard support is not built-in in the EC. BUG=b:230008245 BRANCH=none TEST=Able to test it8801 discrete Keyboard on MTLRVP Change-Id: I6fc40af8bdd006e7af86d2c17fca8faab5412f7e Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3601509 Reviewed-by: RAJESH KUMAR <rajesh3.kumar@intel.com> Reviewed-by: Brandon Breitenstein <brandon.breitenstein@intel.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: kblight-pwm: make the option dt node basedFabio Baltieri2022-04-221-14/+2
| | | | | | | | | | | | | | | | | | | Change the Kconfig kblight-pwm option to enable automatically if a a cros-ec,kblight-pwm node is defined. Also move the option out of the "choice" block, as that was made for port expander support, but the driver has since been ported to the Zephyr PWM APIs, so once we'll have an IT8801 PWM driver available, it'll work with the existing driver automatically. BRANCH=none BUG=b:217741090 TEST=compared the .config on brya Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I46ddff2613b901440162e22b89895e591435bb8b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578648 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Kconfig: fix few choice symbols formatFabio Baltieri2022-04-141-7/+7
| | | | | | | | | | | | | | | | | | | | Choice entries expects a symbol (or nothing) as the argument. The symbol is only used to have choices in multiple files (which we don't) and for documentation referencing. This renames few instances of descriptions where there should be a symbol around various Kconfig files, and cleans up various choice/endchoice definition cosmetic inconsistencies. BUG=none BRANCH=none TEST=ninja menuconfig Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Link: https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html#kconfig-syntax Change-Id: I040bc9008d6c97bf96d8cf4f37384504ccda78b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3586429 Reviewed-by: Sam Hurst <shurst@google.com>
* zephyr: shim: drop the shim PWM codeFabio Baltieri2022-04-141-0/+1
| | | | | | | | | | | | | | | | | | Drop the shim PWM code, all drivers of Zephyr enable projects are now using the Zephyr PWM APIs. The pwm.c file only contains the PWM host command now, so rename the corresponding Kconfig option and file to reflect that. BRANCH=none BUG=b:217741090 TEST=cq dry run TEST=build and run on brya Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I3837a81be98c4c2a9c2f7ceea24e05fe7940c7d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3578701 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* zephyr: Kconfig: update the displight and kblight descriptionsFabio Baltieri2022-03-081-2/+1
| | | | | | | | | | | | | | Update the PLATFORM_EC_PWM_DISPLIGHT and PLATFORM_EC_PWM_KBLIGHT option help text to reflect the fact that these now needs a device tree node. BRANCH=none BUG=none TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Iddd0d061d00851c37ce050e5b19d52c8274932ab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3497697 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: port BUTTONS_RUNTIME_CONFIGEric Yilun Lin2022-03-041-0/+6
| | | | | | | | | | | | | | BUG=b:219891339 TEST=buttons are runtime configurable on kingler BRANCH=none Change-Id: Ib58d23ea98fe135413695e5ec88604ece77622d6 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3499688 Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* RGBKBD: Add RGB Keyboard taskDaisuke Nojiri2022-03-011-0/+49
| | | | | | | | | | | | | | This patch introduces a RGB keyboard task and a IS31FL3743B driver. BUG=b:203664745, b:213921985, b:199995751 BRANCH=None TEST=Vell and unit test. Change-Id: Iefc1714efca9a4dc70db5a024d1ab020ec7b69b6 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3342506 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: shim: drop PLATFORM_EC_PWM dependency from kblight and led_pwmFabio Baltieri2022-03-011-1/+0
| | | | | | | | | | | | | | | The kblight and led_pwm drivers do not depend on the shimmed PWM API anymore, drop the depends so that we can build them with CONFIG_PLATFORM_EC_PWM=n. BRANCH=none BUG=b:217741090 TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I3511e1e1e4089ed06e2e660dfccbf174b1076fb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3497448 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
* zephyr: keyboard: set active low flag for column 2Keith Short2022-02-251-0/+3
| | | | | | | | | | | | | | | | | Explicitly set the active low flag for the column 2 output pin. Modify cros_kb_raw_set_col2() to drive the logic level instead of the physical state of the pin when CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED is enabled. BUG=b:218904113 BRANCH=none TEST=Verify all keypresses on herobrine using "ksstat on" Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: If6098226d5551c2a3aa8374f7b17e2fad396c006 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3488786 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Reviewed-by: Andrew McRae <amcrae@google.com>
* Zephyr: Update kb config nameParth Malkan2022-02-211-1/+1
| | | | | | | | | | | | | | PLATFORM_EC_KEYBOARD_SCAN_ANTIGHOST_ADC changed to PLATFORM_EC_KEYBOARD_SCAN_ADC. BUG=b:208773873 TEST=none BRANCH=none Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I33c4e29e8844cc81cffdd6dd8643e5e2575d5b0f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3478114 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* taniks: Create a new keyscan config fieldParth Malkan2022-02-181-0/+7
| | | | | | | | | | | | | | | | This change adds a new config suggesting adc based ksi lines to support antighosting feature. It also adds a keyscan_config field to track threshold adc voltage above which key should be identified as pressed. BUG=b:208773873 TEST=make -j buildall BRANCH=none Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I5c8b89ea6be5994867ca4779fa0d6bd88f0cdcd2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3463081 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* Zephyr: Add Kconfig for keyboard debugDiana Z2022-01-271-0/+8
| | | | | | | | | | | | | | | | Early in board bringup on systems with no SoC, it can be nice to have keyboard debugs enabled. However, ensure the feature is turned off on more mature boards. BRANCH=None BUG=None TEST=compile guybrush with config and verify it gets set to "n", compile skyrim and ensure it builds Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I2c4465f1e83231ad0f22984577b382f3e02cd370 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3415383 Reviewed-by: Keith Short <keithshort@chromium.org>
* Zephyr: Create a CONFIG for keyboard backlight enableDiana Z2022-01-271-0/+6
| | | | | | | | | | | | | | | | | Rather than relying on the GPIO to be defined in the board's h file, instead define a CONFIG option which can more easily be used with the zephyr build. BRANCH=None BUG=b:216496315 TEST=zmake testall, compare_builds.sh on three boards with changed .h files and two ranom boards that don't use the config Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I9b8970d6a094a10247a4fb3b7c01fdfea4ded3e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3418857 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: set PWM kblight channel from the device treeFabio Baltieri2021-10-291-3/+3
| | | | | | | | | | | | | | | | This drops the PWM_CH_KBLIGHT define from the individual board pwm_map, and replaces with a single reference to a named pwm labeled kblight. BRANCH=none BUG=b:177452529 TEST=zmake testall TEST=build and run volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ie474267b8f5d16cad7b8db2d202a5e971e417c1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3245506 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Add support for CONFIG_KEYBOARD_REFRESH_ROW3Wai-Hong Tam2021-08-181-0/+8
| | | | | | | | | | | | | Add Kconfig option for CONFIG_KEYBOARD_REFRESH_ROW3. BRANCH=None BUG=b:196885613 TEST=zmake testall Change-Id: Idd55e5bc3af4aab95aa9577b49eb3d8eb5e90630 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3102286 Reviewed-by: Keith Short <keithshort@chromium.org>
* keyboard: Use __override for keyboard_scan_configDaisuke Nojiri2021-07-231-10/+0
| | | | | | | | | | | | | | | | | Currently keyboard_scan_config is defined by each board using CONFIG_KEYBOARD_BOARD_CONFIG. This patch makes it defined as __override hence removes CONFIG_KEYBOARD_BOARD_CONFIG. BUG=None BRANCH=None TEST=buildall Change-Id: I53a356741ba4d00e829ca59b74ee6dc704188728 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044403 Tested-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
* zephyr: add Kconfig for button simulation commandWai-Hong Tam2021-03-301-0/+6
| | | | | | | | | | | | | | | | The Kconfig adds the console command "button", which simulates button press. The buttons are like volume-up, volume-down, and recovery buttons. BRANCH=None BUG=b:182398910 TEST=With the following CLs, which enables the Kconfig, tested the console command. Change-Id: I55aa409f2d98a8794f99d788d3b9588619f316da Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2792694 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: don't limit the console commands to 8042 protocolWai-Hong Tam2021-03-241-4/+10
| | | | | | | | | | | | | | | | The CrOS EC CONFIG_CMD_KEYBOARD also enables the commands ksstate and kbpress, which are not limited to 8042 protocol. Rename the Kconfig to drop the 8042 term and update the help. BRANCH=None BUG=b:183445211 TEST=Built the image correctly. With the following CLs, tested the keyboard working on Lazor. Change-Id: Ib53446f8264d6f72157f989a1506e1bac9bd9023 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2782366 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: shim the MKBP-protocol keyboard supportWai-Hong Tam2021-03-241-0/+8
| | | | | | | | | | | | | | | | | The MKBP protocol is usually used on ARM-based platforms for keyboard communication. It sends the raw scan code, like (row, col), to the AP and the kernel driver will map the scan code to a key. BRANCH=None BUG=b:183445211 TEST=Built the image correctly. With the following CLs, tested the keyboard working on Lazor. Change-Id: I9453c3e6f6629fc11135e56bdfe909635844932c Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2782365 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: add Vivaldi keyboard supportFabio Baltieri2021-02-251-0/+13
| | | | | | | | | | | | | | Add support for building common/keyboard_vivaldi.c. This is enabled by default in ECOS as long as CONFIG_KEYBOARD_PROTOCOL_8042 is enabled too. BRANCH=none BUG=b:177604307 TEST=build and verified that the map is set and HC command is received Change-Id: I881cdfc0a14432a97ced27be757b4c30daf002b8 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2712967 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Update KEYBOARD_PWRBTN_ASSERTS_KSIx to be a choiceSimon Glass2021-02-051-4/+19
| | | | | | | | | | | | | | | | | We cannot have both KSI2 and KSI3 selected here, so convert this into a choice. Add a third choice for the case when neither is selected. BUG=b:167405015, b:179482109 BRANCH=none TEST=ninja -C /tmp/z/vol/build-ro/ menuconfig Check the menus look OK Build volteer for zephyr and check that we still have CONFIG_PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI2 selected Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I0a8de0cf8d60e5d87d3d6d102fcf35c4b8fe06f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2678781 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Support volume buttonsSimon Glass2021-02-051-0/+10
| | | | | | | | | | | | | | Add support for volume buttons in Zephyr. BUG=b:167405015 BRANCH=none TEST=with other CLs, build for volteer and see that the new code is included Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Id8bd57c4dc36037fc5e4181291623a6f358b8381 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674955 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Support PWRBTN_ASSERTS_KSI2Simon Glass2021-02-051-0/+14
| | | | | | | | | | | | | | Support these two options for Zephyr. BUG=b:167405015 BRANCH=none TEST=build for volteer and see that the new code is included Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I6887de388cf9fa8f2146129aad5058bf4889ff4b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674952 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Support the keypadSimon Glass2021-02-051-0/+7
| | | | | | | | | | | | | Add support for a numeric keypad with Zephyr. BUG=b:167405015 BRANCH=none TEST=build for volteer and see that the new code is included Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Ib45c320db979567169297ba7bead5707a3aada0a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2674949 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Support custom keyboard configSimon Glass2021-02-041-0/+10
| | | | | | | | | | | | | Add support for CONFIG_KEYBOARD_BOARD_CONFIG. BUG=b:167405015 BRANCH=none TEST=with next CL, build for volteer and see that the new file is included Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I55bfb942404a182824158fc4decefa74adc1ea8d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2676821 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: Add keyboard backlight supportKeith Short2021-02-011-0/+24
| | | | | | | | | | | | | | Add KConfig options for keyboard backlight support. BUG=b:17760430, b:177851031 BRANCH=none TEST=make buildall, zmake testall TEST=Run "kblight" command on Volteer Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I7da36a7a685285562152e560f3dbe5da1b1ba04f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2636483 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: Add help for keyboard protocol select.Keith Short2021-02-011-0/+5
| | | | | | | | | | | | | | Add additional help to the keyboard protocol selection. BUG=b:167405015 BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I2c01484c91a76f5e3551da1f3638ec7e5d6796e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657404 Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: move keyboard KConfig into separate fileKeith Short2021-02-011-0/+61
Reorganinze KConfig options related to keyboard support into a separate file. BUG=b:167405015 BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I6052f9b0c9be85265f0d42ac69f855d9f6854b40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657403 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>