]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 25 Jul 2024 07:22:43 +0000 (09:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:01 +0000 (16:29 +0200)
commitbd7fa63736c75150d3d94e71d6968695e1fd251a
tree4fe71a1fcb0e1b5ba6bd48fb7fedbbdbe79512f7
parent8d81cd1a048ae4c93d81e74a45359c4052032df0
arm64: dts: mediatek: mt8186: Fix supported-hw mask for GPU OPPs

[ Upstream commit 2317d018b835842df0501d8f9e9efa843068a101 ]

The speedbin eFuse reads a value 'x' from 0 to 7 and, in order to
make that compatible with opp-supported-hw, it gets post processed
as BIT(x).

Change all of the 0x30 supported-hw to 0x20 to avoid getting
duplicate OPPs for speedbin 4, and also change all of the 0x8 to
0xcf because speedbins different from 4 and 5 do support 900MHz,
950MHz, 1000MHz with the higher voltage of 850mV, 900mV, 950mV
respectively.

Fixes: f38ea593ad0d ("arm64: dts: mediatek: mt8186: Wire up GPU voltage/frequency scaling")
Link: https://lore.kernel.org/r/20240725072243.173104-1-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/mediatek/mt8186.dtsi