summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/gpio
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-055-252/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* zephyr: guybrush: Bringup power sequencingJack Rosenthal2021-09-171-0/+10
| | | | | | | | | | | | | | | | | Bringup power sequencing for AMD and enable for guybrush. Note that at the moment we had to copy-paste the power signals and related funcitons, the code was a bit too far from shimming without extensive editing. We can try and merge together later. BUG=b:195137794 BRANCH=none TEST=power sequence to S0, nothing useful on ap console (yet!) Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I9a577e24d80fe0ff992af4b847e14695b82f871d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3169568 Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: provide unified method to get sku id and board versionMichał Barnaś2021-08-181-0/+27
| | | | | | | | | | | | | | | | | | | | | | Previously, functions for reading board version and sku id were defined in board.c files which are not compiled in Zephyr builds. Logic from board.c files should be moved to the DeviceTree files. This commit adds support for defining board version and sku id pins and numeral system used to decode them. BRANCH=main BUG=b:194136536 TEST=Call system_get_sku_id and system_get_board_version on CrOS EC and Zephyr, values should be correct and the same on both versions Change-Id: I61b5e205cb2a2299ad86c5dff38c05a9659eb2d3 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3048102 Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com>
* zephyr: npcx_evb: Enable fanWealian Liao2021-08-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL enables fan functionality for npcx7/9_evb BUG=none BRANCH=none TEST='fanset', 'fanduty', 'faninfo' console command ``` uart:~$ fanset 50% Fan rpm given as 50% Setting fan 0 rpm target to 3078 uart:~$ faninfo Actual: 2943 rpm Target: 3078 rpm Duty: 38% Status: 2 (locked) Mode: rpm Auto: no Enable: yes Power: yes ``` Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I836e1dd62a712bac887d4d12d34541c8c8043a83 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3063105 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: trogdor: Create Zephyr image for trogdorWai-Hong Tam2021-07-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Trogdor is a reference design, which doesn't have Zephyr support yet. Lazor is a shipping design of the Trogdor family, which already have Zephyr support. This CL creates the Trogdor Zephyr image and modifies the hardware difference. The CL first copies the directory lazor/ to trogdor/. And do the following changes: * Rename all the board term lazor -> trogdor * Update the GPIOs (recheck the result of gpios_to_zephyr_dts) * Update the GPIO interrupts * Update the battery info * Update the sensor info * Do not support multi-TCPM driver * Do not include sku.c (trogdor doesn't have it yet) BRANCH=None BUG=b:184071830 TEST=Built the Zephyr image. Booted it on an existing Trogdor board. Change-Id: I3b603284c719c119bb05460e7d4386d2c2eabda4 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2994753 Reviewed-by: Keith Short <keithshort@chromium.org>
* volteer: zephyr: rename GPIO_EC_BATT_PRES_ODL to GPIO_BATT_PRES_ODLYuval Peress2021-07-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | Remove a duplicate enum from gpio-enum-name.yaml. Making this change makes reading through the dts files a bit easier at the cost of having to effectively create an alias. GPIO_EC_BATT_PRES_ODL could not be removed from cros ec because it is currently used in many other boards and baseboards. When making this change, I also tried replacing all instances of the GPIO_EC_BATT_PRES_ODL, but some of these are in generated files such as brya's generated-gpio.inc which would get overridden when the tool is run next. BRANCH=none BUG=b:190743662 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I0f1ce938495e1a7227f1a0283a7378faf02bd2b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3010483 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: hayato: Add XHCI init interruptSimon Glass2021-06-221-0/+1
| | | | | | | | | | | | | | | | This interrupt appears to be missing from the GPIO list. Add it. Note: It is marked as open-drain so I am not sure how to describe it in the gpio_map, but have made an attempt. BUG=b:189855648 BRANCH=none TEST=see that it builds OK with the new interrupt handler Change-Id: Id6c23cc67a17fd221eb977faab18e6bdfa14f324 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957550 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: add GPIO VBOB_EN enum nameWai-Hong Tam2021-06-111-0/+1
| | | | | | | | | | | | | | | Some code in EC OS will use this GPIO, i.e. CL:2943986. Make the Zephyr CQ pass. BRANCH=None BUG=b:190250108 TEST=Build the Zephyr image. Change-Id: Ib98c09916a2c7860653689a4c4d0d66bd4f64fdf Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2957073 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: lazor: fix touchpadDawid Niedzwiecki2021-05-141-0/+1
| | | | | | | | | | | | | | | Add GPIO_TRACKPAD_INT_GATE pin to let the OS manage the trackpad. BUG=b:188127604 BRANCH=none TEST=Build and flash firmware for Lazar, boot to OS, verify that touchpad works. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I526b9bc440456fdcb700c04d91c5976189840484 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2897237 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: asurada: Enable I2CDenis Brockus2021-05-131-2/+2
| | | | | | | | | | | | | | | | | | | Hold off on merging this until https://chromium-review.googlesource.com/#/q/2859183 and https://chromium-review.googlesource.com/#/q/2857993 or their equivalent have been landed by ITE BUG=b:180980668,b:186673243 BRANCH=none TEST=i2c shell "i2c scan I2C_0" Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I6c8bbe9e6aef1ab24fc25797e379b0e5cf8a070f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2855217 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: lazor: Include board-specific hibernate codeWai-Hong Tam2021-05-011-0/+2
| | | | | | | | | | | | | | | | Include the board-specific hibernate code in CrOS EC directory. Add and rename the hibernate-related GPIO enums. BRANCH=None BUG=b:183745774 TEST=Built the Zephyr image and tested EC hibernate on Lazor. Verified all wake sources: power button, lid open, ACOK, and EC reset Change-Id: I2f7371e033f45227c0e53290608862e5192434f2 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2861058 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: volteer: Update pin setup for power savingKeith Short2021-04-291-0/+3
| | | | | | | | | | | | | | | Update all the GPIO pin configurations to match the Chromium EC implementation. BUG=b:184653704 BRANCH=none TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Icc64ed88e15f40717ebee79b537daffaa18349db Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2855529 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: asurada: Enable GPIOsDenis Brockus2021-04-271-0/+45
| | | | | | | | | | | | | | | | Enable GPIO and include GPIO DTS BUG=b:180980668 BRANCH=none TEST=ec console "gpioget" Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: Ied6fddfb69071fae246e1331c055b2fb61d34825 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2854335 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Yuval Peress <peress@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* zephyr: lazor: Add sensors to lazorYuval Peress2021-04-231-0/+2
| | | | | | | | | | | | | | | | | | | Enable the motionsense task in lazor and along with it the GMR tablet mode and lid angle calculations. BRANCH=none BUG=b:185966444 TEST=zmake testall TEST=Flash on lazor and check sensors (done by keith since I don't have a board). Change-Id: Iccd1e6e0d503f759255cf3d9c162922788e915a0 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2830532 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: Add unused GPIOs implementation in shimmed gpio driverMulin Chao2021-04-231-0/+11
| | | | | | | | | | | | | | | | | | | | This CL adds ununed GPIOs configuration support in shimmed gpio driver. By adding IO phandles in 'unused-gpios' prop of board device-tree file, the shimmed driver will configure them one by one (depends on board circuit or io-pad design in chip) to prevent leakage current and get better power consumption in the lowest power state. BUG=b:184783076 BRANCH=none TEST=zmake testall Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ia4fe29cc244e27855faa1b57c2d1f8319b1246c3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817141 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: npcx: Add non-psl hibernate implementationMulin Chao2021-04-142-0/+14
| | | | | | | | | | | | | | | | | | | | | | | Implements non-psl hibernate mechanism for cros_system driver. First, we plan a little hibernate function locates in the last 32K ram block in npcx7 series. Then power down the other ram blocks and go to deep sleep mode for better power consumptions. Please notice do not use global or call the other functions in this hibernate utility since we have turned off the other ram blocks. BUG=b:177904393, b:183745774 BRANCH=none TEST=zmake testall TEST=All wake-up GPIOs can wake-up ec from hibernating on npcx7 evb. Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: I48f95b0e616ad27f77a6d0ada8251ec438427741 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2821116 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: lazor: Add LED supportDawid Niedzwiecki2021-04-121-0/+2
| | | | | | | | | | | | | | | | | | Add GPIOs to control the LED and add board/lazor/led.c to the compiled list. The color of the LED will be changing when the charging is supported. BUG=b:182398910 BRANCH=none TEST=Verfiy the LED color according to the charging state. If the charging is not supported, disable led_set_color function and set the color manually with gpioset GPIO_EC_CHG_LED_Y/B_C1 0/1. Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I910c58efa6b3771bacb264398acdcf171071f04a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2817478 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* zephyr: volteer: init i2c_portsYuval Peress2021-04-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Populate i2c_ports[] and set i2c_ports_used correctly. Add child bindings for named i2c ports that allow configurations. A configured named i2c node MUST have a kbps property and 2 child nodes for `scl` and `sda` which will use the same enums as the named gpios. This provides a compile-time check to make sure that the overlay gpio.dts defined a named gpio using the SCL/SDA enums. This means that if the i2c port config uses a valid enum from gpio-enum-name.yaml but the overlay did not define a node using that same enum, the build will break (because the gpio_signal enum will not have that enum defined). BRANCH=none BUG=b:184269641 TEST=zmake testall TEST=run firmware_ECCbiEeprom FAFT on volteer Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I7f46ab8f8b4079cf6ae5287869e6844fea38a100 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2810333 Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* zephyr: gpio: Move named GPIO entries to devicetreeYuval Peress2021-04-082-0/+99
| | | | | | | | | | | | | | | | Migrate NAMED_GPIO() to devicetree enums. This allows us to create common boards and share the GPIO mappings in dts files. BRANCH=none BUG=none TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I41c6151569a04628ac6dcc597f05e529327b7b46 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2804495 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* dts: binding: add an explicit binding for named-gpiosFabio Baltieri2021-01-201-0/+20
Currently the name-gpios node uses the gpio-keys binding. That is a standard binding used in Zephyr for GPIO keys, as in physical button. This copies the binding over to a dedicated "named-gpios" one, and adds a #gpio-cells property so that we can refer to its nodes from a phandle property of a different node. BUG=none TEST=build and check generated files BRANCH=none Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Iadd3465b23b89cfe08c96c4d03479f1e5f8e3c59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637643 Reviewed-by: Keith Short <keithshort@chromium.org>