Skip to content

Commit 983e4ad

Browse files
committed
Merge tag 'platform-drivers-x86-v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver updates from Hans de Goede: "Highlights: - Microsoft Surface devices System Aggregator Module support - SW_TABLET_MODE reporting improvements - thinkpad_acpi keyboard language setting support - platform / DPTF profile settings support: - Base / userspace API parts merged from Rafael's acpi-platform branch - thinkpad_acpi and ideapad-laptop support through pdx86 - Remove support for some obsolete Intel MID platforms through merging of the shared intel-mid-removal branch - Big cleanup of the ideapad-laptop driver - Misc other fixes / new hw support / quirks" * tag 'platform-drivers-x86-v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (99 commits) platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds platform/surface: aggregator: Fix access of unaligned value tools/power/x86/intel-speed-select: Update version to 1.8 tools/power/x86/intel-speed-select: Add new command to get/set TRL tools/power/x86/intel-speed-select: Add new command turbo-mode Platform: OLPC: Constify static struct regulator_ops platform/surface: Add Surface Hot-Plug driver platform/x86: intel_scu_wdt: Drop mistakenly added const platform/x86: Kconfig: add missing selects for ideapad-laptop platform/x86: acer-wmi: Don't use ACPI_EXCEPTION() platform/x86: thinkpad_acpi: Replace ifdef CONFIG_ACPI_PLATFORM_PROFILE with depends on platform/x86: thinkpad_acpi: Fix 'warning: no previous prototype for' warnings platform/x86: msi-wmi: Fix variable 'status' set but not used compiler warning platform/surface: surface3-wmi: Fix variable 'status' set but not used compiler warning platform/x86: Move all dell drivers to their own subdirectory Documentation/ABI: sysfs-platform-ideapad-laptop: conservation_mode attribute Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute paths platform/x86: ideapad-laptop: add "always on USB charging" control support platform/x86: ideapad-laptop: add keyboard backlight control support platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs ...
2 parents 31caf8b + a7d53db commit 983e4ad

108 files changed

Lines changed: 16545 additions & 3452 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-platform-ideapad-laptop‎

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
What: /sys/devices/platform/ideapad/camera_power
1+
What: /sys/bus/platform/devices/VPC2004:*/camera_power
22
Date: Dec 2010
33
KernelVersion: 2.6.37
44
Contact: "Ike Panhc <ike.pan@canonical.com>"
55
Description:
66
Control the power of camera module. 1 means on, 0 means off.
77

8-
What: /sys/devices/platform/ideapad/fan_mode
8+
What: /sys/bus/platform/devices/VPC2004:*/fan_mode
99
Date: June 2012
1010
KernelVersion: 3.6
1111
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>"
@@ -18,7 +18,7 @@ Description:
1818
* 2 -> Dust Cleaning
1919
* 4 -> Efficient Thermal Dissipation Mode
2020

21-
What: /sys/devices/platform/ideapad/touchpad
21+
What: /sys/bus/platform/devices/VPC2004:*/touchpad
2222
Date: May 2017
2323
KernelVersion: 4.13
2424
Contact: "Ritesh Raj Sarraf <rrs@debian.org>"
@@ -27,7 +27,16 @@ Description:
2727
* 1 -> Switched On
2828
* 0 -> Switched Off
2929

30-
What: /sys/bus/pci/devices/<bdf>/<device>/VPC2004:00/fn_lock
30+
What: /sys/bus/platform/devices/VPC2004:*/conservation_mode
31+
Date: Aug 2017
32+
KernelVersion: 4.14
33+
Contact: platform-driver-x86@vger.kernel.org
34+
Description:
35+
Controls whether the conservation mode is enabled or not.
36+
This feature limits the maximum battery charge percentage to
37+
around 50-60% in order to prolong the lifetime of the battery.
38+
39+
What: /sys/bus/platform/devices/VPC2004:*/fn_lock
3140
Date: May 2018
3241
KernelVersion: 4.18
3342
Contact: "Oleg Keri <ezhi99@gmail.com>"
@@ -41,3 +50,12 @@ Description:
4150

4251
# echo "0" > \
4352
/sys/bus/pci/devices/0000:00:1f.0/PNP0C09:00/VPC2004:00/fn_lock
53+
54+
What: /sys/bus/platform/devices/VPC2004:*/usb_charging
55+
Date: Feb 2021
56+
KernelVersion: 5.12
57+
Contact: platform-driver-x86@vger.kernel.org
58+
Description:
59+
Controls whether the "always on USB charging" feature is
60+
enabled or not. This feature enables charging USB devices
61+
even if the computer is not turned on.

‎Documentation/admin-guide/laptops/thinkpad-acpi.rst‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ detailed description):
5151
- UWB enable and disable
5252
- LCD Shadow (PrivacyGuard) enable and disable
5353
- Lap mode sensor
54+
- Setting keyboard language
5455

5556
A compatibility table by model and feature is maintained on the web
5657
site, http://ibm-acpi.sf.net/. I appreciate any success or failure
@@ -1466,6 +1467,30 @@ Sysfs notes
14661467
rfkill controller switch "tpacpi_uwb_sw": refer to
14671468
Documentation/driver-api/rfkill.rst for details.
14681469

1470+
1471+
Setting keyboard language
1472+
-------------------------
1473+
1474+
sysfs: keyboard_lang
1475+
1476+
This feature is used to set keyboard language to ECFW using ASL interface.
1477+
Fewer thinkpads models like T580 , T590 , T15 Gen 1 etc.. has "=", "(',
1478+
")" numeric keys, which are not displaying correctly, when keyboard language
1479+
is other than "english". This is because the default keyboard language in ECFW
1480+
is set as "english". Hence using this sysfs, user can set the correct keyboard
1481+
language to ECFW and then these key's will work correctly.
1482+
1483+
Example of command to set keyboard language is mentioned below::
1484+
1485+
echo jp > /sys/devices/platform/thinkpad_acpi/keyboard_lang
1486+
1487+
Text corresponding to keyboard layout to be set in sysfs are: be(Belgian),
1488+
cz(Czech), da(Danish), de(German), en(English), es(Spain), et(Estonian),
1489+
fr(French), fr-ch(French(Switzerland)), hu(Hungarian), it(Italy), jp (Japan),
1490+
nl(Dutch), nn(Norway), pl(Polish), pt(portugese), sl(Slovenian), sv(Sweden),
1491+
tr(Turkey)
1492+
1493+
14691494
Adaptive keyboard
14701495
-----------------
14711496

‎Documentation/driver-api/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ available subsections can be seen below.
9999
rfkill
100100
serial/index
101101
sm501
102+
surface_aggregator/index
102103
switchtec
103104
sync_file
104105
vfio-mediated-device
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. SPDX-License-Identifier: GPL-2.0+
2+
3+
===============================
4+
Client Driver API Documentation
5+
===============================
6+
7+
.. contents::
8+
:depth: 2
9+
10+
11+
Serial Hub Communication
12+
========================
13+
14+
.. kernel-doc:: include/linux/surface_aggregator/serial_hub.h
15+
16+
.. kernel-doc:: drivers/platform/surface/aggregator/ssh_packet_layer.c
17+
:export:
18+
19+
20+
Controller and Core Interface
21+
=============================
22+
23+
.. kernel-doc:: include/linux/surface_aggregator/controller.h
24+
25+
.. kernel-doc:: drivers/platform/surface/aggregator/controller.c
26+
:export:
27+
28+
.. kernel-doc:: drivers/platform/surface/aggregator/core.c
29+
:export:
30+
31+
32+
Client Bus and Client Device API
33+
================================
34+
35+
.. kernel-doc:: include/linux/surface_aggregator/device.h
36+
37+
.. kernel-doc:: drivers/platform/surface/aggregator/bus.c
38+
:export:

0 commit comments

Comments
 (0)