Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions arch/arm64/boot/dts/apple/t6050-k114-k116.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
};
};
32 changes: 0 additions & 32 deletions arch/arm64/boot/dts/apple/t6050-k114c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
41 changes: 2 additions & 39 deletions arch/arm64/boot/dts/apple/t6050-k114s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down
Loading