Re: [PATCH v3 2/2] Input: soc_button_array - Add support for newer surface devices

From: Maximilian Luz
Date: Tue Jul 23 2019 - 07:29:35 EST


On 7/22/19 10:00 AM, Enrico Weigelt, metux IT consult wrote:
On 20.07.19 17:05, Maximilian Luz wrote:
Power and volume button support for 5th and 6th generation Microsoft
Surface devices via soc_button_array.

Note that these devices use the same MSHW0040 device as on the Surface
Pro 4, however the implementation is different (GPIOs vs. ACPI
notifications). Thus some checking is required to ensure we only load
this driver on the correct devices.

Could this also used on the older (pre pro4) devices (also using the
gpios directly, and leave off acpi notifications) ?

As far as I can tell, no. The Pro 4 and Pro 3 don't have any GPIOs on
MSHW0028/MSHW0040. Book 1 has GPIOs but for a different purpose. The Pro
2 has a standard PNP0C0C power button (no idea how the volume buttons
are handled there, but also seems to be different from what I can gather
from DSDT). I can't say anything for the Pro 1 and non-Pro devices.

Maximilian