1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Awinic AW88395 Smart Audio Amplifier 8 9maintainers: 10 - Weidong Wang <wangweidong.a@awinic.com> 11 12description: 13 The Awinic AW88395 is an I2S/TDM input, high efficiency 14 digital Smart K audio amplifier with an integrated 10.25V 15 smart boost convert. 16 17properties: 18 compatible: 19 enum: 20 - awinic,aw88395 21 - awinic,aw88261 22 23 reg: 24 maxItems: 1 25 26 '#sound-dai-cells': 27 const: 0 28 29 reset-gpios: 30 maxItems: 1 31 32 awinic,audio-channel: 33 description: 34 It is used to distinguish multiple PA devices, so that different 35 configurations can be loaded to different PA devices 36 $ref: /schemas/types.yaml#/definitions/uint32 37 minimum: 0 38 maximum: 7 39 40 awinic,sync-flag: 41 description: 42 Flag bit used to keep the phase synchronized in the case of multiple PA 43 $ref: /schemas/types.yaml#/definitions/flag 44 45required: 46 - compatible 47 - reg 48 - '#sound-dai-cells' 49 - awinic,audio-channel 50 51allOf: 52 - $ref: dai-common.yaml# 53 - if: 54 properties: 55 compatible: 56 contains: 57 enum: 58 - awinic,aw88261 59 then: 60 properties: 61 reset-gpios: false 62 63unevaluatedProperties: false 64 65examples: 66 - | 67 #include <dt-bindings/gpio/gpio.h> 68 i2c { 69 #address-cells = <1>; 70 #size-cells = <0>; 71 audio-codec@34 { 72 compatible = "awinic,aw88395"; 73 reg = <0x34>; 74 #sound-dai-cells = <0>; 75 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>; 76 awinic,audio-channel = <0>; 77 awinic,sync-flag; 78 }; 79 }; 80