18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/sound/wlf,arizona.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - patches@opensource.cirrus.com 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: | 138c2ecf20Sopenharmony_ci These devices are audio SoCs with extensive digital capabilities and a range 148c2ecf20Sopenharmony_ci of analogue I/O. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci This document lists sound specific bindings, see the primary binding 178c2ecf20Sopenharmony_ci document ../mfd/arizona.yaml 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciproperties: 208c2ecf20Sopenharmony_ci '#sound-dai-cells': 218c2ecf20Sopenharmony_ci description: 228c2ecf20Sopenharmony_ci The first cell indicating the audio interface. 238c2ecf20Sopenharmony_ci const: 1 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci wlf,inmode: 268c2ecf20Sopenharmony_ci description: 278c2ecf20Sopenharmony_ci A list of INn_MODE register values, where n is the number of input 288c2ecf20Sopenharmony_ci signals. Valid values are 0 (Differential), 1 (Single-ended) and 298c2ecf20Sopenharmony_ci 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by 308c2ecf20Sopenharmony_ci default. If present, values must be specified less than or equal 318c2ecf20Sopenharmony_ci to the number of input signals. If values less than the number of 328c2ecf20Sopenharmony_ci input signals, elements that have not been specified are set to 0 by 338c2ecf20Sopenharmony_ci default. Entries are <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, 348c2ecf20Sopenharmony_ci wm8997) and <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814) 358c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 368c2ecf20Sopenharmony_ci minItems: 1 378c2ecf20Sopenharmony_ci maxItems: 4 388c2ecf20Sopenharmony_ci items: 398c2ecf20Sopenharmony_ci minimum: 0 408c2ecf20Sopenharmony_ci maximum: 2 418c2ecf20Sopenharmony_ci default: 0 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci wlf,out-mono: 448c2ecf20Sopenharmony_ci description: 458c2ecf20Sopenharmony_ci A list of boolean values indicating whether each output is mono 468c2ecf20Sopenharmony_ci or stereo. Position within the list indicates the output affected 478c2ecf20Sopenharmony_ci (eg. First entry in the list corresponds to output 1). A non-zero 488c2ecf20Sopenharmony_ci value indicates a mono output. If present, the number of values 498c2ecf20Sopenharmony_ci should be less than or equal to the number of outputs, if less values 508c2ecf20Sopenharmony_ci are supplied the additional outputs will be treated as stereo. 518c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 528c2ecf20Sopenharmony_ci minItems: 1 538c2ecf20Sopenharmony_ci maxItems: 6 548c2ecf20Sopenharmony_ci items: 558c2ecf20Sopenharmony_ci minimum: 0 568c2ecf20Sopenharmony_ci maximum: 1 578c2ecf20Sopenharmony_ci default: 0 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci wlf,dmic-ref: 608c2ecf20Sopenharmony_ci description: 618c2ecf20Sopenharmony_ci DMIC reference voltage source for each input, can be selected from 628c2ecf20Sopenharmony_ci either MICVDD or one of the MICBIAS's, defines (ARIZONA_DMIC_xxxx) 638c2ecf20Sopenharmony_ci are provided in dt-bindings/mfd/arizona.h. If present, the number 648c2ecf20Sopenharmony_ci of values should be less than or equal to the number of inputs, 658c2ecf20Sopenharmony_ci unspecified inputs will use the chip default. 668c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 678c2ecf20Sopenharmony_ci minItems: 1 688c2ecf20Sopenharmony_ci maxItems: 4 698c2ecf20Sopenharmony_ci items: 708c2ecf20Sopenharmony_ci minimum: 0 718c2ecf20Sopenharmony_ci maximum: 3 728c2ecf20Sopenharmony_ci default: 0 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci wlf,max-channels-clocked: 758c2ecf20Sopenharmony_ci description: 768c2ecf20Sopenharmony_ci The maximum number of channels to be clocked on each AIF, useful for 778c2ecf20Sopenharmony_ci I2S systems with multiple data lines being mastered. Specify one 788c2ecf20Sopenharmony_ci cell for each AIF to be configured, specify zero for AIFs that should 798c2ecf20Sopenharmony_ci be handled normally. If present, number of cells must be less than 808c2ecf20Sopenharmony_ci or equal to the number of AIFs. If less than the number of AIFs, for 818c2ecf20Sopenharmony_ci cells that have not been specified the corresponding AIFs will be 828c2ecf20Sopenharmony_ci treated as default setting. 838c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 848c2ecf20Sopenharmony_ci minItems: 1 858c2ecf20Sopenharmony_ci maxItems: 3 868c2ecf20Sopenharmony_ci items: 878c2ecf20Sopenharmony_ci default: 0 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci wlf,spk-fmt: 908c2ecf20Sopenharmony_ci description: 918c2ecf20Sopenharmony_ci PDM speaker data format, must contain 2 cells (OUT5 and OUT6). See 928c2ecf20Sopenharmony_ci the datasheet for values. The second cell is ignored for codecs that 938c2ecf20Sopenharmony_ci do not have OUT6 (wm5102, wm8997, wm8998, wm1814) 948c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 958c2ecf20Sopenharmony_ci minItems: 2 968c2ecf20Sopenharmony_ci maxItems: 2 978c2ecf20Sopenharmony_ci 988c2ecf20Sopenharmony_ci wlf,spk-mute: 998c2ecf20Sopenharmony_ci description: 1008c2ecf20Sopenharmony_ci PDM speaker mute setting, must contain 2 cells (OUT5 and OUT6). See 1018c2ecf20Sopenharmony_ci the datasheet for values. The second cell is ignored for codecs that 1028c2ecf20Sopenharmony_ci do not have OUT6 (wm5102, wm8997, wm8998, wm1814) 1038c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 1048c2ecf20Sopenharmony_ci minItems: 2 1058c2ecf20Sopenharmony_ci maxItems: 2 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci wlf,out-volume-limit: 1088c2ecf20Sopenharmony_ci description: 1098c2ecf20Sopenharmony_ci The volume limit value that should be applied to each output 1108c2ecf20Sopenharmony_ci channel. See the datasheet for exact values. Channels are specified 1118c2ecf20Sopenharmony_ci in the order OUT1L, OUT1R, OUT2L, OUT2R, etc. 1128c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-array 1138c2ecf20Sopenharmony_ci minItems: 1 1148c2ecf20Sopenharmony_ci maxItems: 12 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ciadditionalProperties: true 117