Skip to content

arm64: dts: apple: t6041-j575c: add the DockChannel UART and release the GL3590 USB hub - #1499

Merged
RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
7robertodantas:j575c-dt-fixes
Nov 12, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
7robertodantas:j575c-dt-fixes

Conversation

@7robertodantas

Copy link
Copy Markdown
Contributor

Written with an AI assistant (Claude) on @7robertodantas's behalf; the hardware steps were run and checked on the owner's J575c.

Two J575c (Mac Studio M4 Max) fixes from its ADT, plus the binding change the second one needs. Test report: #1498. Context: #141.

DockChannel UART. The tree only has the Samsung UART (serial0), which needs a SuperSpeed cable on the SBU pins. Over macvdmtool reboot debugusb the console is DockChannel channel 1 (aura already prints there), but the kernel had no node. This adds one from ADT /arm-io/dockchannel-uart: config 0x5_0883_8000, data 0x5_0883_c000, IRQ window 0x5_0880_c000, IRQ 360, sw-drain, tx-never-wait, as serial0. With it, earlycon/ttyDC0 work, and U-Boot and GRUB print on it and accept input.

GL3590 hub reset. The back USB-A and front USB-C ports hang off a GL3590 hub behind the ASM3142. ADT /arm-io/spi3/usb3hub-flash/usb3hub-fw names usb3hub_rst (AP pin 127) and usb3hub_flash_oe (AP pin 130). The bootloader leaves both low, so the ASM3142 enumerates but its root ports never see the hub:

pin 127 usb3hub_rst       output, low
pin 130 usb3hub_flash_oe  output, low
usb1-port1..2 / usb2-port1..2: not attached

Setting both high (first by hand, then with these hogs, as on the J773g) brings the hub up (05ac:8009 USB 2, 05ac:800a USB 3 Gen2), and usb3hub_fwload_done (pin 128) drops.

Binding. apple,pinctrl.yaml only allows -pins children, so the hogs gave two new CHECK_DTBS warnings on apple,t6041-pinctrl. The J773g's hogs don't warn only because apple,t8132-pinctrl isn't in the binding. The first commit allows -hog nodes the way stm32/qcom do.

Tested on a J575c (Arch minimal from installer alpha.19, OS firmware 26.6.2) after a clean reboot with no manual GPIO setting:

  • back USB-A: USB microphone (records audio) and a HID device
  • front USB-C: an iPhone (high speed) and a HID device (full speed)
  • DockChannel console over debugusb from an M1 Pro host
  • dt-validate (dtschema 2026.9) on the J575c DTB: 0 warnings at base and head; dt-doc-validate and yamllint pass on the binding.

Not tested: USB 3 devices behind the hub; other boards. The kernel/U-Boot boot itself needed U-Boot 250385f8 (the alpha.19 payload's e1ef8b63 panics with "Unsupported SoC"; see #1498).

🤖 Generated with Claude Code

7robertodantas and others added 3 commits November 10, 2026 21:29
Some Macs need lines held at a fixed level from boot, for example the
reset and SPI-flash enable of the USB hub on the J575c, which the
bootloader leaves asserted. Allow gpio-hog child nodes, as other pin
controller bindings do.

Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Roberto Dantas <[email protected]>
The J575c tree only describes the Samsung UART (serial0), which is reachable
only over the SBU pins with a SuperSpeed cable. Over a VDM debugusb link
(macvdmtool reboot debugusb) the console is DockChannel channel 1, which
aura already uses, but the kernel had no node for it, so nothing after the
bootloader was visible.

Describe it from the ADT's /arm-io/dockchannel-uart: the block at
0x5_0882_8000 with a 0x10000 stride per channel, channel 1's config window
at 0x5_0883_8000 and data window at 0x5_0883_c000, the interrupt window
at 0x5_0880_c000 (0x18), IRQ 360 and enable-sw-drain. Nothing drains the
channel unless a host reads the link, so TX never waits. Make it serial0
(and keep the Samsung UART as serial1) so stdout-path follows it.

Tested on a J575c (macOS 26.6.2 OS firmware) over debugusb from an M1 Pro
host: earlycon, ttyDC0 and the kernel console work, and U-Boot and GRUB
print on it and accept input.

Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Roberto Dantas <[email protected]>
The back USB-A and front USB-C ports hang off a GL3590 hub behind the
ASM3142 on PCIe port 3. The hub loads its firmware from its own SPI flash;
the ADT's /arm-io/spi3/usb3hub-flash/usb3hub-fw names its reset line
(usb3hub_rst, AP pin 127) and the flash output enable (usb3hub_flash_oe,
AP pin 130). The bootloader leaves both low, which holds the hub in reset:
the ASM3142 enumerates, but its root ports never see the hub, so none of
the four ports work.

Hog both lines high, as on the J773g. The hub then enumerates
(05ac:8009 USB 2, 05ac:800a USB 3 Gen2) and usb3hub_fwload_done (AP pin
128) drops once it has loaded.

Tested on a J575c after a clean reboot with no manual GPIO setting: a USB
microphone (records audio) and a HID device on the back USB-A ports, and an
iPhone and a HID device on the front USB-C ports, all at USB 2 speeds.
USB 3 devices behind the hub are not tested yet.

Assisted-by: LLM
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Roberto Dantas <[email protected]>

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

No remaining blocking source findings in the reviewed/integrated net change. DockChannel console and GPIO-hog release are narrowly scoped to J575c and reuse the existing binding/clock/controller contracts. The posted clean-reboot USB2 hub/device evidence supports that enablement. It does not establish USB3 devices behind GL3590, and the old unsupported-SoC U-Boot path is not qualified by this source change. Fresh maintainer-approved host/DT checks must pass.

Approval does not waive pending CI, dependency order, hardware-safety gates or source-versus-release qualification. No source merge is an installed-loader write or a new hardware test.

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

Checked the DockChannel node against the T6050 boards, the two hogs against the J773g ones, and the binding pattern. One note for the commit message: the Samsung UART moves to serial1, so its console is ttySAC1 on this board now. Looks good.

@RyanTheTide
RyanTheTide merged commit 1b59c0e into aurora-silicon:integration/aurora Nov 12, 2026
2 of 5 checks passed
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