[PATCH v3 0/3] platform/x86: Describe Yoga Book haptics and audio resources

Maurizio Casciano posted 3 patches 3 weeks, 6 days ago
.../platform/x86/x86-android-tablets/lenovo.c | 188 +++++++++++++++++-
1 file changed, 187 insertions(+), 1 deletion(-)
[PATCH v3 0/3] platform/x86: Describe Yoga Book haptics and audio resources
Posted by Maurizio Casciano 3 weeks, 6 days ago
The Lenovo Yoga Book YB1-X91F/L firmware omits software properties for
its two DRV2604 haptic controllers and does not instantiate or map all
resources used by the RT5677 audio design.

Attach board software nodes describing the DRV2604 mode, waveform
library and enable GPIOs, instantiate the TS3A227E headset detector, and
attach software-node GPIO properties to the RT5677 codec for the second
speaker amplifier and headphone path.

Changes since v2:

- replace the RT5677 GPIO lookup table with GPIO properties on a
  codec-attached software node, as suggested by Dmitry; and
- reprobe the codec after attaching the software node so its GPIO
  provider is initialized with the new fwnode.

All three patches pass strict checkpatch.  They were built and booted on
a Lenovo Yoga Book YB1-X91L.  Both haptic devices played effects before
and after s2idle.  From a fresh boot, the RT5677 GPIO consumers were
present, GPIO2 went high during speaker playback, GPIO4 went high during
headphone playback, and microphone capture succeeded.

With Best Regards,
Maurizio Casciano

Maurizio Casciano (3):
  platform/x86: x86-android-tablets: Describe Yoga Book haptics
  platform/x86: x86-android-tablets: Add Yoga Book TS3A227E
  platform/x86: x86-android-tablets: Add Yoga Book audio GPIOs

 .../platform/x86/x86-android-tablets/lenovo.c | 188 +++++++++++++++++-
 1 file changed, 187 insertions(+), 1 deletion(-)

base-commit: 32e17ef088fc55858886738d0b904248e98b30e0
-- 
2.53.0
Re: [PATCH v3 0/3] platform/x86: Describe Yoga Book haptics and audio resources
Posted by Maurizio Casciano 1 day, 22 hours ago
Hi Hans,

This v3 series has been pending since August 30. It incorporates Dmitry's
feedback by describing the RT5677 GPIOs with a codec-attached software node
and reprobes the codec after attaching it. The series remains unchanged.

Please let me know if any further changes or testing are needed.

With Best Regards,
Maurizio Casciano