On 4/29/2020 5:32 AM, Matthias Kaehlcke wrote:
Hi Rajendra,
On Tue, Apr 28, 2020 at 07:02:51PM +0530, Rajendra Nayak wrote:
qup has a requirement to vote on the performance state of the CX domain
in sdm845 devices. Add OPP tables for these and also add power-domains
property for all qup instances.
Signed-off-by: Rajendra Nayak <rnayak@xxxxxxxxxxxxxx>
Signed-off-by: Stephen Boyd <swboyd@xxxxxxxxxxxx>
---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 115 +++++++++++++++++++++++++++++++++++
 1 file changed, 115 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi
index 8f926b5..36b9fb1 100644
--- a/arch/arm64/boot/dts/qcom/sdm845.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi
@@ -804,6 +804,25 @@
ÂÂÂÂÂÂÂÂÂÂÂÂÂ clock-names = "core";
ÂÂÂÂÂÂÂÂÂ };
+ÂÂÂÂÂÂÂ qup_opp_table: qup-opp-table {
+ÂÂÂÂÂÂÂÂÂÂÂ compatible = "operating-points-v2";
+
+ÂÂÂÂÂÂÂÂÂÂÂ opp-19200000 {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ opp-hz = /bits/ 64 <19200000>;
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ required-opps = <&rpmhpd_opp_min_svs>;
+ÂÂÂÂÂÂÂÂÂÂÂ };
+
+ÂÂÂÂÂÂÂÂÂÂÂ opp-75000000 {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ opp-hz = /bits/ 64 <75000000>;
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ required-opps = <&rpmhpd_opp_low_svs>;
+ÂÂÂÂÂÂÂÂÂÂÂ };
+
+ÂÂÂÂÂÂÂÂÂÂÂ opp-100000000 {
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ opp-hz = /bits/ 64 <100000000>;
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ required-opps = <&rpmhpd_opp_svs>;
+ÂÂÂÂÂÂÂÂÂÂÂ };
+ÂÂÂÂÂÂÂ };
+
Judging from SDM845 (which has more OPP tables) the convention seems to be
to add OPP tables to the nodes that use them, which seems reasonable and
keeps them out of the device list.
Unfortunately this convention isn't completely suitable for cases like this
(and the DSI OPPs later in this series), where the same OPP table is used by
multiple devices. A possible compromise would be to add the table to the
node of the first device that uses them.
Sounds fair, I will do that and respin. Thanks.