Skip to content
Closed
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
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/iommu/apple,dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ properties:
- enum:
- apple,t6020-dart
- apple,t8122-dart
- apple,t8132-dart
- apple,t8140-dart
- apple,t8142-dart
- const: apple,t8110-dart
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/iommu/apple,sart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ properties:
- apple,t6020-sart
- apple,t8112-sart
- apple,t8122-sart
- apple,t8132-sart
- apple,t8140-sart
- const: apple,t6000-sart
- enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ properties:
- apple,t8103-asc-mailbox
- apple,t8112-asc-mailbox
- apple,t8122-asc-mailbox
- apple,t8132-asc-mailbox
- apple,t8140-asc-mailbox
- apple,t8142-asc-mailbox
- apple,t6000-asc-mailbox
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/apple,smc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ properties:
- enum:
- apple,t6020-smc
- apple,t8122-smc
- apple,t8132-smc
- apple,t8140-smc
- apple,t8142-smc
- const: apple,t8103-smc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ properties:
compatible:
items:
- enum:
- apple,abbey-pmic
- apple,baku-pmic
- apple,maverick-pmic
- apple,sera-pmic
Expand Down
11 changes: 9 additions & 2 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ properties:
- apple,t6000-pcie
- const: apple,pcie
- items:
- const: apple,t8122-pcie
- enum:
- apple,t8122-pcie
- apple,t8132-pcie
- const: apple,t6020-pcie
- const: apple,t6020-pcie
- const: apple,t8140-pcie
Expand Down Expand Up @@ -198,6 +200,9 @@ allOf:
compatible:
contains:
const: apple,t6020-pcie
not:
contains:
const: apple,t8132-pcie
then:
properties:
reg-names:
Expand Down Expand Up @@ -250,7 +255,9 @@ allOf:
properties:
compatible:
contains:
const: apple,t8140-pcie
enum:
- apple,t8132-pcie
- apple,t8140-pcie
then:
properties:
reg:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/spmi/apple,spmi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ properties:
- apple,t8012-spmi
- apple,t8015-spmi
- apple,t8122-spmi
- apple,t8132-spmi
- apple,t8140-spmi
- const: apple,t8103-spmi
- items:
Expand Down
161 changes: 161 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-j773g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@
/ {
compatible = "apple,j773g", "apple,t8132", "apple,arm-platform";
model = "Apple Mac mini (M4, 2024)";

aliases {
bluetooth0 = &bluetooth0;
ethernet0 = &ethernet0;
wifi0 = &wifi0;
};
};

/*
* Persistent console capture for early T8132 bring-up failures. Keep this
* near the top of RAM, outside m1n1's kernel/initramfs load area.
*/
&{/reserved-memory} {
ramoops@103e0000000 {
compatible = "ramoops";
reg = <0x103 0xe0000000 0x0 0x200000>;
record-size = <0x40000>;
console-size = <0x100000>;
pmsg-size = <0x40000>;
};
};

/*
Expand All @@ -23,3 +43,144 @@
&framebuffer0 {
power-domains = <&ps_dispext0_fe>, <&ps_dptx_phy>;
};

&smc_mbox {
status = "okay";
};

&smc {
status = "okay";

smc_reboot: reboot {
compatible = "apple,smc-reboot";
nvmem-cells = <&shutdown_flag>, <&boot_stage>,
<&boot_error_count>, <&panic_count>;
nvmem-cell-names = "shutdown_flag", "boot_stage",
"boot_error_count", "panic_count";
};

smc_rtc: rtc {
compatible = "apple,smc-rtc";
nvmem-cells = <&rtc_offset>;
nvmem-cell-names = "rtc_offset";
};
};

&nub_spmi {
status = "okay";

pmic1: pmic@e {
compatible = "apple,abbey-pmic", "apple,spmi-nvmem";
reg = <0xe SPMI_USID>;

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

pm_setting: pm-setting@2001 {
reg = <0x2001 0x1>;
};

rtc_offset: rtc-offset@2100 {
reg = <0x2100 0x6>;
};

fault_shadow: fault-shadow@867b {
reg = <0x867b 0x10>;
};

socd: socd@8b00 {
reg = <0x8b00 0x1800>;
};

boot_stage: boot-stage@f801 {
reg = <0xf801 0x1>;
};

boot_error_count: boot-error-count@f802,0 {
reg = <0xf802 0x1>;
bits = <0 4>;
};

panic_count: panic-count@f802,4 {
reg = <0xf802 0x1>;
bits = <4 4>;
};

shutdown_flag: shutdown-flag@f80f,3 {
reg = <0xf80f 0x1>;
bits = <3 1>;
};
};
};
};

/* Internal SSD */

&ans_mbox {
status = "okay";
};

&sart {
status = "okay";
};

&nvme {
status = "okay";
};

/*
* Internal PCIe: Wi-Fi and Bluetooth (BCM4388) on port 0 and Ethernet on
* port 2 (an AQC113 on the 10 Gb Ethernet model). Port 1 is not wired.
* Fixed bus numbers let the device nodes below carry the MAC and
* Bluetooth addresses and the calibration the loader fills in.
*/

&pcie0 {
iommu-map = <0x100 &pcie0_dart 1 1>,
<0x200 &pcie2_dart 1 1>;
status = "okay";
};

&pcie0_dart {
status = "okay";
};

&pcie2_dart {
status = "okay";
};

&pcie0_port0 {
pwren-gpios = <&smc_gpio 19 GPIO_ACTIVE_HIGH>;
bus-range = <1 1>;
status = "okay";

wifi0: wifi@0,0 {
compatible = "pci14e4,4434";
reg = <0x10000 0x0 0x0 0x0 0x0>;
/* To be filled by the loader */
local-mac-address = [00 00 00 00 00 00];
apple,antenna-sku = "XX";
brcm,board-type = "apple,sakhalin";
};

bluetooth0: bluetooth@0,1 {
compatible = "pci14e4,5f72";
reg = <0x10100 0x0 0x0 0x0 0x0>;
/* To be filled by the loader */
local-bd-address = [00 00 00 00 00 00];
brcm,board-type = "apple,sakhalin";
};
};

&pcie0_port2 {
bus-range = <2 2>;
status = "okay";

ethernet0: ethernet@0,0 {
reg = <0x20000 0x0 0x0 0x0 0x0>;
/* To be filled by the loader */
local-mac-address = [00 10 18 00 00 00];
};
};
Loading