| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 | 
					
						
							|  |  |  | %YAML 1.2
 | 
					
						
							|  |  |  | ---
 | 
					
						
							|  |  |  | $id: http://devicetree.org/schemas/sound/qcom,lpass-wsa-macro.yaml#
 | 
					
						
							|  |  |  | $schema: http://devicetree.org/meta-schemas/core.yaml#
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-12-16 17:38:10 +01:00
										 |  |  | title: LPASS(Low Power Audio Subsystem) VA Macro audio codec
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | maintainers:
 | 
					
						
							|  |  |  |   - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | properties:
 | 
					
						
							|  |  |  |   compatible:
 | 
					
						
							| 
									
										
										
										
											2021-10-26 13:13:05 +05:30
										 |  |  |     enum:
 | 
					
						
							|  |  |  |       - qcom,sc7280-lpass-wsa-macro
 | 
					
						
							|  |  |  |       - qcom,sm8250-lpass-wsa-macro
 | 
					
						
							| 
									
										
										
										
											2022-09-06 18:01:07 +01:00
										 |  |  |       - qcom,sm8450-lpass-wsa-macro
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:54:44 +01:00
										 |  |  |       - qcom,sm8550-lpass-wsa-macro
 | 
					
						
							| 
									
										
										
										
											2022-09-06 18:01:07 +01:00
										 |  |  |       - qcom,sc8280xp-lpass-wsa-macro
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   reg:
 | 
					
						
							|  |  |  |     maxItems: 1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   "#sound-dai-cells":
 | 
					
						
							|  |  |  |     const: 1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   '#clock-cells':
 | 
					
						
							|  |  |  |     const: 0
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   clocks:
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:54:44 +01:00
										 |  |  |     minItems: 4
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |     maxItems: 6
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   clock-names:
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:54:44 +01:00
										 |  |  |     minItems: 4
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |     maxItems: 6
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   clock-output-names:
 | 
					
						
							| 
									
										
										
										
											2022-11-03 15:53:39 -04:00
										 |  |  |     maxItems: 1
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   qcom,dmic-sample-rate:
 | 
					
						
							|  |  |  |     description: dmic sample rate
 | 
					
						
							|  |  |  |     $ref: /schemas/types.yaml#/definitions/uint32
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   vdd-micb-supply:
 | 
					
						
							|  |  |  |     description: phandle to voltage regulator of MIC Bias
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | required:
 | 
					
						
							|  |  |  |   - compatible
 | 
					
						
							|  |  |  |   - reg
 | 
					
						
							|  |  |  |   - "#sound-dai-cells"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  | allOf:
 | 
					
						
							|  |  |  |   - $ref: dai-common.yaml#
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   - if:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         compatible:
 | 
					
						
							|  |  |  |           enum:
 | 
					
						
							|  |  |  |             - qcom,sc7280-lpass-wsa-macro
 | 
					
						
							|  |  |  |             - qcom,sm8450-lpass-wsa-macro
 | 
					
						
							|  |  |  |             - qcom,sc8280xp-lpass-wsa-macro
 | 
					
						
							|  |  |  |     then:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         clocks:
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:54:44 +01:00
										 |  |  |           minItems: 5
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |           maxItems: 5
 | 
					
						
							|  |  |  |         clock-names:
 | 
					
						
							|  |  |  |           items:
 | 
					
						
							|  |  |  |             - const: mclk
 | 
					
						
							|  |  |  |             - const: npl
 | 
					
						
							|  |  |  |             - const: macro
 | 
					
						
							|  |  |  |             - const: dcodec
 | 
					
						
							|  |  |  |             - const: fsgen
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   - if:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         compatible:
 | 
					
						
							|  |  |  |           enum:
 | 
					
						
							|  |  |  |             - qcom,sm8250-lpass-wsa-macro
 | 
					
						
							|  |  |  |     then:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         clocks:
 | 
					
						
							|  |  |  |           minItems: 6
 | 
					
						
							|  |  |  |         clock-names:
 | 
					
						
							|  |  |  |           items:
 | 
					
						
							|  |  |  |             - const: mclk
 | 
					
						
							|  |  |  |             - const: npl
 | 
					
						
							|  |  |  |             - const: macro
 | 
					
						
							|  |  |  |             - const: dcodec
 | 
					
						
							|  |  |  |             - const: va
 | 
					
						
							|  |  |  |             - const: fsgen
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:54:44 +01:00
										 |  |  |   - if:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         compatible:
 | 
					
						
							|  |  |  |           enum:
 | 
					
						
							|  |  |  |             - qcom,sm8550-lpass-wsa-macro
 | 
					
						
							|  |  |  |     then:
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         clocks:
 | 
					
						
							|  |  |  |           minItems: 4
 | 
					
						
							|  |  |  |           maxItems: 4
 | 
					
						
							|  |  |  |         clock-names:
 | 
					
						
							|  |  |  |           items:
 | 
					
						
							|  |  |  |             - const: mclk
 | 
					
						
							|  |  |  |             - const: macro
 | 
					
						
							|  |  |  |             - const: dcodec
 | 
					
						
							|  |  |  |             - const: fsgen
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-12-03 17:04:41 +01:00
										 |  |  | unevaluatedProperties: false
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | examples:
 | 
					
						
							|  |  |  |   - |
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |     #include <dt-bindings/clock/qcom,sm8250-lpass-aoncc.h>
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  |     #include <dt-bindings/sound/qcom,q6afe.h>
 | 
					
						
							|  |  |  |     codec@3240000 {
 | 
					
						
							|  |  |  |       compatible = "qcom,sm8250-lpass-wsa-macro";
 | 
					
						
							|  |  |  |       reg = <0x3240000 0x1000>;
 | 
					
						
							|  |  |  |       #sound-dai-cells = <1>;
 | 
					
						
							|  |  |  |       #clock-cells = <0>;
 | 
					
						
							|  |  |  |       clocks = <&audiocc 1>,
 | 
					
						
							|  |  |  |                <&audiocc 0>,
 | 
					
						
							|  |  |  |                <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
 | 
					
						
							|  |  |  |                <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |                <&aoncc LPASS_CDC_VA_MCLK>,
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  |                <&vamacro>;
 | 
					
						
							| 
									
										
										
										
											2022-12-25 12:59:06 +01:00
										 |  |  |       clock-names = "mclk", "npl", "macro", "dcodec", "va", "fsgen";
 | 
					
						
							| 
									
										
										
										
											2020-11-05 11:34:53 +00:00
										 |  |  |       clock-output-names = "mclk";
 | 
					
						
							|  |  |  |     };
 |