ASoC: dt-bindings: Make RK3328 codec GPIO explicit
authorRobin Murphy <robin.murphy@arm.com>
Tue, 18 Feb 2020 21:31:58 +0000 (21:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Feb 2020 17:43:20 +0000 (17:43 +0000)
Existing RK3328 codec drivers have overloaded the GRF phandle to assume
implicit control of the limited-function GPIO_MUTE pin, which is usually
used to enable an external audio line driver IC. Since this pin has a
proper binding of its own (see gpio/rockchip,rk3328-grf-gpio.txt), make
a GPIO explicit in the codec binding too. This will help avoid ambiguity
on boards that use that pin for some other purpose.

(and while touching the example, enforce the "don't include status" rule)

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/5f7a399dea8a9dedef57f6f99f0f6ab1c1fdc56a.1581376744.git.robin.murphy@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/rockchip,rk3328-codec.txt

index 2469588c7ccbb778ef6f9bac24810a3585c0e444..1ecd75d2032a006f36ef0e2217b8501bca973281 100644 (file)
@@ -10,6 +10,11 @@ Required properties:
 - clock-names: should be "pclk".
 - spk-depop-time-ms: speak depop time msec.
 
+Optional properties:
+
+- mute-gpios: GPIO specifier for external line driver control (typically the
+              dedicated GPIO_MUTE pin)
+
 Example for rk3328 internal codec:
 
 codec: codec@ff410000 {
@@ -18,6 +23,6 @@ codec: codec@ff410000 {
        rockchip,grf = <&grf>;
        clocks = <&cru PCLK_ACODEC>;
        clock-names = "pclk";
+       mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
        spk-depop-time-ms = 100;
-       status = "disabled";
 };