Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41216 )
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
mb/google/volteer: Add firmware configuration probing for audio
For all of the audio devices in devicetree.cb add the probe matches that will determine if the device should be enabled or not based on the selected audio daughter board type.
AUDIO=MAX98357_ALC5682I_I2S: enable max98357 and alc5628, disable others AUDIO=MAX98373_ALC5682I_I2S: enable max98373 and alc5682, disable others AUDIO=MAX98373_ALC5682_SNDW: enable soundwire devices, disable others
BUG=b:147462631 TEST=test different device present in ACPI based on fw_config value:
AUDIO=NONE
ectool cbi set 6 0x00000000 4 2
AUDIO=MAX98357_ALC5682I_I2S
ectool cbi set 6 0x00000100 4 2
AUDIO=MAX98373_ALC5682I_I2S
ectool cbi set 6 0x00000200 4 2
AUDIO=MAX98373_ALC5682_SNDW
ectool cbi set 6 0x00000300 4 2
Change-Id: I5492e8cddcff3ba01023b0daef02be3508d347b0 Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/mainboard/google/volteer/variants/volteer/overridetree.cb 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/41216/1
diff --git a/src/mainboard/google/volteer/variants/volteer/overridetree.cb b/src/mainboard/google/volteer/variants/volteer/overridetree.cb index 13ee428..c2fc10b 100644 --- a/src/mainboard/google/volteer/variants/volteer/overridetree.cb +++ b/src/mainboard/google/volteer/variants/volteer/overridetree.cb @@ -11,6 +11,11 @@ register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" register "property_list[0].name" = ""realtek,jd-src"" register "property_list[0].integer" = "1" + register "fw_config_probe" = "true" + register "fw_config" = "{ + FW_CONFIG_MATCH(AUDIO, MAX98357_ALC5682I_I2S), + FW_CONFIG_MATCH(AUDIO, MAX98373_ALC5682I_I2S) + }" device i2c 1a on end end chip drivers/i2c/max98373 @@ -19,6 +24,8 @@ register "uid" = "0" register "desc" = ""Right Speaker Amp"" register "name" = ""MAXR"" + register "fw_config_probe" = "true" + register "fw_config" = "{ FW_CONFIG_MATCH(AUDIO, MAX98373_ALC5682I_I2S) }" device i2c 31 on end end chip drivers/i2c/max98373 @@ -27,6 +34,8 @@ register "uid" = "1" register "desc" = ""Left Speaker Amp"" register "name" = ""MAXL"" + register "fw_config_probe" = "true" + register "fw_config" = "{ FW_CONFIG_MATCH(AUDIO, MAX98373_ALC5682I_I2S) }" device i2c 32 on end end end @@ -35,9 +44,13 @@ register "hid" = ""MX98357A"" register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" register "sdmode_delay" = "5" + register "fw_config_probe" = "true" + register "fw_config" = "{ FW_CONFIG_MATCH(AUDIO, MAX98357_ALC5682I_I2S) }" device generic 0 on end end chip drivers/intel/soundwire + register "fw_config_probe" = "true" + register "fw_config" = "{ FW_CONFIG_MATCH(AUDIO, MAX98373_ALC5682_SNDW) }" device generic 0 on chip drivers/soundwire/alc5682 # SoundWire Link 0 ID 1
Duncan Laurie has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/41216 )
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
mb/google/volteer: Add firmware configuration probing for audio
For all of the audio devices in devicetree.cb add the probe matches that will determine if the device should be enabled or not based on the selected audio daughter board type.
AUDIO=MAX98357_ALC5682I_I2S: enable max98357 and alc5628, disable others AUDIO=MAX98373_ALC5682I_I2S: enable max98373 and alc5682, disable others AUDIO=MAX98373_ALC5682_SNDW: enable soundwire devices, disable others
BUG=b:147462631 TEST=test different device present in ACPI based on fw_config value:
AUDIO=NONE
ectool cbi set 6 0x00000000 4 2
AUDIO=MAX98357_ALC5682I_I2S
ectool cbi set 6 0x00000100 4 2
AUDIO=MAX98373_ALC5682I_I2S
ectool cbi set 6 0x00000200 4 2
AUDIO=MAX98373_ALC5682_SNDW
ectool cbi set 6 0x00000300 4 2
Change-Id: I5492e8cddcff3ba01023b0daef02be3508d347b0 Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/mainboard/google/volteer/variants/volteer/overridetree.cb 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/41216/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/41216
to look at the new patch set (#4).
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
mb/google/volteer: Add firmware configuration probing for audio
For all of the audio devices in devicetree.cb add the probe matches that will determine if the device should be enabled or not based on the selected audio daughter board type.
AUDIO=MAX98357_ALC5682I_I2S: enable max98357 and alc5628, disable others AUDIO=MAX98373_ALC5682I_I2S: enable max98373 and alc5682, disable others AUDIO=MAX98373_ALC5682_SNDW: enable soundwire devices, disable others
BUG=b:147462631 TEST=test different device present in ACPI based on fw_config value:
AUDIO=NONE
ectool cbi set 6 0x00000000 4 2
AUDIO=MAX98357_ALC5682I_I2S
ectool cbi set 6 0x00000100 4 2
AUDIO=MAX98373_ALC5682I_I2S
ectool cbi set 6 0x00000200 4 2
AUDIO=MAX98373_ALC5682_SNDW
ectool cbi set 6 0x00000300 4 2
Change-Id: I5492e8cddcff3ba01023b0daef02be3508d347b0 Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/mainboard/google/volteer/variants/volteer/overridetree.cb 1 file changed, 14 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/41216/4
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41216 )
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
Patch Set 18: Code-Review+2
Duncan Laurie has submitted this change. ( https://review.coreboot.org/c/coreboot/+/41216 )
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
mb/google/volteer: Add firmware configuration probing for audio
For all of the audio devices in devicetree.cb add the probe matches that will determine if the device should be enabled or not based on the selected audio daughter board type.
AUDIO=MAX98357_ALC5682I_I2S: enable max98357 and alc5628, disable others AUDIO=MAX98373_ALC5682I_I2S: enable max98373 and alc5682, disable others AUDIO=MAX98373_ALC5682_SNDW: enable soundwire devices, disable others
BUG=b:147462631 TEST=test different device present in ACPI based on fw_config value:
AUDIO=NONE
ectool cbi set 6 0x00000000 4 2
AUDIO=MAX98357_ALC5682I_I2S
ectool cbi set 6 0x00000100 4 2
AUDIO=MAX98373_ALC5682I_I2S
ectool cbi set 6 0x00000200 4 2
AUDIO=MAX98373_ALC5682_SNDW
ectool cbi set 6 0x00000300 4 2
Change-Id: I5492e8cddcff3ba01023b0daef02be3508d347b0 Signed-off-by: Duncan Laurie dlaurie@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/41216 Reviewed-by: Furquan Shaikh furquan@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/volteer/variants/volteer/overridetree.cb 1 file changed, 14 insertions(+), 4 deletions(-)
Approvals: build bot (Jenkins): Verified Furquan Shaikh: Looks good to me, approved
diff --git a/src/mainboard/google/volteer/variants/volteer/overridetree.cb b/src/mainboard/google/volteer/variants/volteer/overridetree.cb index d5c1756..9e5ef4b 100644 --- a/src/mainboard/google/volteer/variants/volteer/overridetree.cb +++ b/src/mainboard/google/volteer/variants/volteer/overridetree.cb @@ -11,7 +11,10 @@ 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 end + device i2c 1a on + probe AUDIO MAX98357_ALC5682I_I2S + probe AUDIO MAX98373_ALC5682I_I2S + end end chip drivers/i2c/max98373 register "vmon_slot_no" = "0" @@ -19,7 +22,9 @@ register "uid" = "0" register "desc" = ""Right Speaker Amp"" register "name" = ""MAXR"" - device i2c 31 on end + device i2c 31 on + probe AUDIO MAX98373_ALC5682I_I2S + end end chip drivers/i2c/max98373 register "vmon_slot_no" = "2" @@ -27,7 +32,9 @@ register "uid" = "1" register "desc" = ""Left Speaker Amp"" register "name" = ""MAXL"" - device i2c 32 on end + device i2c 32 on + probe AUDIO MAX98373_ALC5682I_I2S + end end end device pci 1f.3 on @@ -35,10 +42,13 @@ register "hid" = ""MX98357A"" register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)" register "sdmode_delay" = "5" - device generic 0 on end + device generic 0 on + probe AUDIO MAX98357_ALC5682I_I2S + end end chip drivers/intel/soundwire device generic 0 on + probe AUDIO MAX98373_ALC5682_SNDW chip drivers/soundwire/alc5682 # SoundWire Link 0 ID 1 register "desc" = ""Headset Codec""
9elements QA has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41216 )
Change subject: mb/google/volteer: Add firmware configuration probing for audio ......................................................................
Patch Set 22:
Automatic boot test returned (PASS/FAIL/TOTAL): 4/0/4 Emulation targets: "QEMU x86 q35/ich9" using payload TianoCore : SUCCESS : https://lava.9esec.io/r/4697 "QEMU x86 q35/ich9" using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/4696 "QEMU x86 i440fx/piix4" using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/4695 "QEMU AArch64" using payload LinuxBoot_u-root_kexec : SUCCESS : https://lava.9esec.io/r/4694
Please note: This test is under development and might not be accurate at all!