Skip to content

arm64: dts: apple: t6050-k114s: describe the NVRAM partition - #3103

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
chrisohearn:feat/k114s-nvram
Nov 26, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
chrisohearn:feat/k114s-nvram

Conversation

@chrisohearn

@chrisohearn chrisohearn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What: Describes the K114s boot NOR's NVRAM partition and the nvram alias, read-only, so the startup-disk tools find
the partition. The node is the K114c's node, single-wire as on the J775D, with this Mac's values, which equal the ADT.
Tested: on a K114s (Mac17,13) at this head: one boot with this file as the tree; the partition read with read-only; set; 0 failed units and no new kernel errors (hardware row in the comments). Before it, the partition ran from the boot loader's tree, which carries the same node without read-only; (see Evidence).
Risk: two-way door, K114s only: the diff changes no other file. Reads only. Writes stay closed in the device tree
(read-only;) and in the driver (read_only defaults to Y, and the flash's JEDEC ID is not in the part table).
Not yet: nothing at this head; the startup-disk write path stays closed by design.

Details
Evidence

Build and check, on main 38ffa67 plus this diff, clang 23.1.3:

make LLVM=1 ARCH=arm64 CHECK_DTBS=y apple/t6050-k114s.dtb   ->  exit 0, dtschema 2026.9, no warnings

The compiled tree has the nvram alias and spi@505118000 with flash@0 and partition@700000 (read-only); the
booted tree has the same nodes without read-only (phandle numbers and the loader's status aside).

On the K114s (kernel main 4abf0f8 plus out-of-tree patches, one normal boot):

spi-nor spi1.0: supply vcc not found, using dummy regulator
Creating 1 MTD partitions on "spi1.0":
0x000000700000-0x0000007c0000 : "nvram"

All 786432 bytes of the partition read through the read-only MTD device on an earlier boot, spi_apple_qspi.read_only
stayed Y, and nothing was written. The startup-disk write path was not exercised.

The K114s ADT has the boot NOR's NVRAM at /arm-io/qspi/spinor/anvram:
offset 0x700000, 0xc0000 bytes, 12 banks of 64 KiB. Describe that one
partition, with the nvram alias that asahi-bless and the boot loader
use to find it, as the K114c and J775D do. Only this partition is
described, so the rest of the NOR has no device node. The flash is
single-wire, as on the J775D, so spi-nor sends no quad-enable status
write at probe. The partition is read-only, as on the K114c.

The node follows Rolando Trevino's J716s node (rolotrealanis98/
m5pro-linux, contrib/pending/nvram), itself after the J775D.

Also say in the file header that only this block has run on the
hardware, instead of calling the whole file unbooted.

Signed-off-by: Chris O'Hearn <[email protected]>
@chrisohearn

Copy link
Copy Markdown
Contributor Author

K114s (Mac17,13, T6050) at 59c72f163caa: PASS, one boot with this head's t6050-k114s.dtb as the tree.

  • Build: make LLVM=1 ARCH=arm64 CHECK_DTBS=y apple/t6050-k114s.dtb at this head, exit 0, dtschema 2026.9; 108,694 bytes. The Stage 2 was the configured loader (Aura 1.0.0b15 with the K114s camera row), this tree and the configured trailer, booted once through aura-try. chosen read back the test file.
  • Kernel: aurora-silicon/linux main 4abf0f83c290 plus local K114s patches. OS firmware 27.2. Kernel command line not the default: it adds pd_ignore_unused, clk_ignore_unused, m5_pmgr_ro, m5_pmgr_allow, idle, macsmc.m5_n1_budget, macsmc.m5_pcio_budget, nvme_apple.flush_interval, arm64.nowfxt and user4k.
  • Partition: the booted tree's nvram alias leads to partition@700000, label nvram, reg = <0x700000 0xc0000>, with read-only. The kernel logged Creating 1 MTD partitions on "spi0.0" and 0x000000700000-0x0000007c0000 : "nvram" (spi1.0 on the loader's tree in the PR's Evidence). mtd0 flags read 0x800 (MTD_WRITEABLE clear; 0xc00 on the loader's tree without read-only;), spi_apple_qspi.read_only stayed Y, and all 786432 bytes read through /dev/mtd0ro. Nothing was written.
  • Regression counts on the same boot, taken 90 s after startup (the system still read starting, because the recording service itself was running): 0 failed units (system and user), no new error-priority kernel lines against the previous boot, 0 Oops/WARNING lines.
  • Not checked: what this board file does not describe yet (the internal panel's DCP is disabled, and sound and Wi-Fi have no nodes in this file, as expected), the startup-disk write path, and a second K114s.

This covers the three "Not yet" items, so the PR leaves draft.

@chrisohearn
chrisohearn marked this pull request as ready for review November 26, 2026 00:28
@chrisohearn
chrisohearn requested review from a team as code owners November 26, 2026 00:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T00:39:19.435365Z 59c72f1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 59c72f16: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 59c72f16
Conflicts ok none
PR text ok Risk: two-way · K114s only: the diff changes no other file. Reads only. Writes stay closed in the device tree (read-only;) and in the driver (read_only defaults to Y, and the flash's JEDEC ID is not in the part table).

Areas: area:bringup

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.

Read the whole diff. It's K114s-only and read-only, matches the K114c and J775D nodes, and the K114s row at this head shows the partition. Looks good.

@DjDeveloperr
DjDeveloperr merged commit a463635 into aurora-silicon:main Nov 26, 2026
3 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) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants