Signed-off-by: Nicolò Veronese nicveronese@gmail.com --- .../devicetree/bindings/sound/simple-amplifier.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/simple-amplifier.txt
diff --git a/Documentation/devicetree/bindings/sound/simple-amplifier.txt b/Documentation/devicetree/bindings/sound/simple-amplifier.txt new file mode 100644 index 0000000..1c2b57c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/simple-amplifier.txt @@ -0,0 +1,36 @@ +Simple-Amplifier: + +Simple-Amplifier specifies a simple aux device for your codec. +Most aplifiers are managed by a single GPIO. The main function +of this driver is to toggle the MUTE/SHUTDOWN GPIO. + +Required properties: + +- compatible : "simple-audio-amplifier" + +- VCC-supply : power supply for the device, as covered +in Documentation/devicetree/bindings/regulator/regulator.txt + +Optional properties: + +- shutdown-gpios : The gpio to be toggled on and off +to shutdown the amplifier when not in use. as covered +in Documentation/gpio/board.txt + +Example: + +sound { + compatible = "simple-audio-card"; + ... + simple-audio-card,routing = + "LEFT AMP IN", "LINE_OUT_LEFT", + "RIGHT AMP IN", "LINE_OUT_RIGHT"; + simple-audio-card,aux-devs = <&>; + ... +}; + +amp: amplifier { + compatible = "simple-audio-amplifier"; + VCC-supply = <®ulator> + shutdown-gpios = <&r_pio 2 GPIO_ACTIVE_LOW>; +};