diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index caa609babef0d..2b88e99a6d993 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -4,7 +4,8 @@ * * target-type: K114s (Mac17,13) * - * Preliminary: described from the ADT only, not yet booted on the hardware. + * Preliminary: described from the ADT. Only the NVRAM partition below has been run on a K114s, + * from the boot loader's tree; this file as a whole has not been booted. * * Copyright The Asahi Linux Contributors */ @@ -22,3 +23,40 @@ #define T6050_K114S #include "t6050-peripherals.dtsi" + +/ { + aliases { + /* asahi-bless and the boot loader find the NVRAM partition by this alias */ + nvram = &nvram; + }; +}; + +/* + * The boot NOR's NVRAM partition (ADT /arm-io/qspi/spinor/anvram: reg 0x700000, 0xc0000, 12 + * banks of 64 KiB). Only this partition is described, so the rest of the NOR has no device + * node. Single-wire, as on the J775D: spi-nor then sends no quad-enable status write at probe. + * The partition is read-only, as on the K114c. + */ +&qspi { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-rx-bus-width = <1>; + spi-tx-bus-width = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + nvram: partition@700000 { + label = "nvram"; + reg = <0x700000 0xc0000>; + read-only; + }; + }; + }; +};