diff --git a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi index d26d2621b38a0..0de7e2dcc6a05 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi +++ b/arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi @@ -318,3 +318,42 @@ power-domains = <&ps_apcie_sys_gp>; }; +/ { + aliases { + /* asahi-bless and the boot loader find the NVRAM partition by this alias */ + nvram = &nvram; + }; +}; + +/* + * The boot NOR's NVRAM partition, the same in the live K114s, K116s and J716c ADTs and the + * K114c and K116c 27.2 DeviceTrees: /arm-io/qspi/spinor/anvram, 0x700000, 0xc0000 bytes, 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 writable, as on the J616s, J713 and J700, so asahi-bless and aurora-bless + * can set the next boot. spi-apple-qspi still starts read-only and, once root + * opts in, admits only bounded, verified programs and 4 KiB erases of a known part inside it. + */ +&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>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t6050-k114c.dts b/arch/arm64/boot/dts/apple/t6050-k114c.dts index eea1c5485599c..d7eb9fddf40f9 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114c.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114c.dts @@ -30,12 +30,6 @@ #include "t6050-peripherals.dtsi" -/ { - aliases { - nvram = &nvram; - }; -}; - /* * The speakers, through the AOP as on J813: the six SN012776 speaker amps on admac-base-ns * TX0, their voltage and current sense on RX0 (ADT iop-audio-controller). The jack, the @@ -213,32 +207,6 @@ #include "t6050-k114-k116-usb.dtsi" #include "t6050-k114-usb.dtsi" -/* - * The boot NOR. spi-nor reads the part's JEDEC ID itself. The partition is - * read-only: no program or erase reaches the flash until a later change lifts it. - */ -&qspi { - status = "okay"; - - flash@0 { - compatible = "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <25000000>; - - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - nvram: partition@700000 { - label = "nvram"; - reg = <0x700000 0xc0000>; - read-only; - }; - }; - }; -}; - /* * PCIe port 1: the SD card reader, this board's own beside the shared port 0 * (t6050-k114-k116.dtsi): its registers, interrupt and DART stream 1 of dart-apcie1. diff --git a/arch/arm64/boot/dts/apple/t6050-k114s.dts b/arch/arm64/boot/dts/apple/t6050-k114s.dts index e2819f2dcdf3d..43908a0b6faed 100644 --- a/arch/arm64/boot/dts/apple/t6050-k114s.dts +++ b/arch/arm64/boot/dts/apple/t6050-k114s.dts @@ -4,8 +4,8 @@ * * target-type: K114s (Mac17,13) * - * 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. + * Preliminary: described from the ADT. Only the NVRAM partition (t6050-k114-k116.dtsi) 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 */ @@ -49,43 +49,6 @@ height-mm = <199>; }; -/ { - 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; - }; - }; - }; -}; - /* * The USB-C ports ATC1 and ATC2, as on the other K boards (t6050-k114-k116-usb.dtsi), then the * 14-inch chassis' MagSafe 3 PD controller and the right port's USB4/Thunderbolt router