Skip to content

arm64: dts: apple: t6050-j714c: Trackpad reset, SMC sensors and keyboard backlight - #1984

Merged
DjDeveloperr merged 3 commits into
aurora-silicon:mainfrom
XY55bqg6iAw8ttP:j714c-dt-fixes
Nov 24, 2026
Merged

DjDeveloperr merged 3 commits into
aurora-silicon:mainfrom
XY55bqg6iAw8ttP:j714c-dt-fixes

Conversation

@XY55bqg6iAw8ttP

@XY55bqg6iAw8ttP XY55bqg6iAw8ttP commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What: Three device-tree fixes for the 14-inch M5 Max (J714c), each copying what the J714s does: the host resets the trackpad AFE (without it the trackpad is dead), the SMC fan, power and temperature sensors are enabled, and the keyboard backlight is described.
Tested: J714c at 27d890b on main 037f7bc, A/B against main's DTB on the same kernel: the trackpad works (473,784 bytes of input in 240 s, against 0 on main), the keyboard backlight lights, macsmc_hwmon reports two fans, 342 temperatures, power, voltage and current, and s2idle passes 3/3. No new errors against main.
Risk: two-way door · J714c only (no other board includes t6050-j714c.dts)
Not yet: fan control under load (the SMC kept both fans at 0 rpm at idle); the 342 discovered temperature keys are raw, and some TV* keys read 8 to 16 °C at idle, so not every one is a die temperature.

Details
Commit Problem on J714c today Fix
Reset the trackpad AFE from the host apple,firmware-managed-reset leaves the AFE reset to the MTP firmware, which never does it on this board: AFE[0] Chip Boot Failure for HBPP: No HINT_L, then iface multi-touch start timed out. The trackpad is dead. apple,afe-reset-gpios = <&smc_gpio_low 28 GPIO_ACTIVE_LOW> on mtp_hid, as on the J714s, and drop apple,firmware-managed-reset.
Enable the SMC fan, power and temperature sensors &smc_hwmon is disabled ("fan and power keys are not yet checked"), so no fan, power or temperature readings. The J714s block: hwmon-common, hwmon-fan-dual, hwmon-laptop, fan mode keys F0md/F1md, temperature discovery.
Describe the keyboard backlight No kbd_backlight LED. pwm-leds on fpwm0 channel 0, 40000 ns, as on the J714s.

Where the values come from (J714cAP ADT, 27.3 beta 1):

  • Trackpad reset: dockchannel-mtp/mtp-transport/multi-touch function-afe-reset is the same SMC pcIO template as on the J714s, so SMC GPIO gp1c (28), active low.
  • Fans: two fans, F0Ac/F1Ac, 2317 to 7826 rpm; the SMC drives them.
  • Keyboard backlight: arm-io/pwm0 is fpwm,s5l8920x (0x5_05040000 in the DT, the same arm-io offset as the GPU), pwm0/kbd-backlight default-hz = 25000, so a 40000 ns period.

#2282 (draft) moves the keyboard backlight block into a shared t6050-kbd-backlight.dtsi; if it lands first, the third commit becomes an include.

Evidence

Build, at 27d890b on main 037f7bc: the J714c DTB builds; dtc with default warnings gives the same single pre-existing warning on main and on the head (/soc/pmp@284e00000: simple-bus unit address format error).

Hardware: one kernel built from main 037f7bc (LLVM, 7.3.0), stub 27.3 beta 1, m1n1 stage 2 1.0.0b13, a minimal command line, no external display. Two boots; only the J714c DTB in the m1n1 payload differs.

main's J714c DTB PR head DTB
Trackpad AFE[0] Chip Boot Failure for HBPP: No HINT_L, AFE[0] bootload failed: 1, iface multi-touch start timed out; 0 bytes of input in 240 s New AFE[0] cbor image received, Interface multi-touch is now ready; 473,784 bytes of input in 240 s, pointer moves
Keyboard backlight no LED kbd_backlight, max 255; at 128 the PWM runs 20042 / 40000 ns and the keys light
SMC sensors no macsmc_hwmon 2 fans (min 2317, max 7826, 0 rpm at idle), 342 temperatures, 4 power (Total System Power 5.5 W, Heatpipe 1.8 W), 2 voltage, 1 current
s2idle x3, power-key wake not run 3/3, suspend_stats success 3, fail 0
Failed units 1 (aurora-sep.service: the SEP does not come up on main on this board) 1 (the same)
err-level kernel lines 11 11: the same set without iface multi-touch start timed out (PMP report probe -110, Thunderbolt ACIO PM domain -110, fab1_soc power state)

SELinux is not enabled on this install (lsm=capability,landlock).

@RyanTheTide

Copy link
Copy Markdown
Contributor

@XY55bqg6iAw8ttP, thanks for the J714c work here. Beyond this PR, two J714c rows would help:

  1. Speakers: the J714c has no sound card node yet. Please post the ADT values for the amp nodes (i2c addresses, speaker order) so we can add it. The speakers stay at the safe level, so please don't play anything through them. Confirming that the amps probe is enough.
  2. SIO and the PMP CA-event ack: today both are enabled only on the J714s (drivers/dma/apple-sio.c:703-706, drivers/soc/apple/rtkit.c:2276-2277). We are widening both to every board with the hardware and will link the branch. A boot of it plus dmesg | grep -i -E "rtkit|pmp|sio" before and after 30 minutes of uptime is what we need: SIO users (DP audio) probe, and no RTKit timeout.

dmesg plus the command output, here or in a new issue, is perfect.

@RyanTheTide

Copy link
Copy Markdown
Contributor

As promised, the branch that widens SIO and the PMP CoreAnalytics acknowledgement from the J714s to every T6050 board (keyed on the hardware instead of the board name) is #2412 (draft). A boot of it plus dmesg | grep -i -E "sio|rtkit|pmp" right after boot and after 30 minutes of uptime is all we need: SIO users probe, no "refused auxiliary buffer request", no RTKit timeouts.

@RyanTheTide

Copy link
Copy Markdown
Contributor

On 110861f, the J714c still has apple,firmware-managed-reset on the trackpad, smc_hwmon disabled and no keyboard backlight, so all three commits are still needed. They apply cleanly on 110861f (the only J714c change on the tip since this branch's base is 712f23d, which enables the MTP nodes per board). #2282 (draft) moves the keyboard backlight block into a shared t6050-kbd-backlight.dtsi. If it lands first, the third commit can become an include. The hardware row in the PR body covers all three changes.

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over the 138 Apple DTBs this change rebuilds: no new warnings against the tip.

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-PR checklist review at 671344d4a88d (checked against integration/aurora 70a00e583b03): 3 blockers (§4 attribution, §2 contradictory DT comment, §5 regression counts).

Code, DT, and Safety Audit (§1–§3, §6)

  • DT wiring is sound: Host-driven trackpad AFE reset (apple,afe-reset-gpios = <&smc_gpio_low 28 GPIO_ACTIVE_LOW>), &smc_hwmon (hwmon-common/hwmon-fan-dual/hwmon-laptop, F0md/F1md, discovered temperatures), and kbd_backlight on &fpwm0 all align with t6050-j714s.dts, t6050-die0.dtsi, and the J714cAP ADT. Not superseded on integration/aurora.
  • Live CI: dt-checks and host-tests are green on 671344d4a88d.

Blockers

  1. §4 commit trailers: All three commits (4adc0e3e465b, 9169f3e1e7f9, 671344d4a88d) carry Assisted-by: LLM and Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> in their commit messages. Per §4, commit messages must carry human author/committer identity and human Signed-off-by: only (zero AI trailers in commits).
  2. §2 contradictory DT comment (arch/arm64/boot/dts/apple/t6050-j714c.dts:239-240): The block comment immediately above &mtp_dockchannel still states "The J714c's MTP firmware owns the trackpad AFE reset, so there is no reset GPIO here, unlike the J716c.", which directly contradicts the new apple,afe-reset-gpios property and inline comment ("The MTP firmware does not reset the AFE on this board") added 15 lines below. Please update lines 239-240 to match.
  3. §5 regression counts: The J714c hardware run verifies the trackpad, macsmc_hwmon, and kbd_backlight, but omits §5 regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors) on a current integration/aurora + PR head boot. Please attach them on the updated head.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
With apple,firmware-managed-reset the MTP firmware is left to reset the
trackpad's AFE, and on the J714c it never does: the AFE never boots
("AFE[0] Chip Boot Failure for HBPP: No HINT_L") and the multi-touch
interface times out, so the trackpad is dead.

The J714cAP ADT gives dockchannel-mtp/mtp-transport/multi-touch a
function-afe-reset of the SMC pcIO template (0x10000, 0x11c0000), the
same line as on the J714s: SMC GPIO gp1c, active low. Describe it as
apple,afe-reset-gpios on mtp_hid, as the J714s does, and drop
apple,firmware-managed-reset.

Tested on a J714c: the host sends the AFE image, the multi-touch
interface comes up and the trackpad works. The other ten T6050 board
DTBs are byte-identical.

Signed-off-by: XY55bqg6iAw8ttP <132220364+XY55bqg6iAw8ttP@users.noreply.github.com>
…ture sensors

The J714c left smc_hwmon disabled until its fan and power keys were
checked. The J714cAP SMC has the J714s's keys: two fans, F0Ac and F1Ac,
2317 to 7826 rpm, with the T6050 mode keys F0md and F1md, and the shared
power, voltage and current keys. Use the J714s block: the common, dual
fan and laptop sensors, temperature discovery, and the shared
temperature nodes and apple,soc-die-keys removed so discovery runs.

Tested on a J714c: macsmc_hwmon reports both fans, 342 temperature keys
and the system, AC input and heatpipe power. The other ten T6050 board
DTBs are byte-identical.

Signed-off-by: XY55bqg6iAw8ttP <132220364+XY55bqg6iAw8ttP@users.noreply.github.com>
The J714cAP ADT has arm-io/pwm0, an fpwm s5l8920x at 0x3_05040000
(0x5_05040000 here, fpwm0 in the T6050 inventory), with a kbd-backlight
child at default-hz 25000. Describe it as the J714s does: a pwm-leds
kbd_backlight on fpwm0 channel 0 with a 40000 ns period, and enable
fpwm0.

Tested on a J714c: kbd_backlight appears with max brightness 255, the
PWM follows the brightness (20 us of 40 us at 128) and the keys light.
The other ten T6050 board DTBs are byte-identical.

Signed-off-by: XY55bqg6iAw8ttP <132220364+XY55bqg6iAw8ttP@users.noreply.github.com>
@XY55bqg6iAw8ttP

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr thanks for the review. All three are addressed at 27d890b, rebased onto main 037f7bc (no conflicts):

  1. The three commits carry the author and Signed-off-by only.
  2. The comment above &mtp_dockchannel now says the host resets the trackpad AFE through an SMC GPIO, as on the J714s, and the inline comment no longer repeats it.
  3. Regression row: J714c, main 037f7bc (integration/aurora's new name) against the PR head on the same kernel, only the DTB swapped. Both boot to the desktop.
    • Failed units: 1 on both, aurora-sep.service. The SEP does not come up on this board on main with or without this PR (the enclave did not seal and unseal a trusted key within 120 s). On our own kernel, which gives the J714c the T6050 SEP profile, the same service passes.
    • New kernel errors: 0. Both boots log 11 err-level lines: the same PMP report probe -110, Thunderbolt ACIO PM domain -110 and fab1_soc power-state lines, plus iface multi-touch start timed out on main only.
    • SELinux denials: none possible, SELinux is not enabled on this install (lsm=capability,landlock).
    • s2idle 3/3 on the head. The table is in the body.

The body now follows the PR template.

@RyanTheTide on your two J714c asks from 11-19:

  1. Speakers: main already carries the six J714c amps, and the ADT values in M5 Pro/Max (T6050): ADT values for HDMI, internal panel, Touch ID and speakers, plus rows runnable today #2449 match them (six sn012776, 0x38/0x39/0x3a left, 0x3b/0x3c/0x3d right, the same speaker order and speaker-config, AID 40, speaker ID 3). On both boots above all six amps probe: six tas2764 hwmon devices. Nothing was played through them.
  2. soc: apple: rtkit: echo OSLOG counters on every RTKit; key T6050 PMP/SIO paths on the hardware #2412: not run yet. As a baseline, our own kernel without soc: apple: rtkit: echo OSLOG counters on every RTKit; key T6050 PMP/SIO paths on the hardware #2412 logs apple_pmp 284500000.pmp: RTKit: refused auxiliary buffer request 14 times in the first 80 minutes after boot.

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 27d890b3: ready to merge

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 27d890b3
Conflicts ok none
PR text ok Risk: two-way · J714c only (no other board includes t6050-j714c.dts)

Areas: area:bringup
Merge: gh pr merge 1984 --merge (Owners and Core through the bypass: add --admin).

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH at 27d890b32d3c
Blockers: none in code, policy, or hardware evidence; awaiting maintainer approval and green runs of the fork CI workflows (Device tree checks, Host tests, pr-text, currently action_required at 27d890b32d3c).
Checked:

  • Prior blockers from 671344d4a88d: all 3 resolved (1. commit messages clean; 2. &mtp_dockchannel comment updated at arch/arm64/boot/dts/apple/t6050-j714c.dts:286-288; 3. exact-head J714c A/B regression row added).
  • §1–§3, §6 (DT & safety): J714c-only diff (t6050-j714c.dts), matches t6050-j714s.dts and t6050-die0.dtsi (apple,afe-reset-gpios = <&smc_gpio_low 28 GPIO_ACTIVE_LOW>, &smc_hwmon with hwmon-common/hwmon-fan-dual/hwmon-laptop and F0md/F1md under SMC fan control, pwm-leds kbd_backlight on &fpwm0 40000 ns); no other T6050 board includes t6050-j714c.dts.
  • §4 (commits & PR text): all 3 commits (8247eef83cf1, fb115ec8fc2e, 27d890b32d3c) carry human author/committer and Signed-off-by only; PR title, body, and commits are clean and include Tested: and Risk:.
  • §5 (evidence & CI): J714c A/B hardware row at 27d890b32d3c on main 037f7bca verifies trackpad, keyboard backlight, macsmc_hwmon, s2idle 3/3, 0 new failed units, and 0 new kernel errors (SELinux disabled on test install). readiness / readiness is green, but dt-checks, host-tests, and pr-text are still action_required on this fork PR.
Evidence
  • Commits reviewed (main 037f7bca -> 27d890b32d3c):
    • 8247eef83cf1 — arm64: dts: apple: t6050-j714c: Reset the trackpad AFE from the host
    • fb115ec8fc2e — arm64: dts: apple: t6050-j714c: Enable the SMC fan, power and temperature sensors
    • 27d890b32d3c — arm64: dts: apple: t6050-j714c: Describe the keyboard backlight
  • DT cross-check: Verified &smc_gpio_low, &smc_hwmon (apple,discover-temperatures / apple,soc-die-keys), &fpwm0, and &ps_fpwm0 in t6050-die0.dtsi, hwmon-{common,fan-dual,laptop}.dtsi, and t6050-j714s.dts. No other board includes t6050-j714c.dts.
  • CI runs at 27d890b32d3cf05ed3dc8c7c9c89a357cd043a58:
    • pr-readiness (run 45430121968): success (earlier run 45430145831 cancelled)
    • Device tree checks (dt-checks.yml, run 45430122915): action_required
    • Host tests (host-tests.yml, run 45430122841): action_required
    • pr-text (pr-text.yml, run 45430145017): action_required
  • Non-blocking nit: In the PR Evidence section, refer to the stage 2 bootloader as aura rather than its legacy name.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 27d890b32d3c

Blockers: none.

Checked: thank you. No Apple material, DT only (J714c copies the J714s). The trailers are gone, and the comment above &mtp_dockchannel is fixed. Your J714c A/B at this head against main's DTB: the trackpad works (473,784 bytes of input in 240 s against 0), the keyboard backlight lights, and macsmc_hwmon reports two fans and 342 temperatures.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 22:32

Superseded by the review at 27d890b

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 24, 2026
@DjDeveloperr
DjDeveloperr merged commit b59f444 into aurora-silicon:main Nov 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants