Skip to content
Open
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
33 changes: 33 additions & 0 deletions arch/arm/dts/hwmon-common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors expected on all systems
*
* Copyright The Asahi Linux Contributors
*/

&smc_hwmon {
power-PSTR {
apple,key-id = "PSTR";
label = "Total System Power";
};
power-PDTR {
apple,key-id = "PDTR";
label = "AC Input Power";
};
power-PMVR {
apple,key-id = "PMVR";
label = "3.8 V Rail Power";
};
temperature-TH0x {
apple,key-id = "TH0x";
label = "NAND Flash Temperature";
};
voltage-VD0R {
apple,key-id = "VD0R";
label = "AC Input Voltage";
};
current-ID0R {
apple,key-id = "ID0R";
label = "AC Input Current";
};
};
22 changes: 22 additions & 0 deletions arch/arm/dts/hwmon-fan-dual.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Copyright The Asahi Linux Contributors
*
* Fan hwmon sensors for machines with 2 fan.
*/

#include "hwmon-fan.dtsi"

&smc_hwmon {
fan-F0Ac {
label = "Fan 1";
};
fan-F1Ac {
apple,key-id = "F1Ac";
label = "Fan 2";
apple,fan-minimum = "F1Mn";
apple,fan-maximum = "F1Mx";
apple,fan-target = "F1Tg";
apple,fan-mode = "F1Md";
};
};
17 changes: 17 additions & 0 deletions arch/arm/dts/hwmon-fan.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Copyright The Asahi Linux Contributors
*
* Fan hwmon sensors for machines with a single fan.
*/

&smc_hwmon {
fan-F0Ac {
apple,key-id = "F0Ac";
label = "Fan";
apple,fan-minimum = "F0Mn";
apple,fan-maximum = "F0Mx";
apple,fan-target = "F0Tg";
apple,fan-mode = "F0Md";
};
};
33 changes: 33 additions & 0 deletions arch/arm/dts/hwmon-laptop.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors expected on all laptops
*
* Copyright The Asahi Linux Contributors
*/

&smc_hwmon {
power-PHPC {
apple,key-id = "PHPC";
label = "Heatpipe Power";
};
temperature-TB0T {
apple,key-id = "TB0T";
label = "Battery Hotspot";
};
temperature-TCHP {
apple,key-id = "TCHP";
label = "Charge Regulator Temp";
};
temperature-TW0P {
apple,key-id = "TW0P";
label = "WiFi/BT Module Temp";
};
voltage-SBAV {
apple,key-id = "SBAV";
label = "Battery Voltage";
};
voltage-VD0R {
apple,key-id = "VD0R";
label = "Charger Input Voltage";
};
};
16 changes: 16 additions & 0 deletions arch/arm/dts/hwmon-mini.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* hwmon sensors common to the Mac mini desktop
* models, but not the Studio or Pro.
*
* Copyright The Asahi Linux Contributors
*/

#include "hwmon-fan.dtsi"

&smc_hwmon {
temperature-TW0P {
apple,key-id = "TW0P";
label = "WiFi/BT Module Temp";
};
};
21 changes: 13 additions & 8 deletions arch/arm/dts/spi1-nvram.dtsi
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* Common config for Apple's nvram using a SPI nor flash. This is common on all
* M1 and M2 devices. identically set up identically on all M1 and M2 devicesspi1, spinor and nvram config identical on all devices
*
* Copyright The Asahi Linux Contributors
*/
//
// Devicetree include for common spi-nor nvram flash.
//
// Apple uses a consistent configiguration for the nvram on all known M1* and
// M2* devices.
//
// Copyright The Asahi Linux Contributors

/ {
aliases {
nvram = &nvram;
};
};

&spi1 {
status = "okay";
Expand All @@ -13,8 +20,6 @@
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <1>;

partitions {
compatible = "fixed-partitions";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/dts/t6000-j314s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
adj-height-mm = <189>;
};

&aop_audio {
apple,chassis-name = "J314";
apple,machine-kind = "MacBook Pro";
};

&sound {
compatible = "apple,j314-macaudio", "apple,macaudio";
model = "MacBook Pro J314";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/dts/t6000-j316s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
adj-height-mm = <216>;
};

&aop_audio {
apple,chassis-name = "J316";
apple,machine-kind = "MacBook Pro";
};

&sound {
compatible = "apple,j316-macaudio", "apple,macaudio";
model = "MacBook Pro J316";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/dts/t6001-j314c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
adj-height-mm = <189>;
};

&aop_audio {
apple,chassis-name = "J314";
apple,machine-kind = "MacBook Pro";
};

&sound {
compatible = "apple,j314-macaudio", "apple,macaudio";
model = "MacBook Pro J314";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/dts/t6001-j316c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
adj-height-mm = <216>;
};

&aop_audio {
apple,chassis-name = "J316";
apple,machine-kind = "MacBook Pro";
};

&sound {
compatible = "apple,j316-macaudio", "apple,macaudio";
model = "MacBook Pro J316";
Expand Down
23 changes: 23 additions & 0 deletions arch/arm/dts/t6001-j375c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
model = "Apple Mac Studio (M1 Max, 2022)";
};

&wifi0 {
brcm,board-type = "apple,okinawa";
};

&bluetooth0 {
brcm,board-type = "apple,okinawa";
};

&dpaudio0 {
status = "okay";
};

&sound {
compatible = "apple,j375-macaudio", "apple,macaudio";
model = "Mac Studio J375";
Expand All @@ -37,3 +49,14 @@
line-name = "usb-hub-rst";
};
};

&gpu {
apple,avg-power-ki-only = <0.6375>;
apple,avg-power-kp = <0.58>;
apple,avg-power-target-filter-tc = <1>;
apple,perf-base-pstate = <3>;
apple,ppm-ki = <5.8>;
apple,ppm-kp = <0.355>;
};

#include "hwmon-fan-dual.dtsi"
20 changes: 1 addition & 19 deletions arch/arm/dts/t6001.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@
/ {
compatible = "apple,t6001", "apple,arm-platform";

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

uat_handoff: uat-handoff {
reg = <0 0 0 0>;
};

uat_pagetables: uat-pagetables {
reg = <0 0 0 0>;
};

uat_ttbs: uat-ttbs {
reg = <0 0 0 0>;
};
};

soc {
compatible = "simple-bus";
#address-cells = <2>;
Expand Down Expand Up @@ -89,5 +71,5 @@
};

&gpu {
compatible = "apple,agx-t6001", "apple,agx-g13x";
compatible = "apple,agx-t6001", "apple,agx-g13c", "apple,agx-g13s";
};
Loading