Debian Codegraph @

Documentation/devicetree/bindings/sound/fsl,mqs.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/fsl,mqs.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: NXP Medium Quality Sound (MQS)
8
9 maintainers:
10 - Shengjiu Wang <[email protected]>
11 - Chancel Liu <[email protected]>
12
13 description: |
14 Medium quality sound (MQS) is used to generate medium quality audio
15 via a standard GPIO in the pinmux, allowing the user to connect
16 stereo speakers or headphones to a power amplifier without an
17 additional DAC chip.
18
19 properties:
20 compatible:
21 enum:
22 - fsl,imx6sx-mqs
23 - fsl,imx8qm-mqs
24 - fsl,imx8qxp-mqs
25 - fsl,imx93-mqs
26 - fsl,imx943-aonmix-mqs
27 - fsl,imx943-wakeupmix-mqs
28 - fsl,imx95-aonmix-mqs
29 - fsl,imx95-netcmix-mqs
30
31 "#sound-dai-cells":
32 const: 0
33
34 clocks:
35 minItems: 1
36 maxItems: 2
37
38 clock-names:
39 minItems: 1
40 maxItems: 2
41
42 gpr:
43 $ref: /schemas/types.yaml#/definitions/phandle
44 description: The phandle to the General Purpose Register (GPR) node
45
46 reg:
47 maxItems: 1
48
49 power-domains:
50 maxItems: 1
51
52 resets:
53 maxItems: 1
54
55 port:
56 $ref: audio-graph-port.yaml#
57 unevaluatedProperties: false
58
59 required:
60 - compatible
61 - clocks
62 - clock-names
63
64 allOf:
65 - $ref: dai-common.yaml#
66 - if:
67 properties:
68 compatible:
69 contains:
70 enum:
71 - fsl,imx6sx-mqs
72 - fsl,imx93-mqs
73 then:
74 required:
75 - gpr
76 - if:
77 properties:
78 compatible:
79 contains:
80 enum:
81 - fsl,imx8qm-mqs
82 - fsl,imx8qxp-mqs
83 then:
84 properties:
85 clocks:
86 items:
87 - description: Master clock
88 - description: Clock for register access
89 clock-names:
90 items:
91 - const: mclk
92 - const: core
93 required:
94 - reg
95 - power-domains
96 else:
97 properties:
98 clocks:
99 items:
100 - description: Master clock
101 clock-names:
102 items:
103 - const: mclk
104
105 unevaluatedProperties: false
106
107 examples:
108 - |
109 #include <dt-bindings/clock/imx6sx-clock.h>
110 mqs0: mqs {
111 compatible = "fsl,imx6sx-mqs";
112 gpr = <&gpr>;
113 clocks = <&clks IMX6SX_CLK_SAI1>;
114 clock-names = "mclk";
115 };
116
117 - |
118 #include <dt-bindings/firmware/imx/rsrc.h>
119 mqs1: mqs@59850000 {
120 compatible = "fsl,imx8qm-mqs";
121 reg = <0x59850000 0x10000>;
122 clocks = <&mqs0_lpcg 0>, <&mqs0_lpcg 1>;
123 clock-names = "mclk", "core";
124 power-domains = <&pd IMX_SC_R_MQS_0>;
125 };