From 21ba201712719bf277e4f5a217aa182d2c472851 Mon Sep 17 00:00:00 2001 From: elmo_lan Date: Tue, 13 Sep 2022 22:38:46 +0800 Subject: magikarp: initial gpio initial board specific gpio.. BUG=b:243631595 BRANCH=none TEST=zmake build magikarp --clobber Signed-off-by: elmo_lan Change-Id: I3176ec0858cc983b45cfafd26b37f5a4b3c8012c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3892080 Reviewed-by: SamSP Liu Reviewed-by: Ting Shen --- zephyr/projects/corsola/gpio_magikarp.dts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zephyr/projects/corsola/gpio_magikarp.dts b/zephyr/projects/corsola/gpio_magikarp.dts index 6113718b0d..aeaeab2431 100644 --- a/zephyr/projects/corsola/gpio_magikarp.dts +++ b/zephyr/projects/corsola/gpio_magikarp.dts @@ -149,6 +149,10 @@ gpios = <&gpiod 4 GPIO_OUTPUT_LOW>; enum-name = "GPIO_PACKET_MODE_EN"; }; + ccd_mode_odl { + gpios = <&gpioc 4 GPIO_INPUT>; + enum-name = "GPIO_CCD_MODE_ODL"; + }; }; /* @@ -180,14 +184,14 @@ <&gpioe 1 GPIO_INPUT>, /* ec_pen_chg_dis_odl */ <&gpioh 3 GPIO_ODR_HIGH>, - /* ccd_mode_odl */ - <&gpioc 4 GPIO_INPUT>, /* unnamed nc pins */ <&gpioa 3 GPIO_INPUT_PULL_DOWN>, <&gpioa 6 GPIO_INPUT_PULL_DOWN>, <&gpioa 7 GPIO_INPUT_PULL_DOWN>, - <&gpiod 7 GPIO_INPUT_PULL_DOWN>, <&gpiof 1 GPIO_INPUT_PULL_DOWN>, + /* reserved for b:241345809 */ + <&gpiod 7 GPIO_OUTPUT_LOW>, + <&gpiog 2 GPIO_INPUT_PULL_DOWN>, <&gpioh 0 GPIO_INPUT_PULL_DOWN>, <&gpioh 6 GPIO_INPUT_PULL_DOWN>, <&gpioi 3 GPIO_INPUT_PULL_DOWN>, -- cgit v1.2.1