Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/allwinner,sun8i-a33-codec.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Allwinner A33 Codec |
| 8 | |
| 9 | maintainers: |
| 10 | - Chen-Yu Tsai <wens@csie.org> |
| 11 | - Maxime Ripard <mripard@kernel.org> |
| 12 | |
| 13 | allOf: |
| 14 | - $ref: dai-common.yaml# |
| 15 | |
| 16 | properties: |
| 17 | "#sound-dai-cells": |
| 18 | minimum: 0 |
| 19 | maximum: 1 |
| 20 | description: |
| 21 | A value of 0 is deprecated. When used, it only allows access to |
| 22 | the ADC/DAC and AIF1 (the CPU DAI), not the other two AIFs/DAIs. |
| 23 | |
| 24 | compatible: |
| 25 | oneOf: |
| 26 | - items: |
| 27 | - const: allwinner,sun50i-a64-codec |
| 28 | - const: allwinner,sun8i-a33-codec |
| 29 | - const: allwinner,sun8i-a33-codec |
| 30 | |
| 31 | reg: |
| 32 | maxItems: 1 |
| 33 | |
| 34 | interrupts: |
| 35 | maxItems: 1 |
| 36 | |
| 37 | clocks: |
| 38 | items: |
| 39 | - description: Bus Clock |
| 40 | - description: Module Clock |
| 41 | |
| 42 | clock-names: |
| 43 | items: |
| 44 | - const: bus |
| 45 | - const: mod |
| 46 | |
| 47 | required: |
| 48 | - "#sound-dai-cells" |
| 49 | - compatible |
| 50 | - reg |
| 51 | - interrupts |
| 52 | - clocks |
| 53 | - clock-names |
| 54 | |
| 55 | unevaluatedProperties: false |
| 56 | |
| 57 | examples: |
| 58 | - | |
| 59 | audio-codec@1c22e00 { |
| 60 | #sound-dai-cells = <1>; |
| 61 | compatible = "allwinner,sun8i-a33-codec"; |
| 62 | reg = <0x01c22e00 0x400>; |
| 63 | interrupts = <0 29 4>; |
| 64 | clocks = <&ccu 47>, <&ccu 92>; |
| 65 | clock-names = "bus", "mod"; |
| 66 | }; |
| 67 | |
| 68 | ... |