xref: /linux/Documentation/devicetree/bindings/sound/fsl,sgtl5000.yaml (revision c771600c6af14749609b49565ffb4cac2959710d)
1c3061bc7SThierry Reding# SPDX-License-Identifier: GPL-2.0-only
2c3061bc7SThierry Reding%YAML 1.2
3c3061bc7SThierry Reding---
4*ae8fc294SKuninori Morimoto$id: http://devicetree.org/schemas/sound/fsl,sgtl5000.yaml#
5c3061bc7SThierry Reding$schema: http://devicetree.org/meta-schemas/core.yaml#
6c3061bc7SThierry Reding
7c3061bc7SThierry Redingtitle: Freescale SGTL5000 Stereo Codec
8c3061bc7SThierry Reding
9c3061bc7SThierry Redingmaintainers:
10c3061bc7SThierry Reding  - Fabio Estevam <festevam@gmail.com>
11c3061bc7SThierry Reding
1258ae9a2aSKrzysztof KozlowskiallOf:
1358ae9a2aSKrzysztof Kozlowski  - $ref: dai-common.yaml#
1458ae9a2aSKrzysztof Kozlowski
15c3061bc7SThierry Redingproperties:
16c3061bc7SThierry Reding  compatible:
17c3061bc7SThierry Reding    const: fsl,sgtl5000
18c3061bc7SThierry Reding
19c3061bc7SThierry Reding  reg:
20c3061bc7SThierry Reding    maxItems: 1
21c3061bc7SThierry Reding
22c3061bc7SThierry Reding  "#sound-dai-cells":
23c3061bc7SThierry Reding    const: 0
24c3061bc7SThierry Reding
253bf7b942SKrzysztof Kozlowski  assigned-clock-parents: true
263bf7b942SKrzysztof Kozlowski  assigned-clock-rates: true
273bf7b942SKrzysztof Kozlowski  assigned-clocks: true
283bf7b942SKrzysztof Kozlowski
29c3061bc7SThierry Reding  clocks:
30c3061bc7SThierry Reding    items:
31c3061bc7SThierry Reding      - description: the clock provider of SYS_MCLK
32c3061bc7SThierry Reding
33c3061bc7SThierry Reding  VDDA-supply:
34c3061bc7SThierry Reding    description: the regulator provider of VDDA
35c3061bc7SThierry Reding
36c3061bc7SThierry Reding  VDDIO-supply:
37c3061bc7SThierry Reding    description: the regulator provider of VDDIO
38c3061bc7SThierry Reding
39c3061bc7SThierry Reding  VDDD-supply:
40c3061bc7SThierry Reding    description: the regulator provider of VDDD
41c3061bc7SThierry Reding
42c3061bc7SThierry Reding  micbias-resistor-k-ohms:
43c3061bc7SThierry Reding    description: The bias resistor to be used in kOhms. The resistor can take
44c3061bc7SThierry Reding      values of 2k, 4k or 8k. If set to 0 it will be off. If this node is not
45c3061bc7SThierry Reding      mentioned or if the value is unknown, then micbias resistor is set to
46c3061bc7SThierry Reding      4k.
47c3061bc7SThierry Reding    enum: [ 0, 2, 4, 8 ]
48c3061bc7SThierry Reding
49c3061bc7SThierry Reding  micbias-voltage-m-volts:
50c3061bc7SThierry Reding    description: The bias voltage to be used in mVolts. The voltage can take
51c3061bc7SThierry Reding      values from 1.25V to 3V by 250mV steps. If this node is not mentioned
52c3061bc7SThierry Reding      or the value is unknown, then the value is set to 1.25V.
53d9e909e2SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
54c3061bc7SThierry Reding    enum: [ 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000 ]
55c3061bc7SThierry Reding
56c3061bc7SThierry Reding  lrclk-strength:
57c3061bc7SThierry Reding    description: |
58c3061bc7SThierry Reding      The LRCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the
59c3061bc7SThierry Reding      table below:
60c3061bc7SThierry Reding
61c3061bc7SThierry Reding        VDDIO		1.8V		2.5V		3.3V
62c3061bc7SThierry Reding        0 =		Disable
63c3061bc7SThierry Reding        1 =		1.66 mA		2.87 mA		4.02  mA
64c3061bc7SThierry Reding        2 =		3.33 mA		5.74 mA		8.03  mA
65c3061bc7SThierry Reding        3 =		4.99 mA		8.61 mA		12.05 mA
66d9e909e2SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
67c3061bc7SThierry Reding    enum: [ 0, 1, 2, 3 ]
68c3061bc7SThierry Reding
69c3061bc7SThierry Reding  sclk-strength:
70c3061bc7SThierry Reding    description: |
71c3061bc7SThierry Reding      The SCLK pad strength. Possible values are: 0, 1, 2 and 3 as per the
72c3061bc7SThierry Reding      table below:
73c3061bc7SThierry Reding
74c3061bc7SThierry Reding        VDDIO		1.8V		2.5V		3.3V
75c3061bc7SThierry Reding        0 =		Disable
76c3061bc7SThierry Reding        1 =		1.66 mA		2.87 mA		4.02  mA
77c3061bc7SThierry Reding        2 =		3.33 mA		5.74 mA		8.03  mA
78c3061bc7SThierry Reding        3 =		4.99 mA		8.61 mA		12.05 mA
79d9e909e2SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
80c3061bc7SThierry Reding    enum: [ 0, 1, 2, 3 ]
81c3061bc7SThierry Reding
82f1905ab2SMarek Vasut  port:
83f1905ab2SMarek Vasut    $ref: audio-graph-port.yaml#
84f1905ab2SMarek Vasut    unevaluatedProperties: false
85f1905ab2SMarek Vasut
86c3061bc7SThierry Redingrequired:
87c3061bc7SThierry Reding  - compatible
88c3061bc7SThierry Reding  - reg
89c3061bc7SThierry Reding  - "#sound-dai-cells"
90c3061bc7SThierry Reding  - clocks
91c3061bc7SThierry Reding  - VDDA-supply
92c3061bc7SThierry Reding  - VDDIO-supply
93c3061bc7SThierry Reding
9458ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
95c3061bc7SThierry Reding
96c3061bc7SThierry Redingexamples:
97c3061bc7SThierry Reding  - |
98c3061bc7SThierry Reding    i2c {
99c3061bc7SThierry Reding        #address-cells = <1>;
100c3061bc7SThierry Reding        #size-cells = <0>;
101c3061bc7SThierry Reding
102c3061bc7SThierry Reding        codec@a {
103c3061bc7SThierry Reding            compatible = "fsl,sgtl5000";
104c3061bc7SThierry Reding            reg = <0x0a>;
105c3061bc7SThierry Reding            #sound-dai-cells = <0>;
106c3061bc7SThierry Reding            clocks = <&clks 150>;
107c3061bc7SThierry Reding            micbias-resistor-k-ohms = <2>;
108c3061bc7SThierry Reding            micbias-voltage-m-volts = <2250>;
109c3061bc7SThierry Reding            VDDA-supply = <&reg_3p3v>;
110c3061bc7SThierry Reding            VDDIO-supply = <&reg_3p3v>;
111c3061bc7SThierry Reding        };
112c3061bc7SThierry Reding    };
113c3061bc7SThierry Reding...
114