summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/projects/guybrush/gpio.dts3
-rw-r--r--zephyr/projects/guybrush/include/gpio_map.h4
-rw-r--r--zephyr/projects/guybrush/prj.conf6
3 files changed, 10 insertions, 3 deletions
diff --git a/zephyr/projects/guybrush/gpio.dts b/zephyr/projects/guybrush/gpio.dts
index 430d4c3755..221b5f7182 100644
--- a/zephyr/projects/guybrush/gpio.dts
+++ b/zephyr/projects/guybrush/gpio.dts
@@ -196,10 +196,12 @@
voldn_btn_odl {
gpios = <&gpioa 7 (GPIO_INPUT | GPIO_PULL_UP)>;
label = "VOLDN_BTN_ODL";
+ enum-name = "GPIO_VOLUME_DOWN_L";
};
volup_btn_odl {
gpios = <&gpio9 3 (GPIO_INPUT | GPIO_PULL_UP)>;
label = "VOLUP_BTN_ODL";
+ enum-name = "GPIO_VOLUME_UP_L";
};
ec_batt_pres_odl {
gpios = <&gpio9 4 GPIO_INPUT>;
@@ -280,6 +282,7 @@
ec_kso_02_inv {
gpios = <&gpio1 7 GPIO_OUT_LOW>;
label = "EC_KSO_02_INV";
+ enum-name = "GPIO_KBD_KSO2";
};
ec_espi_rst_l {
gpios = <&gpio5 4 GPIO_PULL_UP>;
diff --git a/zephyr/projects/guybrush/include/gpio_map.h b/zephyr/projects/guybrush/include/gpio_map.h
index 78fbaf357e..5af244bead 100644
--- a/zephyr/projects/guybrush/include/gpio_map.h
+++ b/zephyr/projects/guybrush/include/gpio_map.h
@@ -56,6 +56,8 @@ enum power_signal {
GPIO_INT(GPIO_PG_GROUPC_S0_OD, GPIO_INT_EDGE_BOTH, \
baseboard_en_pwr_pcore_s0) \
GPIO_INT(GPIO_PG_LPDDR4X_S3_OD, GPIO_INT_EDGE_BOTH, \
- baseboard_en_pwr_pcore_s0)
+ baseboard_en_pwr_pcore_s0) \
+ GPIO_INT(GPIO_VOLUME_UP_L, GPIO_INT_EDGE_BOTH, button_interrupt) \
+ GPIO_INT(GPIO_VOLUME_DOWN_L, GPIO_INT_EDGE_BOTH, button_interrupt)
#endif /* __ZEPHYR_GPIO_MAP_H */
diff --git a/zephyr/projects/guybrush/prj.conf b/zephyr/projects/guybrush/prj.conf
index 73ce8ba715..a9e3ce60cd 100644
--- a/zephyr/projects/guybrush/prj.conf
+++ b/zephyr/projects/guybrush/prj.conf
@@ -34,8 +34,10 @@ CONFIG_PLATFORM_EC_SWITCH=n
# Lid switch
CONFIG_PLATFORM_EC_LID_SWITCH=y
-CONFIG_PLATFORM_EC_KEYBOARD=n
-CONFIG_CROS_KB_RAW_NPCX=n
+# Keyboard
+CONFIG_PLATFORM_EC_KEYBOARD=y
+CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED=y
+CONFIG_PLATFORM_EC_VOLUME_BUTTONS=y
# This is not yet supported
CONFIG_PLATFORM_EC_ADC=n