mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
405926276b
Add support for PA gpio pin for controlling an external amplifier as used on some Allwinner boards. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
31 lines
979 B
Plaintext
31 lines
979 B
Plaintext
* Allwinner A10 Codec
|
|
|
|
Required properties:
|
|
- compatible: must be either "allwinner,sun4i-a10-codec" or
|
|
"allwinner,sun7i-a20-codec"
|
|
- reg: must contain the registers location and length
|
|
- interrupts: must contain the codec interrupt
|
|
- dmas: DMA channels for tx and rx dma. See the DMA client binding,
|
|
Documentation/devicetree/bindings/dma/dma.txt
|
|
- dma-names: should include "tx" and "rx".
|
|
- clocks: a list of phandle + clock-specifer pairs, one for each entry
|
|
in clock-names.
|
|
- clock-names: should contain followings:
|
|
- "apb": the parent APB clock for this controller
|
|
- "codec": the parent module clock
|
|
|
|
Optional properties:
|
|
- allwinner,pa-gpios: gpio to enable external amplifier
|
|
|
|
Example:
|
|
codec: codec@01c22c00 {
|
|
#sound-dai-cells = <0>;
|
|
compatible = "allwinner,sun7i-a20-codec";
|
|
reg = <0x01c22c00 0x40>;
|
|
interrupts = <0 30 4>;
|
|
clocks = <&apb0_gates 0>, <&codec_clk>;
|
|
clock-names = "apb", "codec";
|
|
dmas = <&dma 0 19>, <&dma 0 19>;
|
|
dma-names = "rx", "tx";
|
|
};
|