diff --git a/arch/arm64/boot/dts/apple/t6040.dtsi b/arch/arm64/boot/dts/apple/t6040.dtsi index 13ad6aed111e2..2dd4bed16c1e9 100644 --- a/arch/arm64/boot/dts/apple/t6040.dtsi +++ b/arch/arm64/boot/dts/apple/t6040.dtsi @@ -171,7 +171,7 @@ opp-level = <11>; opp-microwatt = <4129900>; }; - opp12 { + t6040_p1_opp_3756: opp12 { opp-hz = /bits/ 64 <3756000000>; opp-level = <12>; opp-microwatt = <4666300>; @@ -741,6 +741,14 @@ apple,pmp = <&pmp>; }; +/* + * The ANE engine clock follows the second P cluster's frequency (cpu-map + * cluster2): MobileNetV1 engine time stops improving at 3.756 GHz. + */ +&clpc { + apple,ane-cpu-opp = <&t6040_p1_opp_3756>; +}; + #include "t6040-pmgr.dtsi" /* Display power words and chains: two external pipes, not T6041's four. */ diff --git a/arch/arm64/boot/dts/apple/t8142-j704.dts b/arch/arm64/boot/dts/apple/t8142-j704.dts index 1ef621c867779..616c4b3b581ef 100644 --- a/arch/arm64/boot/dts/apple/t8142-j704.dts +++ b/arch/arm64/boot/dts/apple/t8142-j704.dts @@ -159,7 +159,7 @@ opp-level = <13>; }; - opp-4176000000 { + pcluster_opp_4176: opp-4176000000 { opp-hz = /bits/ 64 <4176000000>; opp-level = <14>; }; @@ -234,6 +234,8 @@ clpc: performance-controller@1 { compatible = "apple,t8142-clpc"; reg = <1>; + /* The ANE engine clock follows the P cluster's frequency */ + apple,ane-cpu-opp = <&pcluster_opp_4176>; }; }; }; diff --git a/arch/arm64/boot/dts/apple/t8142-j813-j815.dtsi b/arch/arm64/boot/dts/apple/t8142-j813-j815.dtsi index c6756858a308e..dcec66474228b 100644 --- a/arch/arm64/boot/dts/apple/t8142-j813-j815.dtsi +++ b/arch/arm64/boot/dts/apple/t8142-j813-j815.dtsi @@ -168,7 +168,7 @@ opp-microwatt = <3841000>; }; - opp-4176000000 { + pcluster_opp_4176: opp-4176000000 { opp-hz = /bits/ 64 <4176000000>; opp-level = <14>; opp-microwatt = <4520000>; @@ -256,6 +256,8 @@ apple,low-power-gpu-cap; /* Tell the SMC when the low-power platform profile is on. */ apple,low-power-smc-notice; + /* The ANE engine clock follows the P cluster's frequency */ + apple,ane-cpu-opp = <&pcluster_opp_4176>; /* * T8142 GPU busy-share memory-state ladder (shared by * J813/J815 M5 MacBook Air): DCS 1, 2, 5, 7 and fabric