]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: add fault detect recovery property to DT bindings
authorDaniel Mack <daniel@zonque.org>
Wed, 3 Oct 2018 19:32:34 +0000 (21:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Oct 2018 10:41:52 +0000 (11:41 +0100)
The driver already has support for setting the FDRB bit in the CONFA
register through platform data, but there was no property to set it
in the device-tree bindings.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/st,sta32x.txt
sound/soc/codecs/sta32x.c

index 255de3ae5b2ff5e9cb58f33983b76e120fac0699..ff4a685a43036ee12675b9962987ec5d34d0dc8f 100644 (file)
@@ -39,6 +39,9 @@ Optional properties:
   -  st,thermal-warning-recover:
        If present, thermal warning recovery is enabled.
 
+  - st,fault-detect-recovery:
+       If present, fault detect recovery is enabled.
+
   -  st,thermal-warning-adjustment:
        If present, thermal warning adjustment is enabled.
 
index d5035f2f2b2ba727329570003d7d13a3c42d93d4..22de1593443cc48c721acd8b34e2bccc9adfe3b3 100644 (file)
@@ -1038,6 +1038,8 @@ static int sta32x_probe_dt(struct device *dev, struct sta32x_priv *sta32x)
        of_property_read_u8(np, "st,ch3-output-mapping",
                            &pdata->ch3_output_mapping);
 
+       if (of_get_property(np, "st,fault-detect-recovery", NULL))
+               pdata->fault_detect_recovery = 1;
        if (of_get_property(np, "st,thermal-warning-recovery", NULL))
                pdata->thermal_warning_recovery = 1;
        if (of_get_property(np, "st,thermal-warning-adjustment", NULL))