1*f126890aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*f126890aSEmmanuel Vadot%YAML 1.2 3*f126890aSEmmanuel Vadot--- 4*f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/nuvoton,nau8315.yaml# 5*f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*f126890aSEmmanuel Vadot 7*f126890aSEmmanuel Vadottitle: NAU8315/NAU8318 Mono Class-D Amplifier 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadotmaintainers: 10*f126890aSEmmanuel Vadot - David Lin <CTLIN0@nuvoton.com> 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel VadotallOf: 13*f126890aSEmmanuel Vadot - $ref: dai-common.yaml# 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadotproperties: 16*f126890aSEmmanuel Vadot compatible: 17*f126890aSEmmanuel Vadot enum: 18*f126890aSEmmanuel Vadot - nuvoton,nau8315 19*f126890aSEmmanuel Vadot - nuvoton,nau8318 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot '#sound-dai-cells': 22*f126890aSEmmanuel Vadot const: 0 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot enable-gpios: 25*f126890aSEmmanuel Vadot maxItems: 1 26*f126890aSEmmanuel Vadot description: 27*f126890aSEmmanuel Vadot GPIO specifier for the chip's device enable input(EN) pin. 28*f126890aSEmmanuel Vadot If this option is not specified then driver does not manage 29*f126890aSEmmanuel Vadot the pin state (e.g. chip is always on). 30*f126890aSEmmanuel Vadot 31*f126890aSEmmanuel Vadotrequired: 32*f126890aSEmmanuel Vadot - compatible 33*f126890aSEmmanuel Vadot 34*f126890aSEmmanuel VadotunevaluatedProperties: false 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadotexamples: 37*f126890aSEmmanuel Vadot - | 38*f126890aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot codec { 41*f126890aSEmmanuel Vadot compatible = "nuvoton,nau8315"; 42*f126890aSEmmanuel Vadot #sound-dai-cells = <0>; 43*f126890aSEmmanuel Vadot enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 44*f126890aSEmmanuel Vadot }; 45