| 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,alc5623.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: ALC5621/ALC5623 Audio Codec |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Mahdi Khosravi <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: dai-common.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
enum: |
| 18 |
- realtek,alc5621 |
| 19 |
- realtek,alc5623 |
| 20 |
|
| 21 |
reg: |
| 22 |
maxItems: 1 |
| 23 |
|
| 24 |
add-ctrl: |
| 25 |
description: |
| 26 |
Default register value for Reg-40h, Additional Control Register. |
| 27 |
If absent or zero, the register is left untouched. |
| 28 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 29 |
|
| 30 |
jack-det-ctrl: |
| 31 |
description: |
| 32 |
Default register value for Reg-5Ah, Jack Detect Control Register. |
| 33 |
If absent or zero, the register is left untouched. |
| 34 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 35 |
|
| 36 |
required: |
| 37 |
- compatible |
| 38 |
- reg |
| 39 |
|
| 40 |
unevaluatedProperties: false |
| 41 |
|
| 42 |
examples: |
| 43 |
- | |
| 44 |
i2c { |
| 45 |
#address-cells = <1>; |
| 46 |
#size-cells = <0>; |
| 47 |
|
| 48 |
codec@1a { |
| 49 |
compatible = "realtek,alc5623"; |
| 50 |
reg = <0x1a>; |
| 51 |
add-ctrl = <0x3700>; |
| 52 |
jack-det-ctrl = <0x4810>; |
| 53 |
}; |
| 54 |
}; |