summaryrefslogtreecommitdiff
path: root/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-08-11 15:11:46 +0200
committerCommit Bot <commit-bot@chromium.org>2021-08-16 13:26:17 +0000
commitd6ad168804224a29d03653c6480d46288d4dfc23 (patch)
tree36ebaeb88251f9534dea778fb346a24548c69af7 /zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
parent7c684a81a49c03cb5c8688c8607e883f7604dad8 (diff)
downloadchrome-ec-d6ad168804224a29d03653c6480d46288d4dfc23.tar.gz
zephyr: Add switchcap for herobrine_npcx9 to device tree
This patch removes custom switchcap logic and uses device tree implementation instead. BRANCH=main BUG=b:194211207 TEST=Compile and flash Zephyr's EC for herobrine_npcx9 Powering on and off should work correctly Change-Id: Ice51e097c2126e78c6dbfb933a10724cf0374f67 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3089119 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/herobrine/herobrine_npcx9/gpio.dts')
-rw-r--r--zephyr/projects/herobrine/herobrine_npcx9/gpio.dts4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
index fb8c0d8778..aa023e9110 100644
--- a/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
+++ b/zephyr/projects/herobrine/herobrine_npcx9/gpio.dts
@@ -151,7 +151,7 @@
enum-name = "GPIO_EC_INT_L";
label = "AP_EC_INT_L";
};
- switchcap_on {
+ gpio_switchcap_on: switchcap_on {
gpios = <&gpiod 5 GPIO_OUT_LOW>;
enum-name = "GPIO_SWITCHCAP_ON";
label = "SWITCHCAP_ON";
@@ -272,7 +272,7 @@
enum-name = "GPIO_SKU_ID2";
label = "SKU_ID2";
};
- src_vph_pwr_pg {
+ gpio_switchcap_pg: src_vph_pwr_pg {
gpios = <&gpioe 2 (GPIO_INPUT | GPIO_PULL_DOWN)>;
enum-name = "GPIO_SWITCHCAP_PG";
label = "SRC_VPH_PWR_PG";