brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · a0bd7a5 Raw
87 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-spdifin.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Amlogic Audio AXG SPDIF Input8 9maintainers:10  - Jerome Brunet <jbrunet@baylibre.com>11 12properties:13  compatible:14    oneOf:15      - const: amlogic,axg-spdifin16      - items:17          - enum:18              - amlogic,g12a-spdifin19              - amlogic,sm1-spdifin20          - const: amlogic,axg-spdifin21 22  reg:23    maxItems: 124 25  "#sound-dai-cells":26    const: 027 28  clocks:29    items:30      - description: Peripheral clock31      - description: SPDIF input reference clock32 33  clock-names:34    items:35      - const: pclk36      - const: refclk37 38  interrupts:39    maxItems: 140 41  resets:42    maxItems: 143 44required:45  - compatible46  - reg47  - "#sound-dai-cells"48  - clocks49  - clock-names50  - interrupts51 52allOf:53  - $ref: dai-common.yaml#54 55  - if:56      properties:57        compatible:58          contains:59            enum:60              - amlogic,g12a-spdifin61              - amlogic,sm1-spdifin62    then:63      required:64        - resets65 66    else:67      properties:68        resets: false69 70unevaluatedProperties: false71 72examples:73  - |74    #include <dt-bindings/clock/axg-audio-clkc.h>75    #include <dt-bindings/interrupt-controller/irq.h>76    #include <dt-bindings/interrupt-controller/arm-gic.h>77 78    audio-controller@400 {79        compatible = "amlogic,axg-spdifin";80        reg = <0x400 0x30>;81        #sound-dai-cells = <0>;82        interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;83        clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,84                 <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;85        clock-names = "pclk", "refclk";86    };87