From d75593af3d3b3ad200b1c4389b4d2fe890471d83 Mon Sep 17 00:00:00 2001 From: Roberto Dantas <7robertodantas@gmail.com> Date: Sun, 22 Nov 2026 15:45:31 -0300 Subject: [PATCH] arm64: dts: apple: t6041-j575c: describe the boot NOR and its NVRAM The J575c leaves the QSPI controller disabled and describes no flash, so no MTD partition is labelled "nvram" and asahi-nvram and asahi-bless have nothing to open. Describe the boot NOR as the J614c/J616c do: the always-on supply, the jedec,spi-nor flash at 10 MHz single-lane, the nvram partition and its alias, and the QSPI power state. The J575c's ADT (macOS 27.0.1 and 27.2.1) has the same controller and layout: /arm-io/qspi is "qspi,qspimc" at 0x229118000 with IRQ 1573 (the t604x.dtsi qspi node), and /arm-io/qspi/spinor/anvram is 0x700000, 0x100000. Tested on a J575c with a device tree built from this commit: the flash probes (JEDEC ef6517, spi-nor-generic), the "nvram" partition appears as a 1 MiB MTD device, asahi-nvram reads it through the read-only node and asahi-bless reports the boot target. Signed-off-by: Roberto Dantas <7robertodantas@gmail.com> --- arch/arm64/boot/dts/apple/t6041-j575c.dts | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6041-j575c.dts b/arch/arm64/boot/dts/apple/t6041-j575c.dts index a9b42e9a63ab1..fe50c0ea9a676 100644 --- a/arch/arm64/boot/dts/apple/t6041-j575c.dts +++ b/arch/arm64/boot/dts/apple/t6041-j575c.dts @@ -36,12 +36,23 @@ dcp = &dcp; disp0 = &display; disp0-piodma = &disp0_piodma; + nvram = &nvram; }; chosen { stdout-path = "serial0:115200n8"; }; + /* + * The boot NOR runs from a PMU rail that is on whenever the SoC is + * and that no OS switches. The ADT gives the flash no supply. + */ + nor_flash_vcc: regulator-nor-flash-vcc { + compatible = "regulator-fixed"; + regulator-name = "nor-flash-vcc"; + regulator-always-on; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>; @@ -2015,3 +2026,38 @@ &gpu { power-domains = <&pmp_gfx>; }; + +/* + * Boot NOR, as on the J614c/J616c. ADT /arm-io/qspi ("qspi,qspimc", + * 0x229118000, IRQ 1573) is the t604x.dtsi qspi node, and the partition is + * /arm-io/qspi/spinor/anvram (0x700000, 0x100000), flash-relative; + * asahi-bless and asahi-nvram find it by its label. + */ +&qspi { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <10000000>; + spi-rx-bus-width = <1>; + spi-tx-bus-width = <1>; + vcc-supply = <&nor_flash_vcc>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + nvram: partition@700000 { + label = "nvram"; + reg = <0x700000 0x100000>; + }; + }; + }; +}; + +/* The QSPI controller cannot probe while its power state is disabled. */ +&ps_qspi { + status = "okay"; +};