ASoC: dt-bindings: Convert realtek,rt5651 to DT schema
Subsystems (3)
Rob Herring (Arm)
maintainerPATCH 1/1 ASoC: dt-bindings: Convert realtek,rt5651 to DT schema
Convert the Realtek RT5661 codec binding to DT schema format. Add missing clocks/clock-names for MCLK which is in use already. Also add the standard "#sound-dai-cells" property.
--- .../bindings/sound/realtek,rt5651.yaml | 100 ++++++++++++++++++ .../devicetree/bindings/sound/rt5651.txt | 63 ----------- 2 files changed, 100 insertions(+), 63 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/realtek,rt5651.yaml delete mode 100644 Documentation/devicetree/bindings/sound/rt5651.txt
Documentation/devicetree/bindings/sound/realtek,rt5651.yaml new file +100 -0
@@ -0,0 +1,100 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/realtek,rt5651.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RT5651 audio CODEC + +maintainers: + - Bard Liao <[email protected]> + +description: > + This device supports I2C only. + + Pins on the device (for linking into audio routes) for RT5651: + + * DMIC L1 + * DMIC R1 + * IN1P + * IN2P + * IN2N + * IN3P + * HPOL + * HPOR + * LOUTL + * LOUTR + * PDML + * PDMR + +allOf: + - $ref: /schemas/sound/dai-common.yaml# + +properties: + compatible: + const: realtek,rt5651 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: mclk + + '#sound-dai-cells': + const: 0 + + realtek,in2-differential: + type: boolean + description: Indicate MIC2 input are differential, rather than single-ended. + + realtek,dmic-en: + type: boolean + description: Indicates DMIC is used. + + realtek,jack-detect-source: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Select jack-detect input pin. + enum: [1, 2, 3] + + realtek,jack-detect-not-inverted: + type: boolean + description: + Normal jack-detect switches give an inverted (active-low) signal. Set this + bool in the rare case you've a jack-detect switch which is not inverted. + + realtek,over-current-threshold-microamp: + description: Micbias over-current detection threshold in µA. + enum: [600, 1500, 2000] + + realtek,over-current-scale-factor: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Micbias over-current detection scale factor: + + 0: scale current by 0.5 + 1: scale current by 0.75 + 2: scale current by 1.0 + 3: scale current by 1.5 + enum: [0, 1, 2, 3] + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + codec@1a { + compatible = "realtek,rt5651"; + reg = <0x1a>; + realtek,dmic-en; + realtek,in2-differential; + }; + };
Documentation/devicetree/bindings/sound/rt5651.txt deleted +0 -63
63 lines not on this page · raw message
Signature · 1 line
2.51.0
Quoted 11 lines · Rob Herring (Arm)
Convert the Realtek RT5661 codec binding to DT schema format. Add missing clocks/clock-names for MCLK which is in use already. Also add the standard "#sound-dai-cells" property.
Signed-off-by Rob Herring (Arm) <[email protected]>--- .../bindings/sound/realtek,rt5651.yaml | 100 ++++++++++++++++++ .../devicetree/bindings/sound/rt5651.txt | 63 ----------- 2 files changed, 100 insertions(+), 63 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/realtek,rt5651.yaml delete mode 100644 Documentation/devicetree/bindings/sound/rt5651.txt
Best regards,
Krzysztof
Mark Brown
maintainerQuoted 5 lines · Rob Herring (Arm)
Convert the Realtek RT5661 codec binding to DT schema format. Add missing clocks/clock-names for MCLK which is in use already. Also add the standard "#sound-dai-cells" property.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: dt-bindings: Convert realtek,rt5651 to DT schema
commit: 35bffbe49dfd3395c65d76f14d773a1225f3489f
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark