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

dt-bindings: sound: Convert max98088 to dtschema

Convert the max98088 audio codec txt bindings to DT schema.

Signed-off-by: Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240612163730.515819-1-abdulrasaqolawani@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Abdulrasaq Lawani and committed by
Mark Brown
7fbc4f5e a9c8ca5d

+47 -23
-23
Documentation/devicetree/bindings/sound/maxim,max98088.txt
··· 1 - MAX98088 audio CODEC 2 - 3 - This device supports I2C only. 4 - 5 - Required properties: 6 - 7 - - compatible: "maxim,max98088" or "maxim,max98089". 8 - - reg: The I2C address of the device. 9 - 10 - Optional properties: 11 - 12 - - clocks: the clock provider of MCLK, see ../clock/clock-bindings.txt section 13 - "consumer" for more information. 14 - - clock-names: must be set to "mclk" 15 - 16 - Example: 17 - 18 - max98089: codec@10 { 19 - compatible = "maxim,max98089"; 20 - reg = <0x10>; 21 - clocks = <&clks IMX6QDL_CLK_CKO2>; 22 - clock-names = "mclk"; 23 - };
+47
Documentation/devicetree/bindings/sound/maxim,max98088.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,max98088.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MAX98088 audio CODEC 8 + 9 + maintainers: 10 + - Abdulrasaq Lawani <abdulrasaqolawani@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - maxim,max98088 16 + - maxim,max98089 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + clocks: 22 + items: 23 + - description: master clock 24 + 25 + clock-names: 26 + items: 27 + - const: mclk 28 + 29 + required: 30 + - compatible 31 + - reg 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + i2c { 38 + #address-cells = <1>; 39 + #size-cells = <0>; 40 + 41 + audio-codec@10 { 42 + compatible = "maxim,max98089"; 43 + reg = <0x10>; 44 + clocks = <&clks 0>; 45 + clock-names = "mclk"; 46 + }; 47 + };