From a0aa4a48fdd64bd273a0c936eecc8725d3ae6d4f Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Tue, 1 Sep 2020 20:43:56 +0800 Subject: [PATCH] dt-bindings: sound: es8311: Add bindings documentation for es8311 audio codec Signed-off-by: Xing Zheng Change-Id: I96d5f780c907257f9b39e1ca879f2234e7623644 --- .../devicetree/bindings/sound/es8311.txt | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/es8311.txt diff --git a/Documentation/devicetree/bindings/sound/es8311.txt b/Documentation/devicetree/bindings/sound/es8311.txt new file mode 100644 index 000000000000..0c1afb1b56b8 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/es8311.txt @@ -0,0 +1,21 @@ +Everest ES8311 audio CODEC + +Required properties: + + - compatible: "everest,es8311" + - reg: the I2C address of the device for I2C + - spk-ctl-gpios: control spk enable/disable +Optional properties: + +- clocks: The phandle of the master clock to the CODEC +- clock-names: Should be "mclk" + +Example: + +es8311: es8311@18 { + compatible = "everest,es8311"; + reg = <0x18>; + clocks = <&cru MCLK_I2S0_TX_OUT2IO>; + clock-names = "mclk"; + spk-ctl-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; +};