| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/sound/realtek,rt5651.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Realtek RT5651 audio CODEC |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Bard Liao <[email protected]> |
| 11 |
|
| 12 |
description: > |
| 13 |
This device supports I2C only. |
| 14 |
|
| 15 |
Pins on the device (for linking into audio routes) for RT5651: |
| 16 |
|
| 17 |
* DMIC L1 |
| 18 |
* DMIC R1 |
| 19 |
* IN1P |
| 20 |
* IN2P |
| 21 |
* IN2N |
| 22 |
* IN3P |
| 23 |
* HPOL |
| 24 |
* HPOR |
| 25 |
* LOUTL |
| 26 |
* LOUTR |
| 27 |
* PDML |
| 28 |
* PDMR |
| 29 |
|
| 30 |
allOf: |
| 31 |
- $ref: /schemas/sound/dai-common.yaml# |
| 32 |
|
| 33 |
properties: |
| 34 |
compatible: |
| 35 |
const: realtek,rt5651 |
| 36 |
|
| 37 |
reg: |
| 38 |
maxItems: 1 |
| 39 |
|
| 40 |
clocks: |
| 41 |
maxItems: 1 |
| 42 |
|
| 43 |
clock-names: |
| 44 |
const: mclk |
| 45 |
|
| 46 |
'#sound-dai-cells': |
| 47 |
const: 0 |
| 48 |
|
| 49 |
realtek,in2-differential: |
| 50 |
type: boolean |
| 51 |
description: Indicate MIC2 input are differential, rather than single-ended. |
| 52 |
|
| 53 |
realtek,dmic-en: |
| 54 |
type: boolean |
| 55 |
description: Indicates DMIC is used. |
| 56 |
|
| 57 |
realtek,jack-detect-source: |
| 58 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 59 |
description: Select jack-detect input pin. |
| 60 |
enum: [1, 2, 3] |
| 61 |
|
| 62 |
realtek,jack-detect-not-inverted: |
| 63 |
type: boolean |
| 64 |
description: |
| 65 |
Normal jack-detect switches give an inverted (active-low) signal. Set this |
| 66 |
bool in the rare case you've a jack-detect switch which is not inverted. |
| 67 |
|
| 68 |
realtek,over-current-threshold-microamp: |
| 69 |
description: Micbias over-current detection threshold in µA. |
| 70 |
enum: [600, 1500, 2000] |
| 71 |
|
| 72 |
realtek,over-current-scale-factor: |
| 73 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 74 |
description: > |
| 75 |
Micbias over-current detection scale factor: |
| 76 |
|
| 77 |
0: scale current by 0.5 |
| 78 |
1: scale current by 0.75 |
| 79 |
2: scale current by 1.0 |
| 80 |
3: scale current by 1.5 |
| 81 |
enum: [0, 1, 2, 3] |
| 82 |
|
| 83 |
required: |
| 84 |
- compatible |
| 85 |
- reg |
| 86 |
|
| 87 |
additionalProperties: false |
| 88 |
|
| 89 |
examples: |
| 90 |
- | |
| 91 |
i2c { |
| 92 |
#address-cells = <1>; |
| 93 |
#size-cells = <0>; |
| 94 |
codec@1a { |
| 95 |
compatible = "realtek,rt5651"; |
| 96 |
reg = <0x1a>; |
| 97 |
realtek,dmic-en; |
| 98 |
realtek,in2-differential; |
| 99 |
}; |
| 100 |
}; |