From 5c3c52914678e2c6876d36cf2487fd38db85e61c Mon Sep 17 00:00:00 2001 From: Rui Zhou Date: Thu, 1 Jun 2023 18:22:13 +0800 Subject: mb/google/rex/var/screebo: Add devicetree for support audio Add devicetree config for ALC1019_ALC5682I_I2S BUG=b:278169268 TEST=emerge-rex coreboot and verified on screebo Change-Id: I2814cc76aff43daf0353cfef41592591bbe3d213 Signed-off-by: Rui Zhou Reviewed-on: https://review.coreboot.org/c/coreboot/+/75575 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Simon Zhou Reviewed-by: Mac Chiang Reviewed-by: Subrata Banik --- src/mainboard/google/rex/Kconfig.name | 1 + .../google/rex/variants/screebo/overridetree.cb | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/rex/Kconfig.name b/src/mainboard/google/rex/Kconfig.name index 31b4cc6082..a4fa63abe3 100644 --- a/src/mainboard/google/rex/Kconfig.name +++ b/src/mainboard/google/rex/Kconfig.name @@ -12,6 +12,7 @@ config BOARD_GOOGLE_REX0 config BOARD_GOOGLE_SCREEBO bool "-> Screebo" select BOARD_GOOGLE_BASEBOARD_REX + select DRIVERS_GENERIC_ALC1015 config BOARD_GOOGLE_KARIS bool "-> Karis" diff --git a/src/mainboard/google/rex/variants/screebo/overridetree.cb b/src/mainboard/google/rex/variants/screebo/overridetree.cb index aa99a6b3f5..d66d7bd7eb 100644 --- a/src/mainboard/google/rex/variants/screebo/overridetree.cb +++ b/src/mainboard/google/rex/variants/screebo/overridetree.cb @@ -352,6 +352,22 @@ chip soc/intel/meteorlake device generic 0 on end end end + device ref i2c0 on + chip drivers/i2c/generic + register "hid" = ""RTL5682"" + register "name" = ""RT58"" + register "desc" = ""Headset Codec"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_B06)" + # Set the jd_src to RT5668_JD1 for jack detection + register "property_count" = "1" + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-src"" + register "property_list[0].integer" = "1" + device i2c 1a on + probe AUDIO ALC1019_ALC5682I_I2S + end + end + end device ref i2c3 on chip drivers/i2c/generic register "hid" = ""ELAN0000"" @@ -471,5 +487,14 @@ chip soc/intel/meteorlake end end end + device ref hda on + chip drivers/generic/alc1015 + register "hid" = ""RTL1019"" + register "sdb" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B07)" + device generic 0 on + probe AUDIO ALC1019_ALC5682I_I2S + end + end + end end end -- cgit v1.2.3