Skip to content

Commit e7865de

Browse files
cristicclag-linaro
authored andcommitted
dt-bindings: mfd: rk817: Fixup clocks and reference dai-common
Ensure 'clocks' property does not allow more than one item and add the missing reference to dai-common schema. While at it, move 'clocks*' and '#sound-dai-cells' properties to keep the list ordered alphabetically. Additionally, drop all useless/redundant descriptions. Fixes: 6c38ca0 ("dt-bindings: mfd: rk808: Convert bindings to yaml") Signed-off-by: Cristian Ciocaltea <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 279322a commit e7865de

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ properties:
3232
minimum: 0
3333
maximum: 1
3434

35+
clocks:
36+
maxItems: 1
37+
38+
clock-names:
39+
items:
40+
- const: mclk
41+
3542
clock-output-names:
3643
description:
3744
From common clock binding to override the default output clock name.
@@ -42,6 +49,9 @@ properties:
4249
description:
4350
Telling whether or not this PMIC is controlling the system power.
4451

52+
'#sound-dai-cells':
53+
const: 0
54+
4555
system-power-controller: true
4656

4757
wakeup-source:
@@ -94,26 +104,7 @@ properties:
94104
$ref: /schemas/regulator/regulator.yaml#
95105
unevaluatedProperties: false
96106

97-
clocks:
98-
description:
99-
The input clock for the audio codec.
100-
101-
clock-names:
102-
description:
103-
The clock name for the codec clock.
104-
items:
105-
- const: mclk
106-
107-
'#sound-dai-cells':
108-
description:
109-
Needed for the interpretation of sound dais.
110-
const: 0
111-
112107
codec:
113-
description: |
114-
The child node for the codec to hold additional properties. If no
115-
additional properties are required for the codec, this node can be
116-
omitted.
117108
type: object
118109
additionalProperties: false
119110
properties:
@@ -123,9 +114,6 @@ properties:
123114
Describes if the microphone uses differential mode.
124115

125116
charger:
126-
description: |
127-
The child node for the charger to hold additional properties. If a
128-
battery is not in use, this node can be omitted.
129117
type: object
130118
$ref: /schemas/power/supply/power-supply.yaml
131119

@@ -168,6 +156,7 @@ properties:
168156
additionalProperties: false
169157

170158
allOf:
159+
- $ref: /schemas/sound/dai-common.yaml#
171160
- if:
172161
properties:
173162
'#clock-cells':

0 commit comments

Comments
 (0)