UPSTREAM: driver: gpio: add 1p8v level detection support in npcx series.
Part of GPIO pads in npcx series support low-voltage (1.8V) level
detection. In order to introduce this feature, this CL adds a new
NPCX-specific controller property, lvol_io_pads, in devicetree file.
For example, here is devicetree fragment which turn on low-voltage
support of i2c1_0 port.
/ {
def_lvol_io_list {
compatible = "nuvoton,npcx-lvolctrl-def";
lvol_io_pads = <&lvol_io90 /* I2C1_SCL0 1.8V support */
&lvol_io87>; /* I2C1_SDA0 1,8V support */
};
};
Then these pads will turn on 1.8V level detection during initialization.
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
(cherry picked from commit b7ec2cd5de01c7ef9154bef99658aed847269bde
https://github.com/zephyrproject-rtos/zephyr.git master)
BUG=b:171580796, b:179516696
TEST=zmake testall
TEST=get value by
`i2c read_byte I2C_0_PORT0 0x68`
`i2c read_byte I2C_0_PORT0 0x39` on volteer
Cq-Depend: chromium:2680915
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: Icc951f2b895bc1ccd0d93dc69208de8e0c7377f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/2682153
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
10 files changed