Commit b6645172 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'platform-drivers-x86-v6.18-1' of...

Merge tag 'platform-drivers-x86-v6.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull x86 platform driver updates from Ilpo Järvinen:

 - amd/pmf:
    - Add support for adjusting PMF PPT and PPT APU thresholds
    - Extend custom BIOS inputs for more policies
    - Update ta_pmf_action structure to the latest PMF TA

 - arm64:
    - thinkpad-t14s-ec: Add EC driver for ThinkPad T14s Gen6 Snapdragon

 - int3472:
    - Increase handshake GPIO delay

 - intel/pmc:
    - SSRAM support for Lunar Lake and Panther Lake
    - Support reading substate requirements data from S0ix blockers
      (for platforms starting from Panther Lake)
    - Wildcat Lake support

 - intel-uncore-freq:
    - Solve duplicate sysfs entry warnings
    - Present unique domain ID per package

 - portwell-ec:
    - Support suspend/resume
    - Add hwmon support for voltage and temperature

 - redmi-wmi:
    - Add WMI driver for Redmibook keyboard

 - think-lmi:
    - Certificate support for ThinkCenter

 - x86-android-tables + others:
    - Convert away from legacy GPIO APIs

 - x86-android-tables:
    - Add support for Acer A1-840 tablet
    - Fix modules list for Lenovo devices
    - Stop using EPROBE_DEFER

 - Miscellaneous cleanups / refactoring / improvements

* tag 'platform-drivers-x86-v6.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: (63 commits)
  platform/x86: pcengines-apuv2: Use static device properties
  platform/x86: meraki-mx100: Use static device properties
  platform/x86: barco-p50-gpio: use software nodes for gpio-leds/keys
  platform/x86: x86-android-tablets: Stop using EPROBE_DEFER
  platform/x86: x86-android-tablets: Fix modules lists for Lenovo devices
  platform/x86: x86-android-tablets: Simplify lenovo_yoga_tab2_830_1050_exit()
  platform/x86: x86-android-tablets: Add support for Acer A1-840 tablet
  platform/x86: x86-android-tablets: Move Acer info to its own file
  platform/x86: x86-android-tablets: Update my email address
  platform/x86: x86-android-tablets: Simplify node-group [un]registration
  platform/x86: x86-android-tablets: use swnode_group instead of manual registering
  platform/x86: x86-android-tablets: replace bat_swnode with swnode_group
  platform/x86: x86-android-tablets: convert gpio_keys devices to GPIO references
  platform/x86: x86-android-tablets: remove support for GPIO lookup tables
  platform/x86: x86-android-tablets: convert Yoga Tab2 fast charger to GPIO references
  platform/x86: x86-android-tablets: convert HID-I2C devices to GPIO references
  platform/x86: x86-android-tablets: convert wm1502 devices to GPIO references
  platform/x86: x86-android-tablets: convert int3496 devices to GPIO references
  platform/x86: x86-android-tablets: convert EDT devices to GPIO references
  platform/x86: x86-android-tablets: convert Novatek devices to GPIO references
  ...
parents b4e5bb55 b8754092
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/embedded-controller/lenovo,thinkpad-t14s-ec.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Lenovo Thinkpad T14s Embedded Controller

maintainers:
  - Sebastian Reichel <sre@kernel.org>

description:
  The Qualcomm Snapdragon-based Lenovo Thinkpad T14s has an Embedded Controller
  (EC) which handles things such as keyboard backlight, LEDs or non-standard
  keys.

properties:
  compatible:
    const: lenovo,thinkpad-t14s-ec

  reg:
    const: 0x28

  interrupts:
    maxItems: 1

  wakeup-source: true

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

examples:
  - |+
    #include <dt-bindings/interrupt-controller/irq.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        embedded-controller@28 {
            compatible = "lenovo,thinkpad-t14s-ec";
            reg = <0x28>;
            interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_LOW>;
            wakeup-source;
        };
    };
...
+12 −0
Original line number Diff line number Diff line
@@ -21605,6 +21605,12 @@ S: Maintained
T:	git https://github.com/pkshih/rtw.git
F:	drivers/net/wireless/realtek/rtw89/
REDMIBOOK WMI DRIVERS
M:	Gladyshev Ilya <foxido@foxido.dev>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	drivers/platform/x86/redmi-wmi.c
REDPINE WIRELESS DRIVER
L:	linux-wireless@vger.kernel.org
S:	Orphan
@@ -25454,6 +25460,12 @@ W: http://thinkwiki.org/wiki/Ibm-acpi
T:	git git://repo.or.cz/linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git
F:	drivers/platform/x86/lenovo/thinkpad_acpi.c
THINKPAD T14S EMBEDDED CONTROLLER DRIVER
M:	Sebastian Reichel <sre@kernel.org>
S:	Maintained
F:	Documentation/devicetree/bindings/embedded-controller/lenovo,thinkpad-t14s-ec.yaml
F:	drivers/platform/arm64/lenovo-thinkpad-t14s.c
THINKPAD LMI DRIVER
M:	Mark Pearson <mpearson-lenovo@squebb.ca>
L:	platform-driver-x86@vger.kernel.org
+24 −0
Original line number Diff line number Diff line
@@ -887,6 +887,24 @@ eusb6_repeater: redriver@4f {
	};
};

&i2c6 {
	clock-frequency = <400000>;

	status = "okay";

	embedded-controller@28 {
		compatible = "lenovo,thinkpad-t14s-ec";
		reg = <0x28>;

		interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_LOW>;

		pinctrl-0 = <&ec_int_n_default>;
		pinctrl-names = "default";

		wakeup-source;
	};
};

&i2c7 {
	clock-frequency = <400000>;

@@ -1269,6 +1287,12 @@ &tlmm {
			       <72 2>, /* Secure EC I2C connection (?) */
			       <238 1>; /* UFS Reset */

	ec_int_n_default: ec-int-n-state {
		pins = "gpio66";
		function = "gpio";
		bias-disable;
	};

	eusb3_reset_n: eusb3-reset-n-state {
		pins = "gpio6";
		function = "gpio";
+20 −0
Original line number Diff line number Diff line
@@ -70,4 +70,24 @@ config EC_LENOVO_YOGA_C630

	  Say M or Y here to include this support.

config EC_LENOVO_THINKPAD_T14S
	tristate "Lenovo Thinkpad T14s Embedded Controller driver"
	depends on ARCH_QCOM || COMPILE_TEST
	depends on I2C
	depends on INPUT
	select INPUT_SPARSEKMAP
	select LEDS_CLASS
	select NEW_LEDS
	select SND_CTL_LED if SND
	help
	  Driver for the Embedded Controller in the Qualcomm Snapdragon-based
	  Lenovo Thinkpad T14s, which provides access to keyboard backlight
	  and status LEDs.

	  This driver provides support for the mentioned laptop where this
	  information is not properly exposed via the standard Qualcomm
	  devices.

	  Say M or Y here to include this support.

endif # ARM64_PLATFORM_DEVICES
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@
obj-$(CONFIG_EC_ACER_ASPIRE1)	+= acer-aspire1-ec.o
obj-$(CONFIG_EC_HUAWEI_GAOKUN)	+= huawei-gaokun-ec.o
obj-$(CONFIG_EC_LENOVO_YOGA_C630) += lenovo-yoga-c630.o
obj-$(CONFIG_EC_LENOVO_THINKPAD_T14S) += lenovo-thinkpad-t14s.o
Loading