Repository navigation
arm64: dts: apple: t6041-j575c: add the DockChannel UART and release the GL3590 USB hub - #1499
Conversation
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
1b59c0e
into
aurora-silicon:integration/aurora
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 debugusbthe 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-fwnamesusb3hub_rst(AP pin 127) andusb3hub_flash_oe(AP pin 130). The bootloader leaves both low, so the ASM3142 enumerates but its root ports never see the hub:Setting both high (first by hand, then with these hogs, as on the J773g) brings the hub up (
05ac:8009USB 2,05ac:800aUSB 3 Gen2), andusb3hub_fwload_done(pin 128) drops.Binding.
apple,pinctrl.yamlonly allows-pinschildren, so the hogs gave two new CHECK_DTBS warnings onapple,t6041-pinctrl. The J773g's hogs don't warn only becauseapple,t8132-pinctrlisn't in the binding. The first commit allows-hognodes 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:
dt-doc-validateand 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'se1ef8b63panics with "Unsupported SoC"; see #1498).🤖 Generated with Claude Code