From 9be42b59537aa41b483d392e3e00eb3ed653080f Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Thu, 8 Feb 2018 11:57:33 -0700 Subject: [PATCH] mb/google/grunt: Add ADAU7002 to devicetree Add an entry to the grunt devicetree defining the ADAU7002 PDM-to-I2S converter. BUG=b:72121803 TEST=With grunt audio kernel patches, "aplay -l" shows playback devices: **** List of PLAYBACK Hardware Devices **** card 0: acpd7219m98357 [acpd7219m98357], device 0: Playback da7219-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: acpd7219m98357 [acpd7219m98357], device 2: HiFi Playback HiFi-2 [] Subdevices: 1/1 Subdevice #0: subdevice #0 Change-Id: I90b59ec64f4b841932db42b8a8970ed924283613 Signed-off-by: Daniel Kurtz Reviewed-on: https://review.coreboot.org/23660 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Justin TerAvest Reviewed-by: Paul Menzel --- src/mainboard/google/kahlee/Kconfig | 1 + src/mainboard/google/kahlee/variants/grunt/devicetree.cb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/mainboard/google/kahlee/Kconfig b/src/mainboard/google/kahlee/Kconfig index 988afc3406..3dd0614d9b 100644 --- a/src/mainboard/google/kahlee/Kconfig +++ b/src/mainboard/google/kahlee/Kconfig @@ -124,6 +124,7 @@ config DRIVER_TPM_I2C_ADDR config GRUNT_AUDIO bool default y if !BOARD_GOOGLE_KAHLEE + select DRIVERS_GENERIC_ADAU7002 select DRIVERS_GENERIC_MAX98357A select DRIVERS_I2C_DA7219 diff --git a/src/mainboard/google/kahlee/variants/grunt/devicetree.cb b/src/mainboard/google/kahlee/variants/grunt/devicetree.cb index 8601af8e45..55372d4977 100644 --- a/src/mainboard/google/kahlee/variants/grunt/devicetree.cb +++ b/src/mainboard/google/kahlee/variants/grunt/devicetree.cb @@ -83,6 +83,9 @@ chip soc/amd/stoneyridge device pci 18.5 on end end #domain device mmio 0xfedc2000 on + chip drivers/generic/adau7002 + device generic 0.0 on end + end chip drivers/i2c/da7219 register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_14)" register "btn_cfg" = "50"