Skip to content
Closed
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
63 changes: 63 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,51 @@
};
};

/*
* The GPU's levels: the shader rates of the Pixel 9a's GPU DVFS table
* up to 649 MHz, each with its paired L2 rate through the ACPM "gpu"
* clock. The levels above, to 940 MHz, wait for a GPU thermal zone.
*/
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>;
};
};

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

&cmu_g3d {
status = "okay";
};

&cmu_hsi0 {
status = "okay";
};
Expand Down Expand Up @@ -188,6 +238,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