From b584967d0405bcf6632dfd99fbaa6236b47d7e0d Mon Sep 17 00:00:00 2001 From: Varun Upadhyay Date: Mon, 10 Nov 2025 15:17:17 +0530 Subject: [PATCH] mb/google/ocelot: Add wake configuration to cnvi_bluetooth This commit adds wake functionality to the CNVi Bluetooth device by registering to "GPE0_PME_B0" using the common CNVi block. BUG=454341255 TEST=Able to wake up the device from a low power state using a keyboard Bluetooth device. Change-Id: I4bcbb34e1d53b3438f9e9f2b39f09d91e8dc7110 Signed-off-by: Varun Upadhyay Reviewed-on: https://review.coreboot.org/c/coreboot/+/89982 Reviewed-by: P, Usha Tested-by: build bot (Jenkins) --- src/mainboard/google/ocelot/variants/matsu/overridetree.cb | 7 ++++++- .../google/ocelot/variants/ocelot/overridetree.cb | 4 ++++ src/mainboard/google/ocelot/variants/ojal/overridetree.cb | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/ocelot/variants/matsu/overridetree.cb b/src/mainboard/google/ocelot/variants/matsu/overridetree.cb index ded15fb279..196d47a358 100644 --- a/src/mainboard/google/ocelot/variants/matsu/overridetree.cb +++ b/src/mainboard/google/ocelot/variants/matsu/overridetree.cb @@ -309,7 +309,12 @@ chip soc/intel/pantherlake end end # CNVi - device ref cnvi_bluetooth on end + device ref cnvi_bluetooth on + chip soc/intel/common/block/cnvi + register "wake" = "GPE0_PME_B0" + device generic 0 on end + end + end # NOTE: i2c0 is function 0; hence it needs to be enabled when any of i2c1-5 is enabled. # TPM device is under i2c1. Therefore, i2c0 needs to be enabled anyways. diff --git a/src/mainboard/google/ocelot/variants/ocelot/overridetree.cb b/src/mainboard/google/ocelot/variants/ocelot/overridetree.cb index 3b0c1b49c7..117e7d8610 100644 --- a/src/mainboard/google/ocelot/variants/ocelot/overridetree.cb +++ b/src/mainboard/google/ocelot/variants/ocelot/overridetree.cb @@ -516,6 +516,10 @@ chip soc/intel/pantherlake device ref cnvi_bluetooth on probe WIFI WIFI_CNVI_6 probe WIFI WIFI_CNVI_7 + chip soc/intel/common/block/cnvi + register "wake" = "GPE0_PME_B0" + device generic 0 on end + end end # NOTE: i2c0 is function 0; hence it needs to be enabled when any of i2c1-5 is enabled. diff --git a/src/mainboard/google/ocelot/variants/ojal/overridetree.cb b/src/mainboard/google/ocelot/variants/ojal/overridetree.cb index 641acbf9ea..c2977f6ac7 100644 --- a/src/mainboard/google/ocelot/variants/ojal/overridetree.cb +++ b/src/mainboard/google/ocelot/variants/ojal/overridetree.cb @@ -261,6 +261,10 @@ chip soc/intel/pantherlake device ref cnvi_bluetooth on probe WIFI WIFI_CNVI_6 probe WIFI WIFI_CNVI_7 + chip soc/intel/common/block/cnvi + register "wake" = "GPE0_PME_B0" + device generic 0 on end + end end device ref i2c0 on