arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse
authorVaradarajan Narayanan <quic_varada@quicinc.com>
Fri, 20 Oct 2023 06:19:37 +0000 (11:49 +0530)
committerBjorn Andersson <andersson@kernel.org>
Sat, 21 Oct 2023 19:54:53 +0000 (12:54 -0700)
commit62073bc9f1ecc0d91fc260e7ae380cbadd33e9fc
tree2dd5522b1c2432267fd0c6e22f3eb8945ab3a86a
parent032ff6a3b39addd54427844affaf21e1e80fabc2
arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse

IPQ53xx have different OPPs available for the CPU based on
SoC variant. This can be determined through use of an eFuse
register present in the silicon.

Add support to read the eFuse and populate the OPPs based on it.

------------------------------------------------
Frequency BIT2 BIT1 opp-supported-hw
1.1GHz 1.5GHz
------------------------------------------------
1100000000 1 1 0x7
1500000000 0 1 0x3
------------------------------------------------

Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
Link: https://lore.kernel.org/r/463f01759cedef3121767d2432aa415794036ce1.1697781921.git.quic_varada@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5332.dtsi