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

ASoC: dt-bindings: ak5558: Convert to dtschema

Convert the AK5558 ADC audio codec bindings to DT schema.

Signed-off-by: Saalim Quadri <danascape@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230322200949.8986-1-danascape@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Saalim Quadri and committed by
Mark Brown
829d78e3 80404e4e

+48 -24
-24
Documentation/devicetree/bindings/sound/ak5558.txt
··· 1 - AK5558 8 channel differential 32-bit delta-sigma ADC 2 - 3 - This device supports I2C mode only. 4 - 5 - Required properties: 6 - 7 - - compatible : "asahi-kasei,ak5558" or "asahi-kasei,ak5552". 8 - - reg : The I2C address of the device. 9 - 10 - Optional properties: 11 - 12 - - reset-gpios: A GPIO specifier for the power down & reset pin. 13 - - AVDD-supply: Analog power supply 14 - - DVDD-supply: Digital power supply 15 - 16 - Example: 17 - 18 - &i2c { 19 - ak5558: adc@10 { 20 - compatible = "asahi-kasei,ak5558"; 21 - reg = <0x10>; 22 - reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 23 - }; 24 - };
+48
Documentation/devicetree/bindings/sound/asahi-kasei,ak5558.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/asahi-kasei,ak5558.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: AK5558 8 channel differential 32-bit delta-sigma ADC 8 + 9 + maintainers: 10 + - Junichi Wakasugi <wakasugi.jb@om.asahi-kasei.co.jp> 11 + - Mihai Serban <mihai.serban@nxp.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - asahi-kasei,ak5552 17 + - asahi-kasei,ak5558 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + avdd-supply: 23 + description: A 1.8V supply that powers up the AVDD pin. 24 + 25 + dvdd-supply: 26 + description: A 1.2V supply that powers up the DVDD pin. 27 + 28 + reset-gpios: 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/gpio/gpio.h> 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + ak5558: codec@10 { 44 + compatible = "asahi-kasei,ak5558"; 45 + reg = <0x10>; 46 + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 47 + }; 48 + };