forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: apple: add initial hwmon keys to SMC node
Add some preliminary known SMC hardware monitoring sensors to the Apple device trees Co-developed-by: Janne Grunau <[email protected]> Signed-off-by: Janne Grunau <[email protected]> Signed-off-by: James Calligeros <[email protected]>
- Loading branch information
Showing
23 changed files
with
567 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ OR MIT | ||
/* | ||
* hwmon sensors expected on all systems | ||
* | ||
* Copyright The Asahi Linux Contributors | ||
*/ | ||
|
||
&smc { | ||
hwmon { | ||
apple,power-keys { | ||
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"; | ||
}; | ||
power-PC0C { | ||
apple,key-id = "PC0C"; | ||
label = "CPU Core Power"; | ||
}; | ||
power-PCTR { | ||
apple,key-id = "PCTR"; | ||
label = "CPU Complex Power"; | ||
}; | ||
power-PG0R { | ||
apple,key-id = "PG0R"; | ||
label = "GPU Complex Power"; | ||
}; | ||
}; | ||
apple,temp-keys { | ||
temp-TH0x { | ||
apple,key-id = "TH0x"; | ||
label = "NAND Flash Temperature"; | ||
}; | ||
}; | ||
apple,volt-keys { | ||
volt-VD0R { | ||
apple,key-id = "VD0R"; | ||
label = "AC Input Voltage"; | ||
}; | ||
volt-VP0R { | ||
apple,key-id = "VP0R"; | ||
label = "12 V Rail Voltage"; | ||
}; | ||
volt-VR3R { | ||
apple,key-id = "VR3R"; | ||
label = "3.3 V Rail Voltage"; | ||
}; | ||
volt-VV1S { | ||
apple,key-id = "VV1S"; | ||
label = "5 V Rail Voltage"; | ||
}; | ||
volt-VM0R { | ||
apple,key-id = "VM0R"; | ||
label = "DRAM Voltage"; | ||
}; | ||
}; | ||
apple,current-keys { | ||
current-IC0R { | ||
apple,key-id = "IC0R"; | ||
label = "CPU VRM High Side Current"; | ||
}; | ||
current-IG0R { | ||
apple,key-id = "IG0R"; | ||
label = "GPU VRM High Side Current"; | ||
}; | ||
current-ID0R { | ||
apple,key-id = "ID0R"; | ||
label = "AC Input Current"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ OR MIT | ||
/* | ||
* hwmon sensors expected on all laptops | ||
* | ||
* Copyright The Asahi Linux Contributors | ||
*/ | ||
|
||
&smc { | ||
hwmon { | ||
apple,power-keys { | ||
power-PHPC { | ||
apple,key-id = "PHPC"; | ||
label = "Heatpipe Power"; | ||
}; | ||
}; | ||
|
||
apple,temp-keys { | ||
temp-TB0T { | ||
apple,key-id = "TB0T"; | ||
label = "Battery Hotspot"; | ||
}; | ||
temp-TCHP { | ||
apple,key-id = "TCHP"; | ||
label = "Charge Regulator Temp"; | ||
}; | ||
temp-TW0P { | ||
apple,key-id = "TW0P"; | ||
label = "WiFi/BT Module Temp"; | ||
}; | ||
}; | ||
apple,volt-keys { | ||
volt-SBAV { | ||
apple,key-id = "SBAV"; | ||
label = "Battery Voltage"; | ||
}; | ||
volt-VD0R { | ||
apple,key-id = "VD0R"; | ||
label = "Charger Input Voltage"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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 | ||
*/ | ||
|
||
&smc { | ||
hwmon { | ||
apple,temp-keys { | ||
temp-TW0P { | ||
apple,key-id = "TW0P"; | ||
label = "WiFi/BT Module Temp"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ OR MIT | ||
/* | ||
* t8103 specific hwmon sensors | ||
* | ||
* Copyright The Asahi Linux Contributors | ||
*/ | ||
|
||
#include "hwmon-common.dtsi" | ||
|
||
&smc { | ||
hwmon { | ||
apple,temp-keys { | ||
temp-TSCD { | ||
apple,key-id = "TSCD"; | ||
label = "SoC Die Temp"; | ||
}; | ||
temp-Tp09 { | ||
apple,key-id = "Tp09"; | ||
label = "Efficiency Core 1 Temp"; | ||
}; | ||
temp-Tp0T { | ||
apple,key-id = "Tp0T"; | ||
label = "Efficiency Core 2 Temp"; | ||
}; | ||
temp-Tp01 { | ||
apple,key-id = "Tp01"; | ||
label = "Performance Core 1 Temp"; | ||
}; | ||
temp-Tp05 { | ||
apple,key-id = "Tp05"; | ||
label = "Performance Core 2 Temp"; | ||
}; | ||
temp-Tp0D { | ||
apple,key-id = "Tp0D"; | ||
label = "Performance Core 3 Temp"; | ||
}; | ||
temp-Tp0H { | ||
apple,key-id = "Tp0H"; | ||
label = "Performance Core 4 Temp"; | ||
}; | ||
temp-Tp0L { | ||
apple,key-id = "Tp0L"; | ||
label = "Performance Core 5 Temp"; | ||
}; | ||
temp-Tp0P { | ||
apple,key-id = "Tp0P"; | ||
label = "Performance Core 6 Temp"; | ||
}; | ||
temp-Tp0X { | ||
apple,key-id = "Tp0X"; | ||
label = "Performance Core 7 Temp"; | ||
}; | ||
temp-Tp0b { | ||
apple,key-id = "Tp0b"; | ||
label = "Performance Core 8 Temp"; | ||
}; | ||
temp-Tg05 { | ||
apple,key-id = "Tg05"; | ||
label = "GPU 1 Temp"; | ||
}; | ||
temp-Tg0D { | ||
apple,key-id = "Tg0D"; | ||
label = "GPU 2 Temp"; | ||
}; | ||
temp-Tg0L { | ||
apple,key-id = "Tg0L"; | ||
label = "GPU 3 Temp"; | ||
}; | ||
temp-Tg0T { | ||
apple,key-id = "Tg0T"; | ||
label = "GPU 4 Temp"; | ||
}; | ||
temp-Tm02 { | ||
apple,key-id = "Tm02"; | ||
label = "DRAM 1 Temp"; | ||
}; | ||
temp-Tm06 { | ||
apple,key-id = "Tm06"; | ||
label = "DRAM 2 Temp"; | ||
}; | ||
temp-Tm08 { | ||
apple,key-id = "Tm08"; | ||
label = "DRAM 3 Temp"; | ||
}; | ||
temp-Tm09 { | ||
apple,key-id = "Tm09"; | ||
label = "DRAM 4 Temp"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ OR MIT | ||
/* | ||
* t602x specific hwmon sensors | ||
* | ||
* Copyright The Asahi Linux Contributors | ||
*/ | ||
|
||
#include "hwmon-common.dtsi" | ||
|
||
&smc { | ||
hwmon { | ||
apple,temp-keys { | ||
temp-Tp1h { | ||
apple,key-id = "Tp1h"; | ||
label = "Efficiency Core 1 Temp"; | ||
}; | ||
temp-Tp1t { | ||
apple,key-id = "Tp1t"; | ||
label = "Efficiency Core 2 Temp"; | ||
}; | ||
temp-Tp1p { | ||
apple,key-id = "Tp1p"; | ||
label = "Efficiency Core 3 Temp"; | ||
}; | ||
temp-Tp1l { | ||
apple,key-id = "Tp1l"; | ||
label = "Efficiency Core 4 Temp"; | ||
}; | ||
temp-Tp01 { | ||
apple,key-id = "Tp01"; | ||
label = "Performance Core 1 Temp"; | ||
}; | ||
temp-Tp05 { | ||
apple,key-id = "Tp05"; | ||
label = "Performance Core 2 Temp"; | ||
}; | ||
temp-Tp09 { | ||
apple,key-id = "Tp09"; | ||
label = "Performance Core 3 Temp"; | ||
}; | ||
temp-Tp0D { | ||
apple,key-id = "Tp0D"; | ||
label = "Performance Core 4 Temp"; | ||
}; | ||
temp-Tp0X { | ||
apple,key-id = "Tp0X"; | ||
label = "Performance Core 5 Temp"; | ||
}; | ||
temp-Tp0b { | ||
apple,key-id = "Tp0b"; | ||
label = "Performance Core 6 Temp"; | ||
}; | ||
temp-Tp0f { | ||
apple,key-id = "Tp0f"; | ||
label = "Performance Core 7 Temp"; | ||
}; | ||
temp-Tp0j { | ||
apple,key-id = "Tp0j"; | ||
label = "Performance Core 8 Temp"; | ||
}; | ||
temp-Tg0f { | ||
apple,key-id = "Tg0f"; | ||
label = "GPU 1 Temp"; | ||
}; | ||
temp-Tg0j { | ||
apple,key-id = "Tg0j"; | ||
label = "GPU 2 Temp"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// SPDX-License-Identifier: GPL-2.0+ OR MIT | ||
/* | ||
* t8103 specific hwmon sensors | ||
* | ||
* Copyright The Asahi Linux Contributors | ||
*/ | ||
|
||
#include "hwmon-common.dtsi" | ||
|
||
&smc { | ||
hwmon { | ||
apple,temp-keys { | ||
temp-TSCD { | ||
apple,key-id = "TSCD"; | ||
label = "SoC Die Temp"; | ||
}; | ||
temp-Tp09 { | ||
apple,key-id = "Tp09"; | ||
label = "Efficiency Core 1 Temp"; | ||
}; | ||
temp-Tp0T { | ||
apple,key-id = "Tp0T"; | ||
label = "Efficiency Core 2 Temp"; | ||
}; | ||
temp-Tp01 { | ||
apple,key-id = "Tp01"; | ||
label = "Performance Core 1 Temp"; | ||
}; | ||
temp-Tp05 { | ||
apple,key-id = "Tp05"; | ||
label = "Performance Core 2 Temp"; | ||
}; | ||
temp-Tp0D { | ||
apple,key-id = "Tp0D"; | ||
label = "Performance Core 3 Temp"; | ||
}; | ||
temp-Tp0H { | ||
apple,key-id = "Tp0H"; | ||
label = "Performance Core 4 Temp"; | ||
}; | ||
temp-Tp0L { | ||
apple,key-id = "Tp0L"; | ||
label = "Performance Core 5 Temp"; | ||
}; | ||
temp-Tp0P { | ||
apple,key-id = "Tp0P"; | ||
label = "Performance Core 6 Temp"; | ||
}; | ||
temp-Tp0X { | ||
apple,key-id = "Tp0X"; | ||
label = "Performance Core 7 Temp"; | ||
}; | ||
temp-Tp0b { | ||
apple,key-id = "Tp0b"; | ||
label = "Performance Core 8 Temp"; | ||
}; | ||
temp-Tg05 { | ||
apple,key-id = "Tg05"; | ||
label = "GPU 1 Temp"; | ||
}; | ||
temp-Tg0D { | ||
apple,key-id = "Tg0D"; | ||
label = "GPU 2 Temp"; | ||
}; | ||
temp-Tg0L { | ||
apple,key-id = "Tg0L"; | ||
label = "GPU 3 Temp"; | ||
}; | ||
temp-Tg0T { | ||
apple,key-id = "Tg0T"; | ||
label = "GPU 4 Temp"; | ||
}; | ||
temp-Tm02 { | ||
apple,key-id = "Tm02"; | ||
label = "DRAM 1 Temp"; | ||
}; | ||
temp-Tm06 { | ||
apple,key-id = "Tm06"; | ||
label = "DRAM 2 Temp"; | ||
}; | ||
temp-Tm08 { | ||
apple,key-id = "Tm08"; | ||
label = "DRAM 3 Temp"; | ||
}; | ||
temp-Tm09 { | ||
apple,key-id = "Tm09"; | ||
label = "DRAM 4 Temp"; | ||
}; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.