Skip to content

Commit e820de1

Browse files
krzkmartinkpetersen
authored andcommitted
scsi: ufs: dt-bindings: common: Add OPP table
Except scaling UFS and bus clocks, it's necessary to scale also the voltages of regulators or power domain performance state levels. Adding Operating Performance Points table allows to adjust power domain performance state, depending on the UFS clock speed. OPPv2 deprecates previous property limited to clock scaling: freq-table-hz. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 058676b commit e820de1

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

Diff for: Documentation/devicetree/bindings/ufs/ufs-common.yaml

+32-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,25 @@ properties:
2020
items:
2121
- description: Minimum frequency for given clock in Hz
2222
- description: Maximum frequency for given clock in Hz
23+
deprecated: true
2324
description: |
25+
Preferred is operating-points-v2.
26+
2427
Array of <min max> operating frequencies in Hz stored in the same order
25-
as the clocks property. If this property is not defined or a value in the
26-
array is "0" then it is assumed that the frequency is set by the parent
27-
clock or a fixed rate clock source.
28+
as the clocks property. If either this property or operating-points-v2 is
29+
not defined or a value in the array is "0" then it is assumed that the
30+
frequency is set by the parent clock or a fixed rate clock source.
31+
32+
operating-points-v2:
33+
description:
34+
Preferred over freq-table-hz.
35+
If present, each OPP must contain array of frequencies stored in the same
36+
order for each clock. If clock frequency in the array is "0" then it is
37+
assumed that the frequency is set by the parent clock or a fixed rate
38+
clock source.
39+
40+
opp-table:
41+
type: object
2842

2943
interrupts:
3044
maxItems: 1
@@ -75,8 +89,23 @@ properties:
7589

7690
dependencies:
7791
freq-table-hz: [ clocks ]
92+
operating-points-v2: [ clocks, clock-names ]
7893

7994
required:
8095
- interrupts
8196

97+
allOf:
98+
- if:
99+
required:
100+
- freq-table-hz
101+
then:
102+
properties:
103+
operating-points-v2: false
104+
- if:
105+
required:
106+
- operating-points-v2
107+
then:
108+
properties:
109+
freq-table-hz: false
110+
82111
additionalProperties: true

0 commit comments

Comments
 (0)