summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2022-08-05 16:47:43 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-08 01:59:31 +0000
commit1de7776337965b5174215579fcc12bc40cea2826 (patch)
tree1af62d3a4f571e58cbf1eafad2e979a442705398
parent44f4798c7e9dd46d404862cf248d273783cfb662 (diff)
downloadchrome-ec-1de7776337965b5174215579fcc12bc40cea2826.tar.gz
Craask: Setting few GPIOs to 1.8V
Few GPIO's which operate at 1.8v need to set GPIO_VOLTAGE_1P8. This improves in EC power consumption in S0ix mode. For b/228222441, there is no difference on hardware design of these GPIOs between Nivviks and Craask so Craask also need the change CL:3702877. BUG=none BRANCH=none TEST=Verified S0ix on nivviks Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ie41aebf5511ab7f72cc5ffedec5b47aa9a807f5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3813234 Reviewed-by: Andrew McRae <amcrae@google.com>
-rw-r--r--zephyr/projects/nissa/craask/generated.dts4
-rw-r--r--zephyr/projects/nissa/craask/overlay.dts6
2 files changed, 8 insertions, 2 deletions
diff --git a/zephyr/projects/nissa/craask/generated.dts b/zephyr/projects/nissa/craask/generated.dts
index 35df805472..a96e6c5872 100644
--- a/zephyr/projects/nissa/craask/generated.dts
+++ b/zephyr/projects/nissa/craask/generated.dts
@@ -188,10 +188,10 @@
gpios = <&gpio0 1 GPIO_INPUT_PULL_UP>;
};
gpio_vccin_aux_vid0: vccin_aux_vid0 {
- gpios = <&gpio9 2 GPIO_INPUT>;
+ gpios = <&gpio9 2 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
};
gpio_vccin_aux_vid1: vccin_aux_vid1 {
- gpios = <&gpioe 3 GPIO_INPUT>;
+ gpios = <&gpioe 3 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
};
gpio_voldn_btn_odl: voldn_btn_odl {
gpios = <&gpioa 2 GPIO_INPUT_PULL_UP>;
diff --git a/zephyr/projects/nissa/craask/overlay.dts b/zephyr/projects/nissa/craask/overlay.dts
index 180a2596a5..4ffbf2dc01 100644
--- a/zephyr/projects/nissa/craask/overlay.dts
+++ b/zephyr/projects/nissa/craask/overlay.dts
@@ -110,6 +110,12 @@
gpios = <&gpiof 5 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
no-auto-init;
};
+ ec-i2c-sensor-scl {
+ gpios = <&gpio9 0 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
+ };
+ ec-i2c-sensor-sda {
+ gpios = <&gpio8 7 (GPIO_INPUT | GPIO_VOLTAGE_1P8)>;
+ };
};
/*