brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 15be8da Raw
80 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/amlogic,axg-spdifout.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Amlogic Audio AXG SPDIF Output8 9maintainers:10  - Jerome Brunet <jbrunet@baylibre.com>11 12properties:13  compatible:14    oneOf:15      - const: amlogic,axg-spdifout16      - items:17          - enum:18              - amlogic,g12a-spdifout19              - amlogic,sm1-spdifout20          - const: amlogic,axg-spdifout21 22  reg:23    maxItems: 124 25  "#sound-dai-cells":26    const: 027 28  clocks:29    items:30      - description: Peripheral clock31      - description: SPDIF output master clock32 33  clock-names:34    items:35      - const: pclk36      - const: mclk37 38  resets:39    maxItems: 140 41required:42  - compatible43  - reg44  - "#sound-dai-cells"45  - clocks46  - clock-names47 48allOf:49  - $ref: dai-common.yaml#50 51  - if:52      properties:53        compatible:54          contains:55            enum:56              - amlogic,g12a-spdifout57              - amlogic,sm1-spdifout58    then:59      required:60        - resets61 62    else:63      properties:64        resets: false65 66unevaluatedProperties: false67 68examples:69  - |70    #include <dt-bindings/clock/axg-audio-clkc.h>71 72    audio-controller@480 {73        compatible = "amlogic,axg-spdifout";74        reg = <0x480 0x50>;75        #sound-dai-cells = <0>;76        clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,77                 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;78        clock-names = "pclk", "mclk";79    };80