diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-25 11:33:35 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-29 20:34:41 +0000 |
commit | 42f7e597a437cbc83b99e7a8d47d9f1a3da1b1f2 (patch) | |
tree | ad88ca8d8adae171b28e3ac3f7f4362332db44d4 | |
parent | 96c86cecbf1721e0166cb2639fdb252f047c6ad1 (diff) | |
download | chrome-ec-42f7e597a437cbc83b99e7a8d47d9f1a3da1b1f2.tar.gz |
zephyr: volteer: move gpio device-tree to DTS overlay
Move device-tree GPIO definitions (named-gpios and nuvoton low voltage
selection list) to a Zephyr DTS overlay. These are board-specific and
shouldn't be shared with delbin.
BUG=b:183643832
BRANCH=none
TEST=compile zephyr for volteer
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I258aa024a6d32598326490be1f0d2a5e7000f72a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787345
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/projects/volteer/boards/arm/volteer/volteer.dts | 302 | ||||
-rw-r--r-- | zephyr/projects/volteer/volteer/gpio.dts | 308 | ||||
-rw-r--r-- | zephyr/projects/volteer/volteer/zmake.yaml | 2 |
3 files changed, 310 insertions, 302 deletions
diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts index cfe8de58b7..740d4ce269 100644 --- a/zephyr/projects/volteer/boards/arm/volteer/volteer.dts +++ b/zephyr/projects/volteer/boards/arm/volteer/volteer.dts @@ -187,308 +187,6 @@ }; }; - named-gpios { - compatible = "named-gpios"; - - ec_lid_open { - gpios = <&gpiod 2 GPIO_INPUT>; - label = "EC_LID_OPEN"; - }; - ec_wp_l { - gpios = <&gpioa 1 GPIO_INPUT>; - label = "EC_WP_L"; - }; - h1_ec_pwr_btn_odl { - gpios = <&gpio0 1 GPIO_INPUT>; - label = "H1_EC_PWR_BTN_ODL"; - }; - acok_od { - gpios = <&gpio0 0 GPIO_INPUT>; - label = "ACOK_OD"; - }; - slp_s0_l { - gpios = <&gpiod 5 GPIO_INPUT>; - label = "SLP_S0_L"; - }; - slp_s3_l { - gpios = <&gpioa 5 GPIO_INPUT>; - label = "SLP_S3_L"; - }; - slp_sus_l { - gpios = <&gpiod 7 GPIO_INPUT>; - label = "SLP_SUS_L"; - }; - pg_ec_rsmrst_odl { - gpios = <&gpioe 2 GPIO_INPUT>; - label = "PG_EC_RSMRST_ODL"; - }; - pg_ec_dsw_pwrok { - gpios = <&gpioc 7 GPIO_INPUT>; - label = "PG_EC_DSW_PWROK"; - }; - pg_ec_all_sys_pwrgd { - gpios = <&gpiof 4 GPIO_INPUT>; - label = "PG_EC_ALL_SYS_PWRGD"; - }; - gpio_ec_imu_int_l: ec_imu_int_l { - gpios = <&gpio5 6 GPIO_INPUT>; - label = "EC_IMU_INT_L"; - }; - gpio_ec_als_rgb_int_l: ec_als_rgb_int_l { - gpios = <&gpiod 4 GPIO_INPUT>; - label = "EC_ALS_RGB_INT_L"; - }; - tablet_mode_l { - gpios = <&gpio9 5 GPIO_INPUT>; - label = "TABLET_MODE_L"; - }; - ec_accel_int { - gpios = <&gpio8 1 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_ACCEL_INT"; - }; - usb_c0_tcpc_int_odl { - gpios = <&gpioe 0 GPIO_INPUT>; - label = "USB_C0_TCPC_INT_ODL"; - }; - usb_c1_tcpc_int_odl { - gpios = <&gpioa 2 GPIO_INPUT>; - label = "USB_C1_TCPC_INT_ODL"; - }; - usb_c0_ppc_int_odl { - gpios = <&gpio6 2 GPIO_INPUT>; - label = "USB_C0_PPC_INT_ODL"; - }; - usb_c1_ppc_int_odl { - gpios = <&gpiof 5 GPIO_INPUT>; - label = "USB_C1_PPC_INT_ODL"; - }; - usb_c0_bc12_int_odl { - gpios = <&gpioe 4 GPIO_INPUT>; - label = "USB_C0_BC12_INT_ODL"; - }; - gpio_usb_c1_mix_int_odl: usb_c1_mix_int_odl { - #gpio-cells = <0>; - gpios = <&gpio0 3 GPIO_INPUT>; - label = "USB_C1_MIX_INT_ODL"; - }; - usb_c1_frs_en { - gpios = <&gpio9 4 GPIO_OUT_LOW>; - label = "USB_C1_FRS_EN"; - }; - ec_voldn_btn_odl { - gpios = <&gpio9 3 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_VOLDN_BTN_ODL"; - }; - ec_volup_btn_odl { - gpios = <&gpio9 7 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_VOLUP_BTN_ODL"; - }; - en_pp3300_a { - gpios = <&gpioa 3 GPIO_OUT_LOW>; - label = "EN_PP3300_A"; - }; - en_pp5000_a { - gpios = <&gpioa 4 GPIO_OUT_LOW>; - label = "EN_PP5000_A"; - }; - en_ppvar_vccin { - gpios = <&gpio4 3 GPIO_OUT_LOW>; - label = "EN_PPVAR_VCCIN"; - }; - ec_pch_dsw_pwrok { - gpios = <&gpioc 0 GPIO_OUT_LOW>; - label = "EC_PCH_DSW_PWROK"; - }; - ec_rst_odl { - gpios = <&gpio0 2 GPIO_INPUT>; - label = "EC_RST_ODL"; - }; - ec_pch_sys_pwrok { - gpios = <&gpio3 7 GPIO_OUT_LOW>; - label = "EC_PCH_SYS_PWROK"; - }; - ec_pch_rsmrst_odl { - gpios = <&gpioa 6 GPIO_ODR_LOW>; - label = "EC_PCH_RSMRST_ODL"; - }; - ec_pch_pwr_btn_odl { - gpios = <&gpioc 1 GPIO_ODR_HIGH>; - label = "EC_PCH_PWR_BTN_ODL"; - }; - ec_pch_rtcrst { - gpios = <&gpio7 6 GPIO_OUT_LOW>; - label = "EC_PCH_RTCRST"; - }; - ec_pch_wake_odl { - gpios = <&gpio7 4 GPIO_ODR_HIGH>; - label = "EC_PCH_WAKE_ODL"; - }; - ec_entering_rw { - gpios = <&gpioe 3 GPIO_OUT_LOW>; - label = "EC_ENTERING_RW"; - }; - ec_prochot_odl { - gpios = <&gpio6 3 GPIO_ODR_HIGH>; - label = "EC_PROCHOT_ODL"; - }; - ec_prochot_in_l { - gpios = <&gpiof 0 GPIO_INPUT>; - label = "EC_PROCHOT_IN_L"; - }; - sys_rst_odl { - gpios = <&gpioc 5 GPIO_ODR_HIGH>; - label = "SYS_RST_ODL"; - }; - ec_pch_int_odl { - gpios = <&gpiob 0 GPIO_ODR_HIGH>; - label = "EC_PCH_INT_ODL"; - }; - en_pp5000_usba { - gpios = <&gpioc 6 GPIO_OUT_LOW>; - label = "EN_PP5000_USBA"; - }; - usb_a_low_pwr_od { - gpios = <&gpio6 6 GPIO_ODR_LOW>; - label = "USB_A_LOW_PWR_OD"; - }; - gpio_usb_c1_rt_rst_odl_boardid_0: usb_c1_rt_rst_odl_boardid_0 { - #gpio-cells = <0>; - gpios = <&gpio3 2 GPIO_ODR_LOW>; - label = "USB_C1_RT_RST_ODL_BOARDID_0"; - }; - gpio_usb_c1_rt_rst_odl: usb_c1_rt_rst_odl { - #gpio-cells = <0>; - gpios = <&gpio8 3 GPIO_ODR_LOW>; - label = "USB_C1_RT_RST_ODL"; - }; - usb_c0_oc_odl { - gpios = <&gpiob 1 GPIO_ODR_HIGH>; - label = "USB_C0_OC_ODL"; - }; - usb_c1_oc_odl { - gpios = <&gpio5 0 GPIO_ODR_HIGH>; - label = "USB_C1_OC_ODL"; - }; - usb_c1_rt_int_odl { - gpios = <&gpiof 3 GPIO_INPUT>; - label = "USB_C1_RT_INT_ODL"; - }; - ec_h1_packet_mode { - gpios = <&gpio7 5 GPIO_OUT_LOW>; - label = "EC_H1_PACKET_MODE"; - }; - m2_ssd_pln { - gpios = <&gpioa 0 GPIO_ODR_HIGH>; - label = "M2_SSD_PLN"; - }; - m2_ssd_pla { - gpios = <&gpio7 0 GPIO_INPUT>; - label = "M2_SSD_PLA"; - }; - ccd_mode_odl { - gpios = <&gpioe 5 GPIO_INPUT>; - label = "CCD_MODE_ODL"; - }; - ec_slp_s0ix { - gpios = <&gpio7 2 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_SLP_S0IX"; - }; - gpio_unused_gpio41: unused_gpio41 { - #gpio-cells = <0>; - gpios = <&gpio4 1 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO41"; - }; - unused_gpiof2 { - gpios = <&gpiof 2 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIOF2"; - }; - unused_gpio96 { - gpios = <&gpio9 6 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO96"; - }; - unused_gpio34 { - gpios = <&gpio3 4 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO34"; - }; - ec_kb_bl_en { - gpios = <&gpio8 6 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_KB_BL_EN"; - }; - ec_espi_alert_l { - gpios = <&gpio5 7 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_ESPI_ALERT_L"; - }; - ec_edp_bl_en { - gpios = <&gpiod 3 GPIO_OUT_HIGH>; - label = "EC_EDP_BL_EN"; - }; - ec_i2c0_sensor_scl { - gpios = <&gpiob 5 GPIO_INPUT>; - label = "EC_I2C0_SENSOR_SCL"; - }; - ec_i2c0_sensor_sda { - gpios = <&gpiob 4 GPIO_INPUT>; - label = "EC_I2C0_SENSOR_SDA"; - }; - ec_i2c1_usb_c0_scl { - gpios = <&gpio9 0 GPIO_INPUT>; - label = "EC_I2C1_USB_C0_SCL"; - }; - ec_i2c1_usb_c0_sda { - gpios = <&gpio8 7 GPIO_INPUT>; - label = "EC_I2C1_USB_C0_SDA"; - }; - ec_i2c2_usb_c1_scl { - gpios = <&gpio9 2 GPIO_INPUT>; - label = "EC_I2C2_USB_C1_SCL"; - }; - ec_i2c2_usb_c1_sda { - gpios = <&gpio9 1 GPIO_INPUT>; - label = "EC_I2C2_USB_C1_SDA"; - }; - ec_i2c3_usb_1_mix_scl { - gpios = <&gpiod 1 GPIO_INPUT>; - label = "EC_I2C3_USB_1_MIX_SCL"; - }; - ec_i2c3_usb_1_mix_sda { - gpios = <&gpiod 0 GPIO_INPUT>; - label = "EC_I2C3_USB_1_MIX_SDA"; - }; - ec_i2c5_battery_scl { - gpios = <&gpio3 3 GPIO_INPUT>; - label = "EC_I2C5_BATTERY_SCL"; - }; - ec_i2c5_battery_sda { - gpios = <&gpio3 6 GPIO_INPUT>; - label = "EC_I2C5_BATTERY_SDA"; - }; - ec_i2c7_eeprom_pwr_scl_r { - gpios = <&gpiob 3 GPIO_INPUT>; - label = "EC_I2C7_EEPROM_PWR_SCL_R"; - }; - ec_i2c7_eeprom_pwr_sda_r { - gpios = <&gpiob 2 GPIO_INPUT>; - label = "EC_I2C7_EEPROM_PWR_SDA_R"; - }; - ec_batt_pres_odl { - gpios = <&gpioe 1 GPIO_INPUT>; - label = "EC_BATT_PRES_ODL"; - }; - gpio_en_pp5000_fan: en_pp5000_fan { - gpios = <&gpio6 1 GPIO_OUT_LOW>; - label = "EN_PP5000_FAN"; - }; - ec_kso_02_inv { - gpios = <&gpio1 7 GPIO_OUT_LOW>; - label = "EC_KSO_02_INV"; - }; - }; - - def_lvol_io_list { - compatible = "nuvoton,npcx-lvolctrl-def"; - lvol_io_pads = <&lvol_iob4 &lvol_iob5>; /* I2C_SDA0 & SCL0 */ - }; - soc { cros_kb_raw: cros-kb-raw@400a3000 { compatible = "nuvoton,npcx-cros-kb-raw"; diff --git a/zephyr/projects/volteer/volteer/gpio.dts b/zephyr/projects/volteer/volteer/gpio.dts new file mode 100644 index 0000000000..cd4e780253 --- /dev/null +++ b/zephyr/projects/volteer/volteer/gpio.dts @@ -0,0 +1,308 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/ { + named-gpios { + compatible = "named-gpios"; + + ec_lid_open { + gpios = <&gpiod 2 GPIO_INPUT>; + label = "EC_LID_OPEN"; + }; + ec_wp_l { + gpios = <&gpioa 1 GPIO_INPUT>; + label = "EC_WP_L"; + }; + h1_ec_pwr_btn_odl { + gpios = <&gpio0 1 GPIO_INPUT>; + label = "H1_EC_PWR_BTN_ODL"; + }; + acok_od { + gpios = <&gpio0 0 GPIO_INPUT>; + label = "ACOK_OD"; + }; + slp_s0_l { + gpios = <&gpiod 5 GPIO_INPUT>; + label = "SLP_S0_L"; + }; + slp_s3_l { + gpios = <&gpioa 5 GPIO_INPUT>; + label = "SLP_S3_L"; + }; + slp_sus_l { + gpios = <&gpiod 7 GPIO_INPUT>; + label = "SLP_SUS_L"; + }; + pg_ec_rsmrst_odl { + gpios = <&gpioe 2 GPIO_INPUT>; + label = "PG_EC_RSMRST_ODL"; + }; + pg_ec_dsw_pwrok { + gpios = <&gpioc 7 GPIO_INPUT>; + label = "PG_EC_DSW_PWROK"; + }; + pg_ec_all_sys_pwrgd { + gpios = <&gpiof 4 GPIO_INPUT>; + label = "PG_EC_ALL_SYS_PWRGD"; + }; + gpio_ec_imu_int_l: ec_imu_int_l { + gpios = <&gpio5 6 GPIO_INPUT>; + label = "EC_IMU_INT_L"; + }; + gpio_ec_als_rgb_int_l: ec_als_rgb_int_l { + gpios = <&gpiod 4 GPIO_INPUT>; + label = "EC_ALS_RGB_INT_L"; + }; + tablet_mode_l { + gpios = <&gpio9 5 GPIO_INPUT>; + label = "TABLET_MODE_L"; + }; + ec_accel_int { + gpios = <&gpio8 1 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_ACCEL_INT"; + }; + usb_c0_tcpc_int_odl { + gpios = <&gpioe 0 GPIO_INPUT>; + label = "USB_C0_TCPC_INT_ODL"; + }; + usb_c1_tcpc_int_odl { + gpios = <&gpioa 2 GPIO_INPUT>; + label = "USB_C1_TCPC_INT_ODL"; + }; + usb_c0_ppc_int_odl { + gpios = <&gpio6 2 GPIO_INPUT>; + label = "USB_C0_PPC_INT_ODL"; + }; + usb_c1_ppc_int_odl { + gpios = <&gpiof 5 GPIO_INPUT>; + label = "USB_C1_PPC_INT_ODL"; + }; + usb_c0_bc12_int_odl { + gpios = <&gpioe 4 GPIO_INPUT>; + label = "USB_C0_BC12_INT_ODL"; + }; + gpio_usb_c1_mix_int_odl: usb_c1_mix_int_odl { + #gpio-cells = <0>; + gpios = <&gpio0 3 GPIO_INPUT>; + label = "USB_C1_MIX_INT_ODL"; + }; + usb_c1_frs_en { + gpios = <&gpio9 4 GPIO_OUT_LOW>; + label = "USB_C1_FRS_EN"; + }; + ec_voldn_btn_odl { + gpios = <&gpio9 3 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_VOLDN_BTN_ODL"; + }; + ec_volup_btn_odl { + gpios = <&gpio9 7 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_VOLUP_BTN_ODL"; + }; + en_pp3300_a { + gpios = <&gpioa 3 GPIO_OUT_LOW>; + label = "EN_PP3300_A"; + }; + en_pp5000_a { + gpios = <&gpioa 4 GPIO_OUT_LOW>; + label = "EN_PP5000_A"; + }; + en_ppvar_vccin { + gpios = <&gpio4 3 GPIO_OUT_LOW>; + label = "EN_PPVAR_VCCIN"; + }; + ec_pch_dsw_pwrok { + gpios = <&gpioc 0 GPIO_OUT_LOW>; + label = "EC_PCH_DSW_PWROK"; + }; + ec_rst_odl { + gpios = <&gpio0 2 GPIO_INPUT>; + label = "EC_RST_ODL"; + }; + ec_pch_sys_pwrok { + gpios = <&gpio3 7 GPIO_OUT_LOW>; + label = "EC_PCH_SYS_PWROK"; + }; + ec_pch_rsmrst_odl { + gpios = <&gpioa 6 GPIO_ODR_LOW>; + label = "EC_PCH_RSMRST_ODL"; + }; + ec_pch_pwr_btn_odl { + gpios = <&gpioc 1 GPIO_ODR_HIGH>; + label = "EC_PCH_PWR_BTN_ODL"; + }; + ec_pch_rtcrst { + gpios = <&gpio7 6 GPIO_OUT_LOW>; + label = "EC_PCH_RTCRST"; + }; + ec_pch_wake_odl { + gpios = <&gpio7 4 GPIO_ODR_HIGH>; + label = "EC_PCH_WAKE_ODL"; + }; + ec_entering_rw { + gpios = <&gpioe 3 GPIO_OUT_LOW>; + label = "EC_ENTERING_RW"; + }; + ec_prochot_odl { + gpios = <&gpio6 3 GPIO_ODR_HIGH>; + label = "EC_PROCHOT_ODL"; + }; + ec_prochot_in_l { + gpios = <&gpiof 0 GPIO_INPUT>; + label = "EC_PROCHOT_IN_L"; + }; + sys_rst_odl { + gpios = <&gpioc 5 GPIO_ODR_HIGH>; + label = "SYS_RST_ODL"; + }; + ec_pch_int_odl { + gpios = <&gpiob 0 GPIO_ODR_HIGH>; + label = "EC_PCH_INT_ODL"; + }; + en_pp5000_usba { + gpios = <&gpioc 6 GPIO_OUT_LOW>; + label = "EN_PP5000_USBA"; + }; + usb_a_low_pwr_od { + gpios = <&gpio6 6 GPIO_ODR_LOW>; + label = "USB_A_LOW_PWR_OD"; + }; + gpio_usb_c1_rt_rst_odl_boardid_0: usb_c1_rt_rst_odl_boardid_0 { + #gpio-cells = <0>; + gpios = <&gpio3 2 GPIO_ODR_LOW>; + label = "USB_C1_RT_RST_ODL_BOARDID_0"; + }; + gpio_usb_c1_rt_rst_odl: usb_c1_rt_rst_odl { + #gpio-cells = <0>; + gpios = <&gpio8 3 GPIO_ODR_LOW>; + label = "USB_C1_RT_RST_ODL"; + }; + usb_c0_oc_odl { + gpios = <&gpiob 1 GPIO_ODR_HIGH>; + label = "USB_C0_OC_ODL"; + }; + usb_c1_oc_odl { + gpios = <&gpio5 0 GPIO_ODR_HIGH>; + label = "USB_C1_OC_ODL"; + }; + usb_c1_rt_int_odl { + gpios = <&gpiof 3 GPIO_INPUT>; + label = "USB_C1_RT_INT_ODL"; + }; + ec_h1_packet_mode { + gpios = <&gpio7 5 GPIO_OUT_LOW>; + label = "EC_H1_PACKET_MODE"; + }; + m2_ssd_pln { + gpios = <&gpioa 0 GPIO_ODR_HIGH>; + label = "M2_SSD_PLN"; + }; + m2_ssd_pla { + gpios = <&gpio7 0 GPIO_INPUT>; + label = "M2_SSD_PLA"; + }; + ccd_mode_odl { + gpios = <&gpioe 5 GPIO_INPUT>; + label = "CCD_MODE_ODL"; + }; + ec_slp_s0ix { + gpios = <&gpio7 2 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_SLP_S0IX"; + }; + gpio_unused_gpio41: unused_gpio41 { + #gpio-cells = <0>; + gpios = <&gpio4 1 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "UNUSED_GPIO41"; + }; + unused_gpiof2 { + gpios = <&gpiof 2 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "UNUSED_GPIOF2"; + }; + unused_gpio96 { + gpios = <&gpio9 6 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "UNUSED_GPIO96"; + }; + unused_gpio34 { + gpios = <&gpio3 4 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "UNUSED_GPIO34"; + }; + ec_kb_bl_en { + gpios = <&gpio8 6 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_KB_BL_EN"; + }; + ec_espi_alert_l { + gpios = <&gpio5 7 (GPIO_INPUT | GPIO_PULL_UP)>; + label = "EC_ESPI_ALERT_L"; + }; + ec_edp_bl_en { + gpios = <&gpiod 3 GPIO_OUT_HIGH>; + label = "EC_EDP_BL_EN"; + }; + ec_i2c0_sensor_scl { + gpios = <&gpiob 5 GPIO_INPUT>; + label = "EC_I2C0_SENSOR_SCL"; + }; + ec_i2c0_sensor_sda { + gpios = <&gpiob 4 GPIO_INPUT>; + label = "EC_I2C0_SENSOR_SDA"; + }; + ec_i2c1_usb_c0_scl { + gpios = <&gpio9 0 GPIO_INPUT>; + label = "EC_I2C1_USB_C0_SCL"; + }; + ec_i2c1_usb_c0_sda { + gpios = <&gpio8 7 GPIO_INPUT>; + label = "EC_I2C1_USB_C0_SDA"; + }; + ec_i2c2_usb_c1_scl { + gpios = <&gpio9 2 GPIO_INPUT>; + label = "EC_I2C2_USB_C1_SCL"; + }; + ec_i2c2_usb_c1_sda { + gpios = <&gpio9 1 GPIO_INPUT>; + label = "EC_I2C2_USB_C1_SDA"; + }; + ec_i2c3_usb_1_mix_scl { + gpios = <&gpiod 1 GPIO_INPUT>; + label = "EC_I2C3_USB_1_MIX_SCL"; + }; + ec_i2c3_usb_1_mix_sda { + gpios = <&gpiod 0 GPIO_INPUT>; + label = "EC_I2C3_USB_1_MIX_SDA"; + }; + ec_i2c5_battery_scl { + gpios = <&gpio3 3 GPIO_INPUT>; + label = "EC_I2C5_BATTERY_SCL"; + }; + ec_i2c5_battery_sda { + gpios = <&gpio3 6 GPIO_INPUT>; + label = "EC_I2C5_BATTERY_SDA"; + }; + ec_i2c7_eeprom_pwr_scl_r { + gpios = <&gpiob 3 GPIO_INPUT>; + label = "EC_I2C7_EEPROM_PWR_SCL_R"; + }; + ec_i2c7_eeprom_pwr_sda_r { + gpios = <&gpiob 2 GPIO_INPUT>; + label = "EC_I2C7_EEPROM_PWR_SDA_R"; + }; + ec_batt_pres_odl { + gpios = <&gpioe 1 GPIO_INPUT>; + label = "EC_BATT_PRES_ODL"; + }; + gpio_en_pp5000_fan: en_pp5000_fan { + gpios = <&gpio6 1 GPIO_OUT_LOW>; + label = "EN_PP5000_FAN"; + }; + ec_kso_02_inv { + gpios = <&gpio1 7 GPIO_OUT_LOW>; + label = "EC_KSO_02_INV"; + }; + }; + + def_lvol_io_list { + compatible = "nuvoton,npcx-lvolctrl-def"; + lvol_io_pads = <&lvol_iob4 &lvol_iob5>; /* I2C_SDA0 & SCL0 */ + }; +}; diff --git a/zephyr/projects/volteer/volteer/zmake.yaml b/zephyr/projects/volteer/volteer/zmake.yaml index 2c4774ed4a..636495e816 100644 --- a/zephyr/projects/volteer/volteer/zmake.yaml +++ b/zephyr/projects/volteer/volteer/zmake.yaml @@ -3,6 +3,8 @@ # found in the LICENSE file. board: volteer +dts-overlays: + - gpio.dts supported-zephyr-versions: - v2.5 toolchain: coreboot-sdk |