Skip to content

mfd: macsmc: T6050: register the gP GPIO bank where the tree describes it - #2939

Open
ja-818 wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
ja-818:macsmc-t6050-gp-gpio
Open

ja-818 wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
ja-818:macsmc-t6050-gp-gpio

Conversation

@ja-818

@ja-818 ja-818 commented Nov 23, 2026

Copy link
Copy Markdown

On T6050 macsmc registers the gP bank (apple,smc-gpio) only for the other SoCs, so the J716s's N1 port (pwren-gpios on gP13) defers pcie-apple's probe forever: no PCIe, Wi-Fi or Bluetooth. This registers the bank with the T6050 described cells, under its own cell name ("macsmc-gpio" is the PCIO bank's). Only the J716s's tree describes it, so no other board changes. Seen on one J716s: Wi-Fi and Bluetooth come up with pwren-gpios kept. Report: betizzel/omarchy-m5#28.

🤖 Generated with Claude Code

…s it

On T6050 the SMC registers its input, power and hwmon cells, the PCIO
and low GPIO banks and the described reboot and RTC cells. The gP bank
(apple,smc-gpio) is only in the list for the other SoCs. The J716s's N1
port names its power line on that bank (pwren-gpios = <&smc_gpio 0x13
...>), so pcie-apple's port probe waits for a GPIO provider that never
appears: "Port /pcie@1cb0000000/pci@0,0 probe fail", deferred forever,
and no PCIe device, Wi-Fi or Bluetooth.

Register the gP bank with the T6050 described cells, under a cell name
of its own ("macsmc-gpio" is the PCIO bank's; gpio-macsmc binds both by
compatible). Only the J716s's tree describes the bank today, so no other
T6050 board changes.

Tested on one J716s (27.2 stub 26B123, omarchy-m5's v272-17 kernel with
this change) with pwren-gpios kept in its tree: the gP bank registers
("First GPIO key: gP01"), pcie-apple probes the N1 port with no
deferral, and Wi-Fi and Bluetooth come up.

Signed-off-by: Julian Arango <95070226+ja-818@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Review at 2e607bf.

Changes requested, for the commit trailer only. The change itself is right.

  1. Code: adding apple,smc-gpio to apple_smc_t6050_described_devs registers the gP bank only where a child node describes it, so a T6050 tree without that node behaves exactly as before. The separate cell name avoids clashing with the PCIO bank's macsmc-gpio, and binding goes by compatible, so gpio-macsmc picks up both. No new gate is added; the T6050 described-cells list already exists.
  2. Trailers: the commit carries Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>, and the PR body ends with "Generated with Claude Code". This tree keeps commit trailers human-only, so please drop the Co-Authored-By and re-push. An Assisted-by: LLM (Claude:Opus 5.5) line in the PR body is the place for it. Same request as on ASoC: apple: macaudio: add the J716 (16-inch M5 Pro), jack only #2921 and arm64: dts: apple: t6050-j716s: describe the GPU and the internal panel #2922.
  3. Ordering: today only the J716s tree in arm64: dts: apple: t6050-j716s: describe the GPU and the internal panel #2922 describes the bank, so this lands as a no-op until arm64: dts: apple: t6050-j716s: describe the GPU and the internal panel #2922 does. Please note the dependency in the body.

Row owed: once #2922 is in, a J716s boot on this tree at its head, showing the gP bank registering, pcie-apple probing N1 without deferral, and Wi-Fi plus Bluetooth up. The row in the body is from a different kernel tree.

@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.

Formal §1–§6 pre-PR checklist review at 2e607bfb94239d634a4787ce64503f1cf79e977b.

Code & Fork CI Safety Audit

  • Code (drivers/mfd/macsmc.c, +5/-2) — Clean: Adding MFD_CELL_OF("macsmc-gp-gpio", NULL, NULL, 0, 0, "apple,smc-gpio") to apple_smc_t6050_described_devs[] is sound and safe. apple_smc_add_described_devices() checks of_get_compatible_child(smc->dev->of_node, cells[i].of_compatible) (and balances of_node_put(np)) before calling devm_mfd_add_devices(), so T6050 devicetrees without an apple,smc-gpio child node are completely unchanged. Using "macsmc-gp-gpio" avoids a PLATFORM_DEVID_NONE name collision with apple_smc_described_devs's "macsmc-gpio" (apple,smc-pcio-gpio), and drivers/gpio/gpio-macsmc.c binds both by compatible and already handles apple,j716s gP13.
  • Fork CI Safety: Workflow run 45109476074 (Host tests, fork ja-818/linux) is action_required. The diff touches only drivers/mfd/macsmc.c (no workflow, script, Makefile, or Kconfig edits) and is safe for maintainer CI approval once re-pushed.

Blockers

  1. §4 Commit attribution (Hard Blocker):
    Commit 2e607bfb94239d634a4787ce64503f1cf79e977b contains Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> in its commit message. Per §4 of the pre-PR checklist, commits must carry human identity and a human Signed-off-by: only, with zero AI co-author, sign-off, or Assisted-by: trailers inside commits. Please drop the Co-Authored-By: line from the commit and re-push.
  2. §5 Evidence & CI:
    • Fork CI (Host tests) has not run yet (action_required).
    • The J716s test result in the commit/PR was collected on a different kernel tree (omarchy-m5 v272-17), and this change is a no-op on aurora-silicon/linux until the J716s DT dependency (#2922) adds the apple,smc-gpio node. Once re-pushed (and paired with #2922), please post a J716s boot row on aurora-silicon/linux confirming the gP bank registration (First GPIO key: gP01), pcie-apple N1 probe without deferral, Wi-Fi/Bluetooth up, and regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors).

Checklist Summary

  • §1 No model gating: Pass (uses existing apple_smc_t6050_described_devs DT-described cell mechanism; no board gate added).
  • §2 Production-ready, no hacks: Pass.
  • §3 Safety: Pass.
  • §4 Clean-room & attribution: Blocked on Co-Authored-By: AI trailer in commit 2e607bfb94.
  • §5 Evidence: Blocked on fork CI (action_required) and owed J716s hardware row on this tree.
  • §6 Naming: Pass.

Assisted-by: LLM (Gemini 4 Neon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants