]> git.dujemihanovic.xyz Git - u-boot.git/commit
pmic: qcom: dont use dev_read_addr to get USID
authorCaleb Connolly <caleb.connolly@linaro.org>
Tue, 5 Dec 2023 13:46:54 +0000 (13:46 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Tue, 16 Jan 2024 12:26:54 +0000 (12:26 +0000)
commit64550c7f4d34def290d4952ed5c53357802626ec
treee12b5cc6bbdcc673449322194398b85448c3c22c
parent92fe08921c769994817004b4b7e621d32f0431dd
pmic: qcom: dont use dev_read_addr to get USID

Linux DTs stuff a value indicating if the USID is a USID or a GSID in the
reg property, the Linux SPMI driver then reads the two address cells
separately. U-boot's dev_read_addr() doesn't know how to handle this, so
use ofnode_read_u32_index() to get just the USID.

The Qcom pmic driver doesn't have support for GSID handling, so just
ignore the second value for now.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
doc/device-tree-bindings/pmic/qcom,spmi-pmic.txt [deleted file]
drivers/power/pmic/pmic_qcom.c