From d6ad168804224a29d03653c6480d46288d4dfc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Barna=C5=9B?= Date: Wed, 11 Aug 2021 15:11:46 +0200 Subject: zephyr: Add switchcap for herobrine_npcx9 to device tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ś Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3089119 Reviewed-by: Keith Short --- zephyr/projects/herobrine/herobrine_npcx9/gpio.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zephyr/projects/herobrine/herobrine_npcx9/gpio.dts') 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"; -- cgit v1.2.1