]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: qcom: sc8280xp-x13s: switch to uefi rtc offset
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 19 Feb 2025 13:41:17 +0000 (14:41 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 17 Mar 2025 14:33:10 +0000 (09:33 -0500)
commit409803681a55e061f5ea6be82f05f14c0b9c707e
treeb9228be803b0cef7d7b490761102ecae3ad9bfd9
parent9bb5ca464100e7c8f2d740148088f60e04fed8ed
arm64: dts: qcom: sc8280xp-x13s: switch to uefi rtc offset

On many Qualcomm platforms the PMIC RTC control and time registers are
read-only so that the RTC time can not be updated. Instead an offset
needs be stored in some machine-specific non-volatile memory, which a
driver can take into account.

Switch to using the Qualcomm specific UEFI variable that is used by the
UEFI firmware (and Windows) to store the RTC offset.

This specifically means that the RTC time will be synchronised between
the UEFI firmware setup (or UEFI shell), Windows and Linux.

Note however that Windows stores the RTC time in local time by default,
while Linux typically uses UTC (i.e. as on X86).

Tested-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250219134118.31017-6-johan+linaro@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts