]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: mediatek: mt8173-elm-hana: Add vdd-supply to second source trackpad
authorChen-Yu Tsai <wenst@chromium.org>
Fri, 18 Oct 2024 08:20:00 +0000 (16:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:47 +0000 (19:50 +0100)
[ Upstream commit f766fae08f6a2eaeb45d8d2c053724c91526835c ]

The Hana device has a second source option trackpad, but it is missing
its regulator supply. It only works because the regulator is marked as
always-on.

Add the regulator supply, but leave out the post-power-on delay. Instead,
document the post-power-on delay along with the reason for not adding
it in a comment.

Fixes: 689b937bedde ("arm64: dts: mediatek: add mt8173 elm and hana board")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241018082001.1296963-1-wenst@chromium.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi

index bdcd35cecad908bc1efb08eb7d31b9bf86d79e97..fd6230352f4fd12cb9623535560a199c9b9fdaf1 100644 (file)
                interrupts = <117 IRQ_TYPE_LEVEL_LOW>;
                reg = <0x2c>;
                hid-descr-addr = <0x0020>;
+               /*
+                * The trackpad needs a post-power-on delay of 100ms,
+                * but at time of writing, the power supply for it on
+                * this board is always on. The delay is therefore not
+                * added to avoid impacting the readiness of the
+                * trackpad.
+                */
+               vdd-supply = <&mt6397_vgp6_reg>;
                wakeup-source;
        };
 };