| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/sound/ti,pcm3168a.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Texas Instruments PCM3168A Audio Codec |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Damien Horsley <[email protected]> |
| 11 |
- Geert Uytterhoeven <[email protected]> |
| 12 |
- Kuninori Morimoto <[email protected]> |
| 13 |
|
| 14 |
description: |
| 15 |
The Texas Instruments PCM3168A is a 24-bit Multi-channel Audio CODEC with |
| 16 |
96/192kHz sampling rate, supporting both SPI and I2C bus access. |
| 17 |
|
| 18 |
properties: |
| 19 |
compatible: |
| 20 |
const: ti,pcm3168a |
| 21 |
|
| 22 |
reg: |
| 23 |
maxItems: 1 |
| 24 |
|
| 25 |
clocks: |
| 26 |
items: |
| 27 |
- description: System clock input |
| 28 |
|
| 29 |
clock-names: |
| 30 |
items: |
| 31 |
- const: scki |
| 32 |
|
| 33 |
reset-gpios: |
| 34 |
items: |
| 35 |
- description: | |
| 36 |
GPIO line connected to the active-low RST pin of the codec. |
| 37 |
RST = low: device power-down |
| 38 |
RST = high: device is enabled |
| 39 |
|
| 40 |
"#sound-dai-cells": |
| 41 |
enum: [0, 1] |
| 42 |
|
| 43 |
VDD1-supply: |
| 44 |
description: Digital power supply regulator 1 (+3.3V) |
| 45 |
|
| 46 |
VDD2-supply: |
| 47 |
description: Digital power supply regulator 2 (+3.3V) |
| 48 |
|
| 49 |
VCCAD1-supply: |
| 50 |
description: ADC power supply regulator 1 (+5V) |
| 51 |
|
| 52 |
VCCAD2-supply: |
| 53 |
description: ADC power supply regulator 2 (+5V) |
| 54 |
|
| 55 |
VCCDA1-supply: |
| 56 |
description: DAC power supply regulator 1 (+5V) |
| 57 |
|
| 58 |
VCCDA2-supply: |
| 59 |
description: DAC power supply regulator 2 (+5V) |
| 60 |
|
| 61 |
ports: |
| 62 |
$ref: audio-graph-port.yaml#/definitions/port-base |
| 63 |
unevaluatedProperties: false |
| 64 |
properties: |
| 65 |
port@0: |
| 66 |
$ref: audio-graph-port.yaml# |
| 67 |
description: Audio input port. |
| 68 |
|
| 69 |
port@1: |
| 70 |
$ref: audio-graph-port.yaml# |
| 71 |
description: Audio output port. |
| 72 |
|
| 73 |
required: |
| 74 |
- compatible |
| 75 |
- reg |
| 76 |
- clocks |
| 77 |
- clock-names |
| 78 |
- VDD1-supply |
| 79 |
- VDD2-supply |
| 80 |
- VCCAD1-supply |
| 81 |
- VCCAD2-supply |
| 82 |
- VCCDA1-supply |
| 83 |
- VCCDA2-supply |
| 84 |
|
| 85 |
additionalProperties: false |
| 86 |
|
| 87 |
examples: |
| 88 |
- | |
| 89 |
#include <dt-bindings/gpio/gpio.h> |
| 90 |
|
| 91 |
i2c { |
| 92 |
#address-cells = <1>; |
| 93 |
#size-cells = <0>; |
| 94 |
|
| 95 |
pcm3168a: audio-codec@44 { |
| 96 |
compatible = "ti,pcm3168a"; |
| 97 |
reg = <0x44>; |
| 98 |
reset-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; |
| 99 |
clocks = <&clk_core 42>; |
| 100 |
clock-names = "scki"; |
| 101 |
VDD1-supply = <&supply3v3>; |
| 102 |
VDD2-supply = <&supply3v3>; |
| 103 |
VCCAD1-supply = <&supply5v0>; |
| 104 |
VCCAD2-supply = <&supply5v0>; |
| 105 |
VCCDA1-supply = <&supply5v0>; |
| 106 |
VCCDA2-supply = <&supply5v0>; |
| 107 |
}; |
| 108 |
}; |