ASoC: dt-bindings: wlf,wm8782: Add wlf,fsampen property
authorJohn Watts <contact@jookia.org>
Mon, 18 Sep 2023 13:15:32 +0000 (23:15 +1000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Sep 2023 13:32:12 +0000 (14:32 +0100)
The WM8782 can safely support rates higher than 48kHz by changing the
value of the FSAMPEN pin.

Allow specifying the FSAMPEN pin value in the device tree.

Signed-off-by: John Watts <contact@jookia.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230918131532.2257615-4-contact@jookia.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/wm8782.txt

index 256cdec6ec4de4e991fd92a241d1d14cbed25342..1a28f3280972387e858ad2879574d2560ea659a2 100644 (file)
@@ -8,10 +8,17 @@ Required properties:
  - Vdda-supply : phandle to a regulator for the analog power supply (2.7V - 5.5V)
  - Vdd-supply  : phandle to a regulator for the digital power supply (2.7V - 3.6V)
 
+Optional properties:
+
+ - wlf,fsampen:
+   FSAMPEN pin value, 0 for low, 1 for high, 2 for disconnected.
+   Defaults to 0 if left unspecified.
+
 Example:
 
 wm8782: stereo-adc {
        compatible = "wlf,wm8782";
        Vdda-supply = <&vdda_supply>;
        Vdd-supply = <&vdd_supply>;
+       wlf,fsampen = <2>; /* 192KHz */
 };