ruby: Fix GPIO misconfiguration This fixes an assert in zephyr/include/zephyr/drivers/gpio.h. BUG=b:453515970 TEST=boots on ruby with asserts enabled Change-Id: I8cbe36714aaeb9e72fe58472a07d5001e17bee98 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/7732985 Auto-Submit: caveh jalali <caveh@chromium.org> Tested-by: caveh jalali <caveh@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
diff --git a/zephyr/program/fatcat/ruby/gpios.dtsi b/zephyr/program/fatcat/ruby/gpios.dtsi index 4d81530..a8548ac 100644 --- a/zephyr/program/fatcat/ruby/gpios.dtsi +++ b/zephyr/program/fatcat/ruby/gpios.dtsi
@@ -186,7 +186,7 @@ gpios = <&gpio5 0 GPIO_INPUT>; }; gpio_ec_forcepr_r_odl: ec_forcepr_r_odl { - gpios = <&gpio6 6 (GPIO_INPUT | GPIO_OPEN_DRAIN)>; + gpios = <&gpio6 6 (GPIO_INPUT)>; }; gpio_ec_soc_rec_switch_odl: ec_soc_rec_switch_odl { gpios = <&gpio9 4 (GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_ACTIVE_HIGH | GPIO_OUTPUT_INIT_LOW)>;
diff --git a/zephyr/program/fatcat/ruby/overlay.dtsi b/zephyr/program/fatcat/ruby/overlay.dtsi index 6f9eeed..8d930f9 100644 --- a/zephyr/program/fatcat/ruby/overlay.dtsi +++ b/zephyr/program/fatcat/ruby/overlay.dtsi
@@ -76,6 +76,5 @@ * after waking up automatically for better power consumption. */ &power_leakage_io { - leak-gpios = <&gpio5 7 (GPIO_ODR_HIGH | GPIO_ACTIVE_LOW | GPIO_VOLTAGE_1P8) - &gpio6 6 GPIO_OPEN_DRAIN>; + leak-gpios = <&gpio5 7 (GPIO_ODR_HIGH | GPIO_ACTIVE_LOW | GPIO_VOLTAGE_1P8)>; };