Skip to content

Commit e043140

Browse files
committed
Merge tag 'opp-updates-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm
Pull OPP (Operating Performance Points) updates for 5.19-rc1 from Viresh Kumar: - Minor update to dt-binding for Qcom's opp-v2-kryo-cpu (Yassine Oudjana). - Use list iterator only inside the list_for_each_entry loop (Xiaomeng Tong, and Jakob Koschel). - New APIs related to finding OPP based on interconnect bandwidth (Krzysztof Kozlowski). - Fix the missing of_node_put() in _bandwidth_supported() (Dan Carpenter). - Cleanups (Krzysztof Kozlowski, and Viresh Kumar). * tag 'opp-updates-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm: opp: Reorder definition of ceil/floor helpers opp: Add apis to retrieve opps with interconnect bandwidth dt-bindings: opp: opp-v2-kryo-cpu: Remove SMEM opp: use list iterator only inside the loop opp: replace usage of found with dedicated list iterator variable PM: opp: simplify with dev_err_probe() OPP: call of_node_put() on error path in _bandwidth_supported()
2 parents 09583df + 22079af commit e043140

File tree

5 files changed

+291
-157
lines changed

5 files changed

+291
-157
lines changed

Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ description: |
1717
the CPU frequencies subset and voltage value of each OPP varies based on
1818
the silicon variant in use.
1919
Qualcomm Technologies, Inc. Process Voltage Scaling Tables
20-
defines the voltage and frequency value based on the msm-id in SMEM
21-
and speedbin blown in the efuse combination.
22-
The qcom-cpufreq-nvmem driver reads the msm-id and efuse value from the SoC
23-
to provide the OPP framework with required information (existing HW bitmap).
20+
defines the voltage and frequency value based on the speedbin blown in
21+
the efuse combination.
22+
The qcom-cpufreq-nvmem driver reads the efuse value from the SoC to provide
23+
the OPP framework with required information (existing HW bitmap).
2424
This is used to determine the voltage and frequency value for each OPP of
2525
operating-points-v2 table when it is parsed by the OPP framework.
2626
@@ -50,15 +50,11 @@ patternProperties:
5050
description: |
5151
A single 32 bit bitmap value, representing compatible HW.
5252
Bitmap:
53-
0: MSM8996 V3, speedbin 0
54-
1: MSM8996 V3, speedbin 1
55-
2: MSM8996 V3, speedbin 2
56-
3: unused
57-
4: MSM8996 SG, speedbin 0
58-
5: MSM8996 SG, speedbin 1
59-
6: MSM8996 SG, speedbin 2
60-
7-31: unused
61-
maximum: 0x77
53+
0: MSM8996, speedbin 0
54+
1: MSM8996, speedbin 1
55+
2: MSM8996, speedbin 2
56+
3-31: unused
57+
maximum: 0x7
6258

6359
clock-latency-ns: true
6460

@@ -184,19 +180,19 @@ examples:
184180
opp-307200000 {
185181
opp-hz = /bits/ 64 <307200000>;
186182
opp-microvolt = <905000 905000 1140000>;
187-
opp-supported-hw = <0x77>;
183+
opp-supported-hw = <0x7>;
188184
clock-latency-ns = <200000>;
189185
};
190-
opp-1593600000 {
191-
opp-hz = /bits/ 64 <1593600000>;
186+
opp-1401600000 {
187+
opp-hz = /bits/ 64 <1401600000>;
192188
opp-microvolt = <1140000 905000 1140000>;
193-
opp-supported-hw = <0x71>;
189+
opp-supported-hw = <0x5>;
194190
clock-latency-ns = <200000>;
195191
};
196-
opp-2188800000 {
197-
opp-hz = /bits/ 64 <2188800000>;
192+
opp-1593600000 {
193+
opp-hz = /bits/ 64 <1593600000>;
198194
opp-microvolt = <1140000 905000 1140000>;
199-
opp-supported-hw = <0x10>;
195+
opp-supported-hw = <0x1>;
200196
clock-latency-ns = <200000>;
201197
};
202198
};
@@ -209,25 +205,25 @@ examples:
209205
opp-307200000 {
210206
opp-hz = /bits/ 64 <307200000>;
211207
opp-microvolt = <905000 905000 1140000>;
212-
opp-supported-hw = <0x77>;
208+
opp-supported-hw = <0x7>;
213209
clock-latency-ns = <200000>;
214210
};
215-
opp-1593600000 {
216-
opp-hz = /bits/ 64 <1593600000>;
211+
opp-1804800000 {
212+
opp-hz = /bits/ 64 <1804800000>;
217213
opp-microvolt = <1140000 905000 1140000>;
218-
opp-supported-hw = <0x70>;
214+
opp-supported-hw = <0x6>;
219215
clock-latency-ns = <200000>;
220216
};
221-
opp-2150400000 {
222-
opp-hz = /bits/ 64 <2150400000>;
217+
opp-1900800000 {
218+
opp-hz = /bits/ 64 <1900800000>;
223219
opp-microvolt = <1140000 905000 1140000>;
224-
opp-supported-hw = <0x31>;
220+
opp-supported-hw = <0x4>;
225221
clock-latency-ns = <200000>;
226222
};
227-
opp-2342400000 {
228-
opp-hz = /bits/ 64 <2342400000>;
223+
opp-2150400000 {
224+
opp-hz = /bits/ 64 <2150400000>;
229225
opp-microvolt = <1140000 905000 1140000>;
230-
opp-supported-hw = <0x10>;
226+
opp-supported-hw = <0x1>;
231227
clock-latency-ns = <200000>;
232228
};
233229
};

0 commit comments

Comments
 (0)