178 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (C) 2022 - 2024 Texas Instruments Incorporated3%YAML 1.24---5$id: http://devicetree.org/schemas/sound/ti,pcm6240.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Texas Instruments PCM6240 Family Audio ADC/DAC9 10maintainers:11 - Shenghao Ding <shenghao-ding@ti.com>12 13description: |14 The PCM6240 Family is a big family of Audio ADC/DAC for15 different Specifications, range from Personal Electric16 to Automotive Electric, even some professional fields.17 18 Specifications about the audio chip can be found at:19 https://www.ti.com/lit/gpn/tlv320adc312020 https://www.ti.com/lit/gpn/tlv320adc512021 https://www.ti.com/lit/gpn/tlv320adc612022 https://www.ti.com/lit/gpn/dix419223 https://www.ti.com/lit/gpn/pcm169024 https://www.ti.com/lit/gpn/pcm3120-q125 https://www.ti.com/lit/gpn/pcm3140-q126 https://www.ti.com/lit/gpn/pcm5120-q127 https://www.ti.com/lit/gpn/pcm6120-q128 https://www.ti.com/lit/gpn/pcm6260-q129 https://www.ti.com/lit/gpn/pcm921130 https://www.ti.com/lit/gpn/pcmd314031 https://www.ti.com/lit/gpn/pcmd318032 https://www.ti.com/lit/gpn/taa521233 https://www.ti.com/lit/gpn/tad521234 35properties:36 compatible:37 description: |38 ti,adc3120: Stereo-channel, 768-kHz, Burr-Brown™ audio analog-to-39 digital converter (ADC) with 106-dB SNR.40 41 ti,adc5120: 2-Channel, 768-kHz, Burr-Brown™ Audio ADC with 120-dB SNR.42 43 ti,adc6120: Stereo-channel, 768-kHz, Burr-Brown™ audio analog-to-44 digital converter (ADC) with 123-dB SNR.45 46 ti,dix4192: 216-kHz digital audio converter with Quad-Channel In47 and One-Channel Out.48 49 ti,pcm1690: Automotive Catalog 113dB SNR 8-Channel Audio DAC with50 Differential Outputs.51 52 ti,pcm3120: Automotive, stereo, 106-dB SNR, 768-kHz, low-power53 software-controlled audio ADC.54 55 ti,pcm3140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC56 with 106-dB SNR.57 58 ti,pcm5120: Automotive, stereo, 120-dB SNR, 768-kHz, low-power59 software-controlled audio ADC.60 61 ti,pcm5140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC62 with 120-dB SNR.63 64 ti,pcm6120: Automotive, stereo, 123-dB SNR, 768-kHz, low-power65 software-controlled audio ADC.66 67 ti,pcm6140: Automotive, Quad-Channel, 768-kHz, Burr-Brown™ Audio ADC68 with 123-dB SNR.69 70 ti,pcm6240: Automotive 4-ch audio ADC with integrated programmable mic71 bias, boost and input diagnostics.72 73 ti,pcm6260: Automotive 6-ch audio ADC with integrated programmable mic74 bias, boost and input diagnostics.75 76 ti,pcm9211: 216-kHz digital audio converter With Stereo ADC and77 Routing.78 79 ti,pcmd3140: Four-channel PDM-input to TDM or I2S output converter.80 81 ti,pcmd3180: Eight-channel pulse-density-modulation input to TDM or82 I2S output converter.83 84 ti,taa5212: Low-power high-performance stereo audio ADC with 118-dB85 dynamic range.86 87 ti,tad5212: Low-power stereo audio DAC with 120-dB dynamic range.88 oneOf:89 - items:90 - enum:91 - ti,adc312092 - ti,adc512093 - ti,pcm312094 - ti,pcm512095 - ti,pcm612096 - const: ti,adc612097 - items:98 - enum:99 - ti,pcmd512x100 - ti,pcm9211101 - ti,taa5212102 - ti,tad5212103 - const: ti,adc6120104 - items:105 - enum:106 - ti,pcm3140107 - ti,pcm5140108 - ti,dix4192109 - ti,pcm6140110 - ti,pcm6260111 - const: ti,pcm6240112 - items:113 - enum:114 - ti,pcmd3140115 - ti,pcmd3180116 - ti,pcm1690117 - ti,taa5412118 - ti,tad5412119 - const: ti,pcm6240120 - enum:121 - ti,adc6120122 - ti,pcm6240123 124 reg:125 description:126 I2C address, in multiple pcmdevices case, all the i2c address127 aggregate as one Audio Device to support multiple audio slots.128 minItems: 1129 maxItems: 4130 131 reset-gpios:132 maxItems: 1133 134 interrupts:135 maxItems: 1136 description:137 Invalid only for ti,pcm1690 because of no INT pin.138 139 '#sound-dai-cells':140 const: 0141 142required:143 - compatible144 - reg145 146allOf:147 - $ref: dai-common.yaml#148 - if:149 properties:150 compatible:151 contains:152 enum:153 - ti,pcm1690154 then:155 properties:156 interrupts: false157 158additionalProperties: false159 160examples:161 - |162 #include <dt-bindings/gpio/gpio.h>163 i2c {164 /* example for two devices with interrupt support */165 #address-cells = <1>;166 #size-cells = <0>;167 pcm6240: audio-codec@48 {168 compatible = "ti,pcm6240";169 reg = <0x48>, /* primary-device */170 <0x4b>; /* secondary-device */171 #sound-dai-cells = <0>;172 reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;173 interrupt-parent = <&gpio1>;174 interrupts = <15>;175 };176 };177...178