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