Skip to content

Commit 8d7a6d1

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
fixup! arm64: dts: apple: Add PMP nodes and hook up power reporting
1 parent 13169fb commit 8d7a6d1

5 files changed

Lines changed: 5 additions & 61 deletions

File tree

arch/arm64/boot/dts/apple/t6020.dtsi

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@
2626
/delete-node/ &pmp_report_afnc4_ioa;
2727
/delete-node/ &pmp_report_afnc5_ioa;
2828

29-
&pmp {
30-
apple,pio-ranges = <0x2 0x80000000 0x0 0x1000000>,
31-
<0x3 0x0 0x0 0x1000000>,
32-
<0x3 0x80000000 0x0 0x1000000>,
33-
<0x4 0x0 0x0 0x1000000>,
34-
<0x3 0x40000000 0x0 0x1000000>,
35-
<0x2 0x10e70000 0x0 0x90000>,
36-
<0x2 0x11e70000 0x0 0x90000>,
37-
<0x2 0x12e70000 0x0 0x90000>;
38-
};
39-
4029
&gpu {
4130
compatible = "apple,agx-t6020", "apple,agx-g14x", "apple,agx-g14s";
4231

arch/arm64/boot/dts/apple/t6021.dtsi

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,6 @@
7373
};
7474
};
7575

76-
&pmp {
77-
apple,pio-ranges = <0x2 0x80000000 0x0 0x1000000>,
78-
<0x3 0x0 0x0 0x1000000>,
79-
<0x3 0x80000000 0x0 0x1000000>,
80-
<0x4 0x0 0x0 0x1000000>,
81-
<0x3 0x40000000 0x0 0x1000000>,
82-
<0x2 0x10e70000 0x0 0x90000>,
83-
<0x2 0x11e70000 0x0 0x90000>,
84-
<0x2 0x12e70000 0x0 0x90000>,
85-
<0x4 0x80000000 0x0 0x1000000>,
86-
<0x5 0x0 0x0 0x1000000>;
87-
};
88-
8976
&gpu {
9077
compatible = "apple,agx-t6021", "apple,agx-g14x", "apple,agx-g14c", "apple,agx-g14s";
9178

arch/arm64/boot/dts/apple/t6022.dtsi

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -359,29 +359,6 @@
359359
power-domains = <&ps_afr>, <&ps_afr_die1>;
360360
};
361361

362-
&pmp {
363-
apple,pio-ranges = <0x2 0x80000000 0x0 0x1000000>,
364-
<0x3 0x0 0x0 0x1000000>,
365-
<0x3 0x80000000 0x0 0x1000000>,
366-
<0x4 0x0 0x0 0x1000000>,
367-
<0x3 0x40000000 0x0 0x1000000>,
368-
<0x2 0x10e70000 0x0 0x90000>,
369-
<0x2 0x11e70000 0x0 0x90000>,
370-
<0x2 0x12e70000 0x0 0x90000>,
371-
<0x4 0x80000000 0x0 0x1000000>,
372-
<0x5 0x0 0x0 0x1000000>,
373-
<0x22 0x80000000 0x0 0x1000000>,
374-
<0x23 0x0 0x0 0x1000000>,
375-
<0x23 0x80000000 0x0 0x1000000>,
376-
<0x24 0x0 0x0 0x1000000>,
377-
<0x23 0x40000000 0x0 0x1000000>,
378-
<0x24 0x80000000 0x0 0x1000000>,
379-
<0x25 0x0 0x0 0x1000000>,
380-
<0x22 0x10e70000 0x0 0x90000>,
381-
<0x22 0x11e70000 0x0 0x90000>,
382-
<0x22 0x12e70000 0x0 0x90000>;
383-
};
384-
385362
&pmp_report {
386363
pmp_report_dispext0_die1: report@1f {
387364
compatible = "apple,t6020-pmp-v2-report-entry",

arch/arm64/boot/dts/apple/t602x-die0.dtsi

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@
4848
#address-cells = <1>;
4949
#size-cells = <0>;
5050

51-
pmp_report_gfx: report@a {
52-
compatible = "apple,t6020-pmp-v2-report-entry",
53-
"apple,t6000-pmp-v2-report-entry";
54-
reg = <0xa>;
55-
label = "pmp-gfx";
56-
#power-domain-cells = <0>;
57-
power-domains = <&ps_gfx>;
58-
};
59-
6051
pmp_report_ane_sys: report@b {
6152
compatible = "apple,t6020-pmp-v2-report-entry",
6253
"apple,t6000-pmp-v2-report-entry";
@@ -94,15 +85,17 @@
9485
label = "pmp-dispext0";
9586
#power-domain-cells = <0>;
9687
power-domains = <&ps_dispext0_cpu0>;
88+
apple,always-on;
9789
};
9890

9991
pmp_report_dispext1: report@f {
10092
compatible = "apple,t6020-pmp-v2-report-entry",
10193
"apple,t6000-pmp-v2-report-entry";
102-
reg = <0xe>;
94+
reg = <0xf>;
10395
label = "pmp-dispext1";
10496
#power-domain-cells = <0>;
10597
power-domains = <&ps_dispext1_cpu0>;
98+
apple,always-on;
10699
};
107100

108101
pmp_report_venc_sys: report@10 {
@@ -965,11 +958,7 @@
965958
<AIC_IRQ 0 1149 IRQ_TYPE_LEVEL_HIGH>,
966959
<AIC_IRQ 0 1142 IRQ_TYPE_LEVEL_HIGH>;
967960
mboxes = <&agx_mbox>;
968-
#ifdef APPLE_USE_PMP
969-
power-domains = <&pmp_report_gfx>;
970-
#else
971961
power-domains = <&ps_gfx>;
972-
#endif
973962
memory-region = <&uat_ttbs>, <&uat_pagetables>, <&uat_handoff>,
974963
<&gpu_hw_cal_a>, <&gpu_hw_cal_b>, <&gpu_globals>;
975964
memory-region-names = "ttbs", "pagetables", "handoff",

arch/arm64/boot/dts/apple/t602x-pmgr.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@
454454
#power-domain-cells = <0>;
455455
#reset-cells = <0>;
456456
label = DIE_LABEL(pmp);
457+
apple,always-on;
457458
};
458459

459460
DIE_NODE(ps_pms_sram): power-controller@2d0 {
@@ -462,6 +463,7 @@
462463
#power-domain-cells = <0>;
463464
#reset-cells = <0>;
464465
label = DIE_LABEL(pms_sram);
466+
apple,always-on;
465467
};
466468

467469
DIE_NODE(ps_dispext0_cpu0): power-controller@2d8 {

0 commit comments

Comments
 (0)