Skip to content

Commit 6b26ff4

Browse files
committed
arm64: dts: apple: t6050-k114c: the boot NOR and its read-only nvram partition
Enable the QSPI controller with a jedec,spi-nor flash on chip select 0 and the 0xc0000-byte nvram partition at 0x700000, read-only, so asahi-bless can read the boot state. The flash ID is probed by spi-nor.
1 parent 0abc2f3 commit 6b26ff4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎arch/arm64/boot/dts/apple/t6050-k114c.dts‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/* kboot fills the N1's factory addresses from /chosen through these */
3030
wifi0 = &n1_alpha;
3131
bluetooth0 = &n1_beta;
32+
nvram = &nvram;
3233
};
3334
};
3435

@@ -581,3 +582,29 @@
581582
<&ps_atc2_cio_usb>, <&ps_atc2_cio_auss>, <&ps_atc2_pcie>;
582583
apple,pcie-tunnel = <&acio2_pcie_tunnel>;
583584
};
585+
586+
/*
587+
* The boot NOR. spi-nor reads the part's JEDEC ID itself. The partition is
588+
* read-only: no program or erase reaches the flash until a later change lifts it.
589+
*/
590+
&qspi {
591+
status = "okay";
592+
593+
flash@0 {
594+
compatible = "jedec,spi-nor";
595+
reg = <0>;
596+
spi-max-frequency = <25000000>;
597+
598+
partitions {
599+
compatible = "fixed-partitions";
600+
#address-cells = <1>;
601+
#size-cells = <1>;
602+
603+
nvram: partition@700000 {
604+
label = "nvram";
605+
reg = <0x700000 0xc0000>;
606+
read-only;
607+
};
608+
};
609+
};
610+
};

0 commit comments

Comments
 (0)