FROMPULL: gpio: Add GPIO voltage overrides
Add GPIO_flag values for GPIO DTS creation that
allows for pins that do not use the default
voltage. IT8xxx2 supports setting voltage
levels for each pin. The default for this SoC
is 3P3 but they can be set individually to
1P8.
This will be used, for example:
i2c_c_scl {
gpios = <&gpioc 1 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
enum-name = "GPIO_I2C_C_SCL";
label = "I2C_C_SCL";
};
Signed-off-by: Denis Brockus <dbrockus@google.com>
(cherry picked from commit 8baf3d94de861a51c53fe76a65943ecce498a392 https://github.com/zephyrproject-rtos/zephyr/pull/34783)
BUG=b:186778858
TEST=none
Change-Id: I2d48544d49c269e000948a2720342eed722bfbed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/2888229
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
1 file changed