Repository navigation
arm64: dts: apple: t6050-k114s: describe the NVRAM partition - #3103
Conversation
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]>
|
K114s (Mac17,13, T6050) at
This covers the three "Not yet" items, so the PR leaves draft. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
What: Describes the K114s boot NOR's NVRAM partition and the
nvramalias, read-only, so the startup-disk tools findthe 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 withoutread-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_onlydefaults toY, 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
nvramalias;&qspienabled;flash@0(jedec,spi-nor, 25 MHz, single-wire) with a fixed partitionpartition@700000labellednvram,reg = <0x700000 0xc0000>,read-only. The staticregis the ADT's; the J775Dleaves it to the loader. The K114c carries the same
read-only;on the same flash.whole has not been booted.
rolotrealanis98/m5pro-linux,contrib/pending/nvram), itselfafter the J775D.
what arm64: dts: apple: t6050: Share the camera, add J714c, J716s, K114s, K116c #2275, arm64: dts: apple: t6050: describe the GPU on J714c, J873s, K114s, K116c #2276, arm64: dts: apple: t6050: enable the media engines on every board #2278, arm64: dts: apple: t6050: share the K boards' N1 and USB-C ports, add K114s and K116c #2280, arm64: dts: apple: t6050-k114-k116: SMC fans and sensors on all four boards #2281, arm64: dts: apple: t6050: share the keyboard backlight, add it to J716c #2282, arm64: dts: apple: t6050: describe the AOP on every MacBook Pro #2285 and arm64: dts: apple: t6050: share the Neural Engine with every board #2293 carry.
Evidence
Build and check, on
main38ffa67 plus this diff, clang 23.1.3:The compiled tree has the
nvramalias andspi@505118000withflash@0andpartition@700000(read-only); thebooted tree has the same nodes without
read-only(phandle numbers and the loader'sstatusaside).On the K114s (kernel
main4abf0f8 plus out-of-tree patches, one normal boot):All 786432 bytes of the partition read through the read-only MTD device on an earlier boot,
spi_apple_qspi.read_onlystayed
Y, and nothing was written. The startup-disk write path was not exercised.