Skip to content

Commit 8c149b7

Browse files
krzkbroonie
authored andcommitted
dt-bindings: sound: wm8994: Correct required supplies based on actual implementaion
The required supplies in bindings were actually not matching implementation making the bindings incorrect and misleading. The Linux kernel driver requires all supplies to be present. Also for wlf,wm8994 uses just DBVDD-supply instead of DBVDDn-supply (n: <1,3>). Reported-by: Jonathan Bakker <xc-racer2@live.ca> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200501133534.6706-1-krzk@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f139546 commit 8c149b7

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

‎Documentation/devicetree/bindings/sound/wm8994.txt‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ Required properties:
1414
- #gpio-cells : Must be 2. The first cell is the pin number and the
1515
second cell is used to specify optional parameters (currently unused).
1616

17-
- AVDD2-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply, CPVDD-supply,
18-
SPKVDD1-supply, SPKVDD2-supply : power supplies for the device, as covered
19-
in Documentation/devicetree/bindings/regulator/regulator.txt
17+
- power supplies for the device, as covered in
18+
Documentation/devicetree/bindings/regulator/regulator.txt, depending
19+
on compatible:
20+
- for wlf,wm1811 and wlf,wm8958:
21+
AVDD1-supply, AVDD2-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply,
22+
DCVDD-supply, CPVDD-supply, SPKVDD1-supply, SPKVDD2-supply
23+
- for wlf,wm8994:
24+
AVDD1-supply, AVDD2-supply, DBVDD-supply, DCVDD-supply, CPVDD-supply,
25+
SPKVDD1-supply, SPKVDD2-supply
2026

2127
Optional properties:
2228

@@ -73,11 +79,11 @@ wm8994: codec@1a {
7379

7480
lineout1-se;
7581

82+
AVDD1-supply = <&regulator>;
7683
AVDD2-supply = <&regulator>;
7784
CPVDD-supply = <&regulator>;
78-
DBVDD1-supply = <&regulator>;
79-
DBVDD2-supply = <&regulator>;
80-
DBVDD3-supply = <&regulator>;
85+
DBVDD-supply = <&regulator>;
86+
DCVDD-supply = <&regulator>;
8187
SPKVDD1-supply = <&regulator>;
8288
SPKVDD2-supply = <&regulator>;
8389
};

0 commit comments

Comments
 (0)