Weimin Wu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85572?usp=email )
Change subject: mb/google/fatcat/var/felino: Modify devicetree for ALC712 codec ......................................................................
mb/google/fatcat/var/felino: Modify devicetree for ALC712 codec
Update device tree to support Realtek ALC712 codec.
BUG=b:378629979 TEST=emerge-fatcat coreboot
Change-Id: Ic5c38462cd1ab39d4aebc324d5151cb4337051df Signed-off-by: Weimin Wu wuweimin@huaqin.corp-partner.google.com --- M src/mainboard/google/fatcat/variants/felino/overridetree.cb 1 file changed, 42 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/85572/1
diff --git a/src/mainboard/google/fatcat/variants/felino/overridetree.cb b/src/mainboard/google/fatcat/variants/felino/overridetree.cb index 2b34f03..ca3bfa1 100644 --- a/src/mainboard/google/fatcat/variants/felino/overridetree.cb +++ b/src/mainboard/google/fatcat/variants/felino/overridetree.cb @@ -193,10 +193,49 @@ chip drivers/intel/soundwire device generic 0 on chip drivers/soundwire/alc711 - # SoundWire Link 3 ID 1 + register "multilane.lane_mapping" = "{ + { + .lane = 1, + .direction = MASTER_LANE, + .connection.master_lane = 1 + }, + { + .lane = 2, + .direction = MASTER_LANE, + .connection.master_lane = 2 + }, + }" + register "audio_mode" = "{ + { + .bus_frequency_configs_count = 9, + .bus_frequency_configs = { + 9600 * KHz, + 4800 * KHz, + 2400 * KHz, + 12000 * KHz, + 6000 * KHz, + 3000 * KHz, + 12288 * KHz, + 6144 * KHz, + 3072 * KHz, + }, + /* Support 16 KHz to 192 KHz sampling frequency */ + .sampling_frequency_configs_count = 6, + .sampling_frequency_configs = { + 16 * KHz, + 32 * KHz, + 44.1 * KHz, + 48 * KHz, + 96 * KHz, + 192 * KHz + }, + }, + }" register "desc" = ""Headset Codec"" - device generic 3.1 on - end + register "alc711_address.version" = "SOUNDWIRE_VERSION_1_2" + register "alc711_address.class" = "MIPI_CLASS_SDCA" + register "alc711_address.part_id" = "MIPI_DEV_ID_REALTEK_ALC712" + device generic 3.0 on end # SoundWire Link 3 ID 0 end end end