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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: adi,adau17x1: Convert to DT schema

Convert the binding document for adi,adau17x1 from txt to yaml
so one could validate dt-entries correctly and any future additions
can go into yaml format. Add address and size cells to example to
prevent errors regarding reg format.

Signed-off-by: Vijaya Anand <sunrockers8@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230315231055.3067-1-sunrockers8@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Vijaya Anand and committed by
Mark Brown
87771c94 ff750f8e

+52 -32
-32
Documentation/devicetree/bindings/sound/adi,adau17x1.txt
··· 1 - Analog Devices ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 2 - 3 - Required properties: 4 - 5 - - compatible: Should contain one of the following: 6 - "adi,adau1361" 7 - "adi,adau1461" 8 - "adi,adau1761" 9 - "adi,adau1961" 10 - "adi,adau1381" 11 - "adi,adau1781" 12 - 13 - - reg: The i2c address. Value depends on the state of ADDR0 14 - and ADDR1, as wired in hardware. 15 - 16 - Optional properties: 17 - - clock-names: If provided must be "mclk". 18 - - clocks: phandle + clock-specifiers for the clock that provides 19 - the audio master clock for the device. 20 - 21 - Examples: 22 - #include <dt-bindings/sound/adau17x1.h> 23 - 24 - i2c_bus { 25 - adau1361@38 { 26 - compatible = "adi,adau1761"; 27 - reg = <0x38>; 28 - 29 - clock-names = "mclk"; 30 - clocks = <&audio_clock>; 31 - }; 32 - };
+52
Documentation/devicetree/bindings/sound/adi,adau17x1.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/adi,adau17x1.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: 8 + Analog Devices ADAU1361/ADAU1461/ADAU1761/ADAU1961/ADAU1381/ADAU1781 Codec 9 + 10 + maintainers: 11 + - Lars-Peter Clausen <lars@metafoo.de> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - adi,adau1361 17 + - adi,adau1381 18 + - adi,adau1461 19 + - adi,adau1761 20 + - adi,adau1781 21 + - adi,adau1961 22 + 23 + reg: 24 + maxItems: 1 25 + description: 26 + The i2c address. Value depends on the state of ADDR0 and ADDR1, 27 + as wired in hardware. 28 + 29 + clock-names: 30 + const: mclk 31 + 32 + clocks: 33 + items: 34 + - description: provides the audio master clock for the device. 35 + 36 + required: 37 + - compatible 38 + - reg 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + audio-codec@38 { 48 + compatible = "adi,adau1761"; 49 + reg = <0x38>; 50 + clock-names = "mclk"; 51 + clocks = <&audio_clock>; 52 + };