102 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/ti,pcm512x.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: PCM512x and TAS575x audio CODECs/amplifiers8 9maintainers:10 - Animesh Agarwal <animeshagarwal28@gmail.com>11 12allOf:13 - $ref: dai-common.yaml#14 15properties:16 compatible:17 enum:18 - ti,pcm512119 - ti,pcm512220 - ti,pcm514121 - ti,pcm514222 - ti,pcm524223 - ti,tas575424 - ti,tas575625 26 reg:27 maxItems: 128 29 AVDD-supply: true30 31 DVDD-supply: true32 33 CPVDD-supply: true34 35 clocks:36 maxItems: 137 description: A clock specifier for the clock connected as SCLK. If this is38 absent the device will be configured to clock from BCLK. If pll-in and39 pll-out are specified in addition to a clock, the device is configured to40 accept clock input on a specified gpio pin.41 42 '#sound-dai-cells':43 const: 044 45 pll-in:46 description: GPIO pin used to connect the pll using <1> through <6>. The47 device will be configured for clock input on the given pll-in pin.48 $ref: /schemas/types.yaml#/definitions/uint3249 minimum: 150 maximum: 651 52 pll-out:53 description: GPIO pin used to connect the pll using <1> through <6>. The54 device will be configured for PLL output on the given pll-out pin. An55 external connection from the pll-out pin to the SCLK pin is assumed.56 $ref: /schemas/types.yaml#/definitions/uint3257 minimum: 158 maximum: 659 60required:61 - compatible62 - reg63 - AVDD-supply64 - DVDD-supply65 - CPVDD-supply66 67if:68 properties:69 compatible:70 contains:71 enum:72 - ti,tas575473 - ti,tas575674 75then:76 properties:77 pll-in:78 maximum: 379 80 pll-out:81 maximum: 382 83unevaluatedProperties: false84 85examples:86 - |87 i2c {88 #address-cells = <1>;89 #size-cells = <0>;90 codec@4c {91 compatible = "ti,pcm5142";92 reg = <0x4c>;93 AVDD-supply = <®_3v3_analog>;94 DVDD-supply = <®_1v8>;95 CPVDD-supply = <®_3v3>;96 #sound-dai-cells = <0>;97 clocks = <&sck>;98 pll-in = <3>;99 pll-out = <6>;100 };101 };102