diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2022-07-19 01:35:01 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-26 16:49:11 +0000 |
commit | e406aadb60c3c7148242eee6a7fd4dc4569443e0 (patch) | |
tree | fe2ed4edc3cbccc20722f6242b53523b2fb8ceb8 /docs/zephyr | |
parent | 0ad9fd4e835cb3c6d18b76f10097b45e2fec5bf2 (diff) | |
download | chrome-ec-e406aadb60c3c7148242eee6a7fd4dc4569443e0.tar.gz |
zephyr: npcx_evb: add GPIO_VOLTAGE_1P8 flag support
Add GPIO_VOLTAGE_1P8 flag support at the related board DT file and
remove unused `def-lvol-io-list` node.
BRANCH=none
BUG=b:239636081
TEST=passed 'zmake build npcx7/npcx9 --clobber'
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Cq-Depend: chromium:3782768, chromium:3782769, chromium:3782770
Change-Id: I594a7a8bf942bd79ba830cdb277e133a1dfec191
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3771325
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'docs/zephyr')
-rw-r--r-- | docs/zephyr/zephyr_gpio.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/zephyr/zephyr_gpio.md b/docs/zephyr/zephyr_gpio.md index 5e70562ab9..8dbf1ea5c8 100644 --- a/docs/zephyr/zephyr_gpio.md +++ b/docs/zephyr/zephyr_gpio.md @@ -241,18 +241,18 @@ For example on the Volteer reference board: Low voltage pins configuration depends on the specific chip family. -For Nuvoton, this is done using a [nuvoton,npcx-lvolctrl-def] devicetree node, -with a `lvol-io-pads` property listing all the pins that have to be configured -for low-voltage operation. For example: +For Nuvoton, this is done using the `GPIO_VOLTAGE_1P8` flag in the `named-gpios` +child node. For example ``` -def-lvol-io-list { - compatible = "nuvoton,npcx-lvolctrl-def"; - lvol-io-pads = < - &lvol_iob3 /* EC_I2C_SENSOR_SCL */ - &lvol_iob2 /* EC_I2C_SENSOR_SDA */ - >; -}; +named-gpios { + compatible = "named-gpios"; + ... + ec-i2c-sensor-scl { + gpios = <&gpiob 5 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>; + }; + ... +} ``` For ITE, this is done using the `GPIO_VOLTAGE_1P8` flag in the `named-gpios` |