From a11a61907f7a2cd026fb362b7fe888ea40011e10 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sun, 16 Mar 2025 15:24:11 -0500 Subject: [PATCH] mb/google/sarien: Add ACPI brighness controls Add display panel info and ACPI includes to enable display backlight control under Windows and MacOS. TEST=build/boot Win11 on sarien, verify brightness controls functional. Change-Id: Ic0595c8c977f1203424ab9d91343b8e98414f594 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/86907 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/google/sarien/Kconfig | 1 + src/mainboard/google/sarien/dsdt.asl | 1 + .../google/sarien/variants/sarien/devicetree.cb | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/sarien/Kconfig b/src/mainboard/google/sarien/Kconfig index c0c5e02387..5f678aa4be 100644 --- a/src/mainboard/google/sarien/Kconfig +++ b/src/mainboard/google/sarien/Kconfig @@ -4,6 +4,7 @@ config BOARD_GOOGLE_BASEBOARD_SARIEN def_bool n select BOARD_ROMSIZE_KB_32768 select DRIVERS_GENERIC_BH720 + select DRIVERS_GFX_GENERIC select DRIVERS_I2C_GENERIC select DRIVERS_I2C_HID select DRIVERS_SPI_ACPI diff --git a/src/mainboard/google/sarien/dsdt.asl b/src/mainboard/google/sarien/dsdt.asl index 27c9be98ca..e9bac016a4 100644 --- a/src/mainboard/google/sarien/dsdt.asl +++ b/src/mainboard/google/sarien/dsdt.asl @@ -22,6 +22,7 @@ DefinitionBlock( { #include #include + #include } /* Per board variant mainboard hooks. */ #include diff --git a/src/mainboard/google/sarien/variants/sarien/devicetree.cb b/src/mainboard/google/sarien/variants/sarien/devicetree.cb index d47e18349f..7445bbc16b 100644 --- a/src/mainboard/google/sarien/variants/sarien/devicetree.cb +++ b/src/mainboard/google/sarien/variants/sarien/devicetree.cb @@ -214,7 +214,14 @@ chip soc/intel/cannonlake register "gpio_pm[COMM_4]" = "MISCCFG_GPIO_PM_CONFIG_BITS" device domain 0 on - device ref igpu on end + device ref igpu on + chip drivers/gfx/generic + register "device_count" = "1" + register "device[0].name" = ""LCD0"" + register "device[0].type" = "panel" + device generic 0 on end + end + end device ref dptf on end device ref thermal on end device ref xhci on