brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · df21dd7 Raw
83 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-pdm.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Amlogic Audio AXG PDM input8 9maintainers:10  - Jerome Brunet <jbrunet@baylibre.com>11 12properties:13  compatible:14    oneOf:15      - items:16          - enum:17              - amlogic,g12a-pdm18              - amlogic,sm1-pdm19          - const: amlogic,axg-pdm20      - const: amlogic,axg-pdm21 22  reg:23    maxItems: 124 25  "#sound-dai-cells":26    const: 027 28  clocks:29    items:30      - description: Peripheral clock31      - description: PDM digital clock32      - description: DSP system clock33 34  clock-names:35    items:36      - const: pclk37      - const: dclk38      - const: sysclk39 40  resets:41    maxItems: 142 43required:44  - compatible45  - reg46  - "#sound-dai-cells"47  - clocks48  - clock-names49 50allOf:51  - $ref: dai-common.yaml#52 53  - if:54      properties:55        compatible:56          contains:57            enum:58              - amlogic,g12a-pdm59              - amlogic,sm1-pdm60    then:61      required:62        - resets63 64    else:65      properties:66        resets: false67 68unevaluatedProperties: false69 70examples:71  - |72    #include <dt-bindings/clock/axg-audio-clkc.h>73 74    audio-controller@ff632000 {75        compatible = "amlogic,axg-pdm";76        reg = <0xff632000 0x34>;77        #sound-dai-cells = <0>;78        clocks = <&clkc_audio AUD_CLKID_PDM>,79                 <&clkc_audio AUD_CLKID_PDM_DCLK>,80                 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;81        clock-names = "pclk", "dclk", "sysclk";82    };83