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

ASoC: dt-bindings: nau8315: Convert to dtschema

Convert the NAU8315 audio CODEC bindings to DT schema.

Signed-off-by: David Lin <CTLIN0@nuvoton.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org
Link: https://lore.kernel.org/r/20230516054944.1081808-1-CTLIN0@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org

authored by

David Lin and committed by
Mark Brown
268777ca 518a1742

+44 -24
-24
Documentation/devicetree/bindings/sound/nau8315.txt
··· 1 - Nuvoton NAU8315 Mono Class-D Amplifier 2 - 3 - Required properties: 4 - - compatible : "nuvoton,nau8315" 5 - "nuvoton,nau8318" 6 - 7 - Optional properties: 8 - - enable-gpios : GPIO specifier for the chip's device enable input(EN) pin. 9 - If this option is not specified then driver does not manage 10 - the pin state (e.g. chip is always on). 11 - 12 - Example: 13 - 14 - #include <dt-bindings/gpio/gpio.h> 15 - 16 - nau8315 { 17 - compatible = "nuvoton,nau8315"; 18 - enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 19 - }; 20 - 21 - nau8318 { 22 - compatible = "nuvoton,nau8318"; 23 - enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 24 - };
+44
Documentation/devicetree/bindings/sound/nuvoton,nau8315.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/nuvoton,nau8315.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NAU8315/NAU8318 Mono Class-D Amplifier 8 + 9 + maintainers: 10 + - David Lin <CTLIN0@nuvoton.com> 11 + 12 + allOf: 13 + - $ref: dai-common.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - nuvoton,nau8315 19 + - nuvoton,nau8318 20 + 21 + '#sound-dai-cells': 22 + const: 0 23 + 24 + enable-gpios: 25 + maxItems: 1 26 + description: 27 + GPIO specifier for the chip's device enable input(EN) pin. 28 + If this option is not specified then driver does not manage 29 + the pin state (e.g. chip is always on). 30 + 31 + required: 32 + - compatible 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + #include <dt-bindings/gpio/gpio.h> 39 + 40 + codec { 41 + compatible = "nuvoton,nau8315"; 42 + #sound-dai-cells = <0>; 43 + enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 44 + };