forked from thesofproject/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request thesofproject#5162 from bardliao/merge/sound-upstr…
…eam-20240830 Merge/sound upstream 20240830
- Loading branch information
Showing
62 changed files
with
906 additions
and
679 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
Documentation/devicetree/bindings/sound/cirrus,cs4271.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/sound/cirrus,cs4271.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Cirrus Logic CS4271 audio CODEC | ||
|
||
maintainers: | ||
- Alexander Sverdlin <[email protected]> | ||
- Nikita Shubin <[email protected]> | ||
|
||
description: | ||
The CS4271 is a stereo audio codec. This device supports both the I2C | ||
and the SPI bus. | ||
|
||
allOf: | ||
- $ref: dai-common.yaml# | ||
- $ref: /schemas/spi/spi-peripheral-props.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: cirrus,cs4271 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
spi-cpha: true | ||
|
||
spi-cpol: true | ||
|
||
'#sound-dai-cells': | ||
const: 0 | ||
|
||
reset-gpios: | ||
description: | ||
This pin will be deasserted before communication to the codec starts. | ||
maxItems: 1 | ||
|
||
va-supply: | ||
description: Analog power supply. | ||
|
||
vd-supply: | ||
description: Digital power supply. | ||
|
||
vl-supply: | ||
description: Serial Control Port power supply. | ||
|
||
port: | ||
$ref: audio-graph-port.yaml# | ||
unevaluatedProperties: false | ||
|
||
cirrus,amuteb-eq-bmutec: | ||
description: | ||
When given, the Codec's AMUTEB=BMUTEC flag is enabled. | ||
type: boolean | ||
|
||
cirrus,enable-soft-reset: | ||
description: | | ||
The CS4271 requires its LRCLK and MCLK to be stable before its RESET | ||
line is de-asserted. That also means that clocks cannot be changed | ||
without putting the chip back into hardware reset, which also requires | ||
a complete re-initialization of all registers. | ||
One (undocumented) workaround is to assert and de-assert the PDN bit | ||
in the MODE2 register. This workaround can be enabled with this DT | ||
property. | ||
Note that this is not needed in case the clocks are stable | ||
throughout the entire runtime of the codec. | ||
type: boolean | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
codec@0 { | ||
compatible = "cirrus,cs4271"; | ||
reg = <0>; | ||
#sound-dai-cells = <0>; | ||
spi-max-frequency = <6000000>; | ||
spi-cpol; | ||
spi-cpha; | ||
reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||
port { | ||
endpoint { | ||
remote-endpoint = <&i2s_ep>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
... |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/sound/fsl,saif.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Freescale MXS Serial Audio Interface (SAIF) | ||
|
||
maintainers: | ||
- Lukasz Majewski <[email protected]> | ||
|
||
allOf: | ||
- $ref: dai-common.yaml# | ||
|
||
description: | ||
The SAIF is based on I2S module that is used to communicate with audio codecs, | ||
but only with half-duplex manner (i.e. it can either transmit or receive PCM | ||
audio). | ||
|
||
properties: | ||
compatible: | ||
const: fsl,imx28-saif | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#sound-dai-cells": | ||
const: 0 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
dmas: | ||
maxItems: 1 | ||
|
||
dma-names: | ||
const: rx-tx | ||
|
||
"#clock-cells": | ||
description: Configure the I2S device as MCLK clock provider. | ||
const: 0 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
fsl,saif-master: | ||
description: Indicate that saif is a slave and its phandle points to master | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#sound-dai-cells" | ||
- interrupts | ||
- dmas | ||
- dma-names | ||
- clocks | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
saif0: saif@80042000 { | ||
compatible = "fsl,imx28-saif"; | ||
reg = <0x80042000 2000>; | ||
#sound-dai-cells = <0>; | ||
interrupts = <59>; | ||
dmas = <&dma_apbx 4>; | ||
dma-names = "rx-tx"; | ||
#clock-cells = <0>; | ||
clocks = <&clks 53>; | ||
}; | ||
- | | ||
saif1: saif@80046000 { | ||
compatible = "fsl,imx28-saif"; | ||
reg = <0x80046000 2000>; | ||
#sound-dai-cells = <0>; | ||
interrupts = <58>; | ||
dmas = <&dma_apbx 5>; | ||
dma-names = "rx-tx"; | ||
clocks = <&clks 53>; | ||
fsl,saif-master = <&saif0>; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.