Tyler Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74298 )
Change subject: [Test] Add GTCH7503 and seperate touchscreen based on SSFC. ......................................................................
[Test] Add GTCH7503 and seperate touchscreen based on SSFC.
Bit 38-41 for TS_SOURCE: (1) TS_UNPROVISIONED --> 0 (2) TS_ELAN_9004 --> 1 (3) TS_GTCH7502 --> 2 (4) TS_GTCH7503 --> 3
Change-Id: I636f21be39f26a617653e134129a11479e801ea2 --- M src/mainboard/google/brya/Kconfig.name M src/mainboard/google/brya/variants/craask/overridetree.cb 2 files changed, 47 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/74298/1
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index fb8bb5e..0e6009f 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -237,6 +237,7 @@ select DRIVERS_INTEL_MIPI_CAMERA select HAVE_WWAN_POWER_SEQUENCE select CHROMEOS_WIFI_SAR if CHROMEOS + select EC_GOOGLE_CHROMEEC_INCLUDE_SSFC_IN_FW_CONFIG
config BOARD_GOOGLE_OSIRIS bool "-> Osiris" diff --git a/src/mainboard/google/brya/variants/craask/overridetree.cb b/src/mainboard/google/brya/variants/craask/overridetree.cb index 5f12558..b0b81cf 100644 --- a/src/mainboard/google/brya/variants/craask/overridetree.cb +++ b/src/mainboard/google/brya/variants/craask/overridetree.cb @@ -31,6 +31,12 @@ option CODEC_ALC5682I_VS 0 option CODEC_NAU8825 1 end + field TS_SOURCE 38 41 + option TS_UNPROVISIONED 0 + option TS_ELAN_9004 1 + option TS_GTCH7502 2 + option TS_GTCH7503 3 + end end
chip soc/intel/alderlake @@ -322,7 +328,27 @@ register "generic.enable_delay_ms" = "12" register "generic.has_power_resource" = "1" register "hid_desc_reg_offset" = "0x01" - device i2c 0x40 on end + device i2c 0x40 on + probe TS_SOURCE TS_UNPROVISIONED + probe TS_SOURCE TS_GTCH7502 + end + end + chip drivers/i2c/hid + register "generic.hid" = ""GTCH7503"" + register "generic.desc" = ""G2 Touchscreen"" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C7_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_C1)" + register "generic.reset_delay_ms" = "120" + register "generic.reset_off_delay_ms" = "3" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_C0)" + register "generic.enable_delay_ms" = "12" + register "generic.has_power_resource" = "1" + register "generic.disable_gpio_export_in_crs" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x40 on + probe TS_SOURCE TS_GTCH7503 + end end chip drivers/generic/gpio_keys register "name" = ""PENH"" @@ -353,7 +379,10 @@ register "generic.enable_delay_ms" = "1" register "generic.has_power_resource" = "1" register "hid_desc_reg_offset" = "0x01" - device i2c 10 on end + device i2c 10 on + probe TS_SOURCE TS_UNPROVISIONED + probe TS_SOURCE TS_ELAN_9004 + end end end device ref i2c2 on