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

ASoC: wm8750: convert to the json-schema

This helps validating DTS files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210512205926.780-1-zajec5@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Rafał Miłecki and committed by
Mark Brown
11480dbf 375904e3

+42 -18
-18
Documentation/devicetree/bindings/sound/wm8750.txt
··· 1 - WM8750 and WM8987 audio CODECs 2 - 3 - These devices support both I2C and SPI (configured with pin strapping 4 - on the board). 5 - 6 - Required properties: 7 - 8 - - compatible : "wlf,wm8750" or "wlf,wm8987" 9 - 10 - - reg : the I2C address of the device for I2C, the chip select 11 - number for SPI. 12 - 13 - Example: 14 - 15 - wm8750: codec@1a { 16 - compatible = "wlf,wm8750"; 17 - reg = <0x1a>; 18 - };
+42
Documentation/devicetree/bindings/sound/wm8750.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/wm8750.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: WM8750 and WM8987 audio CODECs 8 + 9 + description: | 10 + These devices support both I2C and SPI (configured with pin strapping 11 + on the board). 12 + 13 + maintainers: 14 + - Mark Brown <broonie@kernel.org> 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - wlf,wm8750 20 + - wlf,wm8987 21 + 22 + reg: 23 + description: 24 + The I2C address of the device for I2C, the chip select number for SPI 25 + maxItems: 1 26 + 27 + additionalProperties: false 28 + 29 + required: 30 + - reg 31 + 32 + examples: 33 + - | 34 + i2c { 35 + #address-cells = <1>; 36 + #size-cells = <0>; 37 + 38 + codec@1a { 39 + compatible = "wlf,wm8750"; 40 + reg = <0x1a>; 41 + }; 42 + };