Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: maxim,max98090: Convert to dtschema

Convert the Maxim Integrated MAX98090/MAX98091 audio codecs bindings to
DT schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230208160410.371609-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
0551ff7c 65f0a8ea

+84 -59
-59
Documentation/devicetree/bindings/sound/max98090.txt
··· 1 - MAX98090 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible : "maxim,max98090" or "maxim,max98091". 8 - 9 - - reg : The I2C address of the device. 10 - 11 - - interrupts : The CODEC's interrupt output. 12 - 13 - Optional properties: 14 - 15 - - clocks: The phandle of the master clock to the CODEC 16 - 17 - - clock-names: Should be "mclk" 18 - 19 - - #sound-dai-cells : should be 0. 20 - 21 - - maxim,dmic-freq: Frequency at which to clock DMIC 22 - 23 - - maxim,micbias: Micbias voltage applies to the analog mic, valid voltages value are: 24 - 0 - 2.2v 25 - 1 - 2.55v 26 - 2 - 2.4v 27 - 3 - 2.8v 28 - 29 - Pins on the device (for linking into audio routes): 30 - 31 - * MIC1 32 - * MIC2 33 - * DMICL 34 - * DMICR 35 - * IN1 36 - * IN2 37 - * IN3 38 - * IN4 39 - * IN5 40 - * IN6 41 - * IN12 42 - * IN34 43 - * IN56 44 - * HPL 45 - * HPR 46 - * SPKL 47 - * SPKR 48 - * RCVL 49 - * RCVR 50 - * MICBIAS 51 - 52 - Example: 53 - 54 - audio-codec@10 { 55 - compatible = "maxim,max98090"; 56 - reg = <0x10>; 57 - interrupt-parent = <&gpio>; 58 - interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_LEVEL_HIGH>; 59 - };
+84
Documentation/devicetree/bindings/sound/maxim,max98090.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/maxim,max98090.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim Integrated MAX98090/MAX98091 audio codecs 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 + 12 + description: | 13 + Pins on the device (for linking into audio routes): 14 + MIC1, MIC2, DMICL, DMICR, IN1, IN2, IN3, IN4, IN5, IN6, IN12, IN34, IN56, 15 + HPL, HPR, SPKL, SPKR, RCVL, RCVR, MICBIAS 16 + 17 + allOf: 18 + - $ref: dai-common.yaml# 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + - maxim,max98090 24 + - maxim,max98091 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + clocks: 30 + items: 31 + - description: master clock 32 + 33 + clock-names: 34 + items: 35 + - const: mclk 36 + 37 + interrupts: 38 + maxItems: 1 39 + 40 + maxim,dmic-freq: 41 + $ref: /schemas/types.yaml#/definitions/uint32 42 + default: 2500000 43 + description: 44 + DMIC clock frequency 45 + 46 + maxim,micbias: 47 + $ref: /schemas/types.yaml#/definitions/uint32 48 + enum: [ 0, 1, 2, 3 ] 49 + default: 3 50 + description: | 51 + Micbias voltage applied to the analog mic, valid voltages value are: 52 + 0 - 2.2v 53 + 1 - 2.55v 54 + 2 - 2.4v 55 + 3 - 2.8v 56 + 57 + '#sound-dai-cells': 58 + const: 0 59 + 60 + required: 61 + - compatible 62 + - reg 63 + - interrupts 64 + 65 + unevaluatedProperties: false 66 + 67 + examples: 68 + - | 69 + #include <dt-bindings/interrupt-controller/irq.h> 70 + 71 + i2c { 72 + #address-cells = <1>; 73 + #size-cells = <0>; 74 + 75 + audio-codec@10 { 76 + compatible = "maxim,max98090"; 77 + reg = <0x10>; 78 + interrupt-parent = <&gpx3>; 79 + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 80 + clocks = <&i2s0 0>; 81 + clock-names = "mclk"; 82 + #sound-dai-cells = <0>; 83 + }; 84 + };