From 3ca82e2d78b174a3946c4878160b38ed12a714e6 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Mon, 13 Dec 2021 11:39:17 +0800 Subject: mb/google/brya/var/felwinter: Add stylus probe for garage Felwinter has non-stylus sku. Add a FW_CONFIG field to indicate stylus presence and add a probe statement to the devicetree for the corresponding device. BUG=b:208937710 TEST=non-stylus doesn't register garage driver. Signed-off-by: Eric Lai Change-Id: I06a2c125f2b5a73f9f7c27bf1b20ff8712664809 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60073 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/variants/felwinter/overridetree.cb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google/brya/variants/felwinter') diff --git a/src/mainboard/google/brya/variants/felwinter/overridetree.cb b/src/mainboard/google/brya/variants/felwinter/overridetree.cb index dafdbfc1063c..c2da32984fa8 100644 --- a/src/mainboard/google/brya/variants/felwinter/overridetree.cb +++ b/src/mainboard/google/brya/variants/felwinter/overridetree.cb @@ -4,6 +4,10 @@ fw_config option USB3_PS8815 1 option USB4_KB8001 2 end + field STYLUS 5 + option STYLUS_ABSENT 0 + option STYLUS_PRESENT 1 + end field AUDIO_AMP 7 9 option UNPROVISIONED 0 option MAX98360_ALC5682I_I2S 1 @@ -269,7 +273,9 @@ chip soc/intel/alderlake register "key.linux_code" = "SW_PEN_INSERTED" register "key.linux_input_type" = "EV_SW" register "key.label" = ""pen_eject"" - device generic 0 on end + device generic 0 on + probe STYLUS STYLUS_PRESENT + end end end #I2C3 device ref i2c5 on -- cgit v1.2.3