From 135768af3b02b6ee53356f171bfd66ac4bb57bbe Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Tue, 10 Nov 2026 02:36:22 -0500 Subject: [PATCH] arm64: dts: apple: t6050-j714s: Add the keyboard and trackpad The internal keyboard and trackpad are HID devices behind the MTP's DockChannel FIFO (ADT /arm-io/dockchannel-mtp/mtp-transport, with the multi-touch, keyboard, stm, actuator and tp-accel children). Describe the transport as t6050-j716s.dts does, with the J714s trackpad firmware name. Its AFE reset is the ADT mtp function-afe-reset, SMC pcIO template (0x10000, 0x11c0000), which is SMC GPIO gp1c, so the unused pcIO node goes. The keyboard alias lets the loader fill the layout from the ADT's keyboard node. The keyboard backlight is the ADT pwm0/kbd-backlight at 25 kHz (default-hz 25000), channel 0 of the fast PWM, as on J716s. The M5 Pro's default SSD boot has run these nodes from its DT overlay since 2026-11-09: Hyprland sees apple-mtp-keyboard and apple-mtp-multi-touch. Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t6050-j714s.dts | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index 6fc1b66157762..32005ea0bcc50 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -13,6 +13,7 @@ /dts-v1/; +#include #include "t6050-max.dtsi" / { @@ -44,6 +45,79 @@ status = "disabled"; }; +/* The keyboard backlight: ADT pwm0/kbd-backlight, channel 0 at 25 kHz */ +/ { + aliases { + /* The loader fills the keyboard layout from the ADT's keyboard node */ + keyboard = &keyboard; + }; + + led-controller { + compatible = "pwm-leds"; + + led-0 { + pwms = <&fpwm0 0 40000>; + label = "kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + max-brightness = <255>; + default-state = "keep"; + }; + }; +}; + +&fpwm0 { + status = "okay"; +}; + +/* + * The keyboard and trackpad: the HID transport on the MTP's DockChannel FIFO + * (ADT dockchannel-mtp/mtp-transport: multi-touch, keyboard, stm, actuator, + * tp-accel), as on J716s. + */ +&mtp_dockchannel { + mtp_hid: input@8000 { + compatible = "apple,dockchannel-hid"; + reg = <0x8000 0x1000>, <0xc000 0x1000>, + <0x0 0x1000>, <0x4000 0x1000>; + reg-names = "config", "data", "rmt-config", "rmt-data"; + iommus = <&mtp_dart 0>; + interrupt-parent = <&mtp_dockchannel>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>, + <3 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + apple,fifo-size = <0x800>; + apple,helper-cpu = <&mtp>; + /* + * ADT mtp function-afe-reset is the SMC pcIO template (0x10000, 0x11c0000), + * the same line as SMC GPIO gp1c, active low, which gpio-macsmc drives. + */ + apple,afe-reset-gpios = <&smc_gpio_low 28 GPIO_ACTIVE_LOW>; + + multi-touch { + apple,power-method = <2>; + firmware-name = "apple/tpmtfw-j714s.bin"; + }; + + keyboard: keyboard { + hid-country-code = <0>; + apple,keyboard-layout-id = <0>; + }; + + stm { + }; + + actuator { + }; + + tp-accel { + }; + }; +}; + +/* Nothing here drives the SMC pcIO outputs, and the AFE reset above uses gp1c */ +/delete-node/ &smc_pcio; + #define T6050_J714S #include "t6050-peripherals.dtsi"