From 3249ad1d7f28efa58653304355d624644dbce904 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 5 Mar 2026 10:50:09 -0600 Subject: [PATCH] mb/google/rex: Add SOF chip driver to screebo, kanix, karis screebo/kanix use rt1019 speaker, rt5682 headphone. karis uses rt5650 speaker and rt5650_hp headphone. All of them use 2ch-pdm0 for dmic. This configuration is used for CoolStar's Windows audio drivers on these devices. TEST=build/boot Win11 on screebo, verify built-in audio functional with coolstar's drivers. Change-Id: Ie0be2b2d7cc41548bbe3e5b47a8e0f6039c4b2d9 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/91571 Tested-by: build bot (Jenkins) Reviewed-by: Jakub "Kuba" Czapiga Reviewed-by: Alicja Michalska --- src/mainboard/google/rex/Kconfig | 3 +++ src/mainboard/google/rex/variants/kanix/overridetree.cb | 9 ++++++++- src/mainboard/google/rex/variants/karis/overridetree.cb | 9 ++++++++- .../google/rex/variants/screebo/overridetree.cb | 6 ++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index b5f8858033..2ff9a04102 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -73,6 +73,7 @@ config BOARD_GOOGLE_MODEL_DEKU config BOARD_GOOGLE_MODEL_KANIX def_bool n select BOARD_GOOGLE_BASEBOARD_REX + select DRIVERS_AUDIO_SOF select DRIVERS_GENERIC_ALC1015 select MAINBOARD_HAS_GOOGLE_STRAUSS_KEYBOARD select RT8168_GEN_ACPI_POWER_RESOURCE @@ -85,6 +86,7 @@ config BOARD_GOOGLE_MODEL_KANIX config BOARD_GOOGLE_MODEL_KARIS def_bool n select BOARD_GOOGLE_BASEBOARD_REX + select DRIVERS_AUDIO_SOF select SOC_INTEL_CSE_LITE_SKU select SOC_INTEL_CSE_PRE_CPU_RESET_TELEMETRY_V2 select SOC_INTEL_CSE_SEND_EOP_ASYNC @@ -116,6 +118,7 @@ config BOARD_GOOGLE_MODEL_REX_EC_ISH config BOARD_GOOGLE_MODEL_SCREEBO def_bool n select BOARD_GOOGLE_BASEBOARD_REX + select DRIVERS_AUDIO_SOF select DRIVERS_GENERIC_ALC1015 select DRIVERS_GENESYSLOGIC_GL9750 select SOC_INTEL_CSE_LITE_SKU diff --git a/src/mainboard/google/rex/variants/kanix/overridetree.cb b/src/mainboard/google/rex/variants/kanix/overridetree.cb index 37f3d7ca0a..c9b28c1aeb 100644 --- a/src/mainboard/google/rex/variants/kanix/overridetree.cb +++ b/src/mainboard/google/rex/variants/kanix/overridetree.cb @@ -664,6 +664,13 @@ chip soc/intel/meteorlake end end end - device ref hda on end + device ref hda on + chip drivers/sof + register "spkr_tplg" = "rt1019" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on end + end + end end end diff --git a/src/mainboard/google/rex/variants/karis/overridetree.cb b/src/mainboard/google/rex/variants/karis/overridetree.cb index c24c7c7cd7..18a647bb2f 100644 --- a/src/mainboard/google/rex/variants/karis/overridetree.cb +++ b/src/mainboard/google/rex/variants/karis/overridetree.cb @@ -604,6 +604,13 @@ chip soc/intel/meteorlake end end end - device ref hda on end + device ref hda on + chip drivers/sof + register "spkr_tplg" = "rt5650_sp" + register "jack_tplg" = "rt5650_hp" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on end + end + end end end diff --git a/src/mainboard/google/rex/variants/screebo/overridetree.cb b/src/mainboard/google/rex/variants/screebo/overridetree.cb index 60d28bcaa5..6e117bbe6e 100644 --- a/src/mainboard/google/rex/variants/screebo/overridetree.cb +++ b/src/mainboard/google/rex/variants/screebo/overridetree.cb @@ -632,6 +632,12 @@ chip soc/intel/meteorlake probe AUDIO ALC1019_ALC5682I_I2S end end + chip drivers/sof + register "spkr_tplg" = "rt1019" + register "jack_tplg" = "rt5682" + register "mic_tplg" = "_2ch_pdm0" + device generic 0 on end + end end end end