Skip to content

arm64: dts: apple: t8140-j700: enable uart0 - #1574

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
aesref/neo-uart0
Nov 11, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
aesref/neo-uart0

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Enables uart0 (serial@385200000) on the J700 and gives the three Samsung UARTs fixed serialN aliases.

  • uart0 uses clkref for both clocks, like uart4 and uart5. With the PMGR clocks it fails to probe with "Controller clock not found" (-ENOENT), because the PMGR clock provider is not enabled on T8140 yet.
  • uart0 probes at about 0.2 s, while uart4 and uart5 wait for pinctrl until about 3.2 s. Without aliases uart0 takes ttySAC0 and uart4/uart5 move to ttySAC1/ttySAC2. The aliases keep the names fixed: uart4 = ttySAC1, uart5 = ttySAC2, uart0 = ttySAC3. serial0 stays the DockChannel UART.

Test (Neo, J700)

Kernel 7.3.0-aurora-aesref2 (integration/aurora 9b181ec base). The DTB is the integration j700 DTB with these three changes applied, booted as a RAM-only trial.

  • 385200000.serial: ttySAC3 MMIO32:0x0000000385200000 (irq = 46) is a APPLE S5L, bound to samsung-uart; uart4/uart5 on ttySAC1/ttySAC2.
  • A bounded open of /dev/ttySAC3 (receive only, nothing attached, no transmit) is clean. The uart0 power domain goes back off when the port is closed.
  • 0 event-log UE lines, 0 AVC denials, SELinux enforcing, 0 failed units.
  • The only kernel error is the known intermittent dock-port race (phy-apple-atc: Failed to lock pipehandler, then the sn201202x mux retry succeeds), which also shows up on boots without this change.

🤖 Generated with Claude Code

uart0 sits behind the SIO and UART_P power states, which are now
described correctly. Enable it with clkref as its clocks, like uart4
and uart5, since the PMGR clock provider is not enabled on this SoC
yet. Nothing is attached to it on the J700.

uart0 probes before uart4 and uart5, which wait for pinctrl, so the
ttySAC numbers would depend on probe order. Give the three Samsung
ports fixed aliases: uart4 is ttySAC1, uart5 is ttySAC2 and uart0 is
ttySAC3. serial0 stays the DockChannel UART.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Buildbox gates: scripts/dtc/apple-dt-check.sh 9b181ec3..e098cc3e: 137 DTBs build at base and head, 412 warning lines on both, 0 new warnings. Branch is clean against integration/aurora 716670b.

@RyanTheTide
RyanTheTide merged commit e8581a0 into integration/aurora Nov 11, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the aesref/neo-uart0 branch November 11, 2026 18:22
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.

1 participant