summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rex/variants/rex0
diff options
context:
space:
mode:
authorEran Mitrani <mitrani@google.com>2022-08-19 15:39:47 -0700
committerSubrata Banik <subratabanik@google.com>2022-09-14 05:30:08 +0000
commit51249d6bed93f25569a35fa184038cafddc0dec0 (patch)
treefbac2b0003c856593c8c07a93f4643ee1723e106 /src/mainboard/google/rex/variants/rex0
parent715c17a750e5377df353eb93e4ca5fda395e4225 (diff)
mb/google/rex: Add audio parts ALC5682I-VS and MAX98357
BUG=b:232573696 TEST=Able to verify audio playback on Google/Rex with this change. Change-Id: Ia8dfc79e7e4d27828726145156c870733d716899 Signed-off-by: Eran Mitrani <mitrani@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66919 Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Tarun Tuli <taruntuli@google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/rex/variants/rex0')
-rw-r--r--src/mainboard/google/rex/variants/rex0/overridetree.cb25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb
index 1e877d36c1..936ca79f6a 100644
--- a/src/mainboard/google/rex/variants/rex0/overridetree.cb
+++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb
@@ -198,7 +198,20 @@ chip soc/intel/meteorlake
device generic 0 on end
end
end
- device ref i2c0 on 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 end
+ end
+ end
device ref i2c1 on end
device ref i2c2 on end
device ref i2c3 on
@@ -260,6 +273,14 @@ chip soc/intel/meteorlake
end
end
end
- device ref hda on end
+ device ref hda on
+ chip drivers/generic/max98357a
+ register "hid" = ""MX98357A""
+ register "sdmode_gpio" =
+ "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D04)"
+ register "sdmode_delay" = "5"
+ device generic 0 on end
+ end
+ end
end
end