Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH 0/3] Add SW_TABLET_MODE support for AMD SFH convertibles
@ 2026-07-21 17:44 Basavaraj Natikar
  2026-07-21 17:44 ` [PATCH 1/3] HID: amd_sfh: Add accessor to read the operating-mode sensor Basavaraj Natikar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Basavaraj Natikar @ 2026-07-21 17:44 UTC (permalink / raw)
  To: jikos, bentiss, dmitry.torokhov; +Cc: linux-input, Basavaraj Natikar

Add SW_TABLET_MODE support for AMD convertibles whose operating mode
(laptop or tablet) is reported by the Sensor Fusion Hub.

The first patch adds a way to read the operating mode. The second
registers an auxiliary device when the sensor is present, and the third
is a small input driver that binds to it and reports the posture to
userspace. Keeping the input handling in its own driver avoids pulling
input/evdev into the sensor transport driver.

Basavaraj Natikar (3):
  HID: amd_sfh: Add accessor to read the operating-mode sensor
  HID: amd_sfh: Register tablet-mode auxiliary device
  Input: misc: Add AMD SFH tablet-mode switch driver

 MAINTAINERS                                   |  1 +
 drivers/hid/amd-sfh-hid/Kconfig               |  1 +
 drivers/hid/amd-sfh-hid/amd_sfh_client.c      | 16 ++++
 drivers/hid/amd-sfh-hid/amd_sfh_common.h      |  7 ++
 drivers/hid/amd-sfh-hid/amd_sfh_pcie.c        | 42 ++++++++++
 .../amd-sfh-hid/sfh1_1/amd_sfh_interface.c    | 33 ++++++++
 .../amd-sfh-hid/sfh1_1/amd_sfh_interface.h    |  1 -
 drivers/input/misc/Kconfig                    | 15 ++++
 drivers/input/misc/Makefile                   |  1 +
 drivers/input/misc/amd_sfh_tabletmode.c       | 81 +++++++++++++++++++
 include/linux/amd-pmf-io.h                    | 14 ++++
 11 files changed, 211 insertions(+), 1 deletion(-)
 create mode 100644 drivers/input/misc/amd_sfh_tabletmode.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-21 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 17:44 [PATCH 0/3] Add SW_TABLET_MODE support for AMD SFH convertibles Basavaraj Natikar
2026-07-21 17:44 ` [PATCH 1/3] HID: amd_sfh: Add accessor to read the operating-mode sensor Basavaraj Natikar
2026-07-21 18:04   ` sashiko-bot
2026-07-21 17:44 ` [PATCH 2/3] HID: amd_sfh: Register tablet-mode auxiliary device Basavaraj Natikar
2026-07-21 17:44 ` [PATCH 3/3] Input: misc: Add AMD SFH tablet-mode switch driver Basavaraj Natikar
2026-07-21 17:54   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox