Skip to content

Commit 9481e29

Browse files
committed
arm64: dts: apple: Adjust all hwmon sensors for upstream driver
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent dc9a3ac commit 9481e29

5 files changed

Lines changed: 71 additions & 101 deletions

File tree

arch/arm64/boot/dts/apple/hwmon-common.dtsi

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,29 @@
55
* Copyright The Asahi Linux Contributors
66
*/
77

8-
&smc {
9-
hwmon {
10-
apple,power-keys {
11-
power-PSTR {
12-
apple,key-id = "PSTR";
13-
label = "Total System Power";
14-
};
15-
power-PDTR {
16-
apple,key-id = "PDTR";
17-
label = "AC Input Power";
18-
};
19-
power-PMVR {
20-
apple,key-id = "PMVR";
21-
label = "3.8 V Rail Power";
22-
};
23-
};
24-
apple,temp-keys {
25-
temp-TH0x {
26-
apple,key-id = "TH0x";
27-
label = "NAND Flash Temperature";
28-
};
29-
};
30-
apple,volt-keys {
31-
volt-VD0R {
32-
apple,key-id = "VD0R";
33-
label = "AC Input Voltage";
34-
};
35-
};
36-
apple,current-keys {
37-
current-ID0R {
38-
apple,key-id = "ID0R";
39-
label = "AC Input Current";
40-
};
41-
};
8+
&smc_hwmon {
9+
power-PSTR {
10+
apple,key-id = "PSTR";
11+
label = "Total System Power";
12+
};
13+
power-PDTR {
14+
apple,key-id = "PDTR";
15+
label = "AC Input Power";
16+
};
17+
power-PMVR {
18+
apple,key-id = "PMVR";
19+
label = "3.8 V Rail Power";
20+
};
21+
temperature-TH0x {
22+
apple,key-id = "TH0x";
23+
label = "NAND Flash Temperature";
24+
};
25+
voltage-VD0R {
26+
apple,key-id = "VD0R";
27+
label = "AC Input Voltage";
28+
};
29+
current-ID0R {
30+
apple,key-id = "ID0R";
31+
label = "AC Input Current";
4232
};
4333
};

arch/arm64/boot/dts/apple/hwmon-fan-dual.dtsi

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,16 @@
77

88
#include "hwmon-fan.dtsi"
99

10-
&smc {
11-
hwmon {
12-
apple,fan-keys {
13-
fan-F0Ac {
14-
label = "Fan 1";
15-
};
16-
fan-F1Ac {
17-
apple,key-id = "F1Ac";
18-
label = "Fan 2";
19-
apple,fan-minimum = "F1Mn";
20-
apple,fan-maximum = "F1Mx";
21-
apple,fan-target = "F1Tg";
22-
apple,fan-mode = "F1Md";
23-
};
24-
};
10+
&smc_hwmon {
11+
fan-F0Ac {
12+
label = "Fan 1";
13+
};
14+
fan-F1Ac {
15+
apple,key-id = "F1Ac";
16+
label = "Fan 2";
17+
apple,fan-minimum = "F1Mn";
18+
apple,fan-maximum = "F1Mx";
19+
apple,fan-target = "F1Tg";
20+
apple,fan-mode = "F1Md";
2521
};
2622
};

arch/arm64/boot/dts/apple/hwmon-fan.dtsi

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
* Fan hwmon sensors for machines with a single fan.
66
*/
77

8-
&smc {
9-
hwmon {
10-
apple,fan-keys {
11-
fan-F0Ac {
12-
apple,key-id = "F0Ac";
13-
label = "Fan";
14-
apple,fan-minimum = "F0Mn";
15-
apple,fan-maximum = "F0Mx";
16-
apple,fan-target = "F0Tg";
17-
apple,fan-mode = "F0Md";
18-
};
19-
};
8+
&smc_hwmon {
9+
fan-F0Ac {
10+
apple,key-id = "F0Ac";
11+
label = "Fan";
12+
apple,fan-minimum = "F0Mn";
13+
apple,fan-maximum = "F0Mx";
14+
apple,fan-target = "F0Tg";
15+
apple,fan-mode = "F0Md";
2016
};
2117
};

arch/arm64/boot/dts/apple/hwmon-laptop.dtsi

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,29 @@
55
* Copyright The Asahi Linux Contributors
66
*/
77

8-
&smc {
9-
hwmon {
10-
apple,power-keys {
11-
power-PHPC {
12-
apple,key-id = "PHPC";
13-
label = "Heatpipe Power";
14-
};
15-
};
16-
apple,temp-keys {
17-
temp-TB0T {
18-
apple,key-id = "TB0T";
19-
label = "Battery Hotspot";
20-
};
21-
temp-TCHP {
22-
apple,key-id = "TCHP";
23-
label = "Charge Regulator Temp";
24-
};
25-
temp-TW0P {
26-
apple,key-id = "TW0P";
27-
label = "WiFi/BT Module Temp";
28-
};
29-
};
30-
apple,volt-keys {
31-
volt-SBAV {
32-
apple,key-id = "SBAV";
33-
label = "Battery Voltage";
34-
};
35-
volt-VD0R {
36-
apple,key-id = "VD0R";
37-
label = "Charger Input Voltage";
38-
};
39-
};
8+
&smc_hwmon {
9+
power-PHPC {
10+
apple,key-id = "PHPC";
11+
label = "Heatpipe Power";
12+
};
13+
temperature-TB0T {
14+
apple,key-id = "TB0T";
15+
label = "Battery Hotspot";
16+
};
17+
temperature-TCHP {
18+
apple,key-id = "TCHP";
19+
label = "Charge Regulator Temp";
20+
};
21+
temperature-TW0P {
22+
apple,key-id = "TW0P";
23+
label = "WiFi/BT Module Temp";
24+
};
25+
voltage-SBAV {
26+
apple,key-id = "SBAV";
27+
label = "Battery Voltage";
28+
};
29+
voltage-VD0R {
30+
apple,key-id = "VD0R";
31+
label = "Charger Input Voltage";
4032
};
4133
};

arch/arm64/boot/dts/apple/hwmon-mini.dtsi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88

99
#include "hwmon-fan.dtsi"
1010

11-
&smc {
12-
hwmon {
13-
apple,temp-keys {
14-
temp-TW0P {
15-
apple,key-id = "TW0P";
16-
label = "WiFi/BT Module Temp";
17-
};
18-
};
11+
&smc_hwmon {
12+
temperature-TW0P {
13+
apple,key-id = "TW0P";
14+
label = "WiFi/BT Module Temp";
1915
};
2016
};

0 commit comments

Comments
 (0)