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