Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/starfive,jh7110-pwmdac.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: StarFive JH7110 PWM-DAC Controller |
| 8 | |
| 9 | description: |
| 10 | The PWM-DAC Controller uses PWM square wave generators plus RC filters to |
| 11 | form a DAC for audio play in StarFive JH7110 SoC. This audio play controller |
| 12 | supports 16 bit audio format, up to 48K sampling frequency, up to left and |
| 13 | right dual channels. |
| 14 | |
| 15 | maintainers: |
| 16 | - Hal Feng <hal.feng@starfivetech.com> |
| 17 | |
| 18 | allOf: |
| 19 | - $ref: dai-common.yaml# |
| 20 | |
| 21 | properties: |
| 22 | compatible: |
| 23 | const: starfive,jh7110-pwmdac |
| 24 | |
| 25 | reg: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | clocks: |
| 29 | items: |
| 30 | - description: PWMDAC APB |
| 31 | - description: PWMDAC CORE |
| 32 | |
| 33 | clock-names: |
| 34 | items: |
| 35 | - const: apb |
| 36 | - const: core |
| 37 | |
| 38 | resets: |
| 39 | maxItems: 1 |
| 40 | description: PWMDAC APB |
| 41 | |
| 42 | dmas: |
| 43 | maxItems: 1 |
| 44 | description: TX DMA Channel |
| 45 | |
| 46 | dma-names: |
| 47 | const: tx |
| 48 | |
| 49 | "#sound-dai-cells": |
| 50 | const: 0 |
| 51 | |
| 52 | required: |
| 53 | - compatible |
| 54 | - reg |
| 55 | - clocks |
| 56 | - clock-names |
| 57 | - resets |
| 58 | - dmas |
| 59 | - dma-names |
| 60 | - "#sound-dai-cells" |
| 61 | |
| 62 | additionalProperties: false |
| 63 | |
| 64 | examples: |
| 65 | - | |
| 66 | pwmdac@100b0000 { |
| 67 | compatible = "starfive,jh7110-pwmdac"; |
| 68 | reg = <0x100b0000 0x1000>; |
| 69 | clocks = <&syscrg 157>, |
| 70 | <&syscrg 158>; |
| 71 | clock-names = "apb", "core"; |
| 72 | resets = <&syscrg 96>; |
| 73 | dmas = <&dma 22>; |
| 74 | dma-names = "tx"; |
| 75 | #sound-dai-cells = <0>; |
| 76 | }; |