Skip to content
Closed
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
80 changes: 80 additions & 0 deletions arch/arm64/boot/dts/exynos/google/zumapro-tegu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/dts-v1/;

#include <dt-bindings/clock/google,zumapro-acpm.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>
#include "../exynos-pinctrl.h"
Expand Down Expand Up @@ -73,6 +74,68 @@
};
};

/*
* The GPU's levels: the shader rates of the Pixel 9a's GPU DVFS table
* up to 890 MHz, each with its paired L2 rate through the ACPM "gpu"
* clock; gpu-thermal throttles them from 85 C. 940 MHz, the table's
* top, is left out until it has run on the 9a.
*/
gpu_opp: opp-table-gpu {
compatible = "operating-points-v2";

opp-150000000 {
opp-hz = /bits/ 64 <150000000>;
};

opp-302000000 {
opp-hz = /bits/ 64 <302000000>;
};

opp-337000000 {
opp-hz = /bits/ 64 <337000000>;
};

opp-376000000 {
opp-hz = /bits/ 64 <376000000>;
};

opp-419000000 {
opp-hz = /bits/ 64 <419000000>;
};

opp-467000000 {
opp-hz = /bits/ 64 <467000000>;
};

opp-521000000 {
opp-hz = /bits/ 64 <521000000>;
};

opp-580000000 {
opp-hz = /bits/ 64 <580000000>;
};

opp-649000000 {
opp-hz = /bits/ 64 <649000000>;
};

opp-723000000 {
opp-hz = /bits/ 64 <723000000>;
};

opp-807000000 {
opp-hz = /bits/ 64 <807000000>;
};

opp-850000000 {
opp-hz = /bits/ 64 <850000000>;
};

opp-890000000 {
opp-hz = /bits/ 64 <890000000>;
};
};

/* UFS VCC, switched by gpp0-1 as on stock. */
ufs_vcc: regulator-ufs-vcc {
compatible = "regulator-fixed";
Expand Down Expand Up @@ -135,6 +198,10 @@
status = "okay";
};

&cmu_g3d {
status = "okay";
};

&cmu_hsi0 {
status = "okay";
};
Expand Down Expand Up @@ -188,6 +255,19 @@
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
};

/*
* The GPU's core clock is ACPM's paired "gpu" clock, which sets the shader
* (G3D) and L2 (G3DL2) domains together; coregroup and stacks stay on
* CMU_G3D's gates.
*/
&gpu {
clocks = <&acpm_ipc ZUMAPRO_CLK_ACPM_GPU>,
<&cmu_g3d CLK_GOUT_G3D_COREGROUP>,
<&cmu_g3d CLK_GOUT_G3D_STACKS>;
operating-points-v2 = <&gpu_opp>;
status = "okay";
};

&pinctrl_alive {
status = "okay";
};
Expand Down
Loading