Skip to content

Commit 263d2fd

Browse files
wensmbgg
authored andcommitted
arm64: dts: mediatek: mt8186: Add GPU speed bin NVMEM cells
On the MT8186, the chip is binned for different GPU voltages at the highest OPPs. The binning value is stored in the efuse. Add the NVMEM cell, and tie it to the GPU. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230609072906.2784594-4-wenst@chromium.org Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 8f4ed8f commit 263d2fd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8186.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,11 @@
15191519
reg = <0 0x11cb0000 0 0x1000>;
15201520
#address-cells = <1>;
15211521
#size-cells = <1>;
1522+
1523+
gpu_speedbin: gpu-speed-bin@59c {
1524+
reg = <0x59c 0x4>;
1525+
bits = <0 3>;
1526+
};
15221527
};
15231528

15241529
mipi_tx0: dsi-phy@11cc0000 {
@@ -1551,6 +1556,8 @@
15511556
<&spm MT8186_POWER_DOMAIN_MFG3>;
15521557
power-domain-names = "core0", "core1";
15531558
#cooling-cells = <2>;
1559+
nvmem-cells = <&gpu_speedbin>;
1560+
nvmem-cell-names = "speed-bin";
15541561
status = "disabled";
15551562
};
15561563

0 commit comments

Comments
 (0)