brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · c3c989e Raw
106 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/sound/rockchip-spdif.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip SPDIF transceiver8 9description:10  The S/PDIF audio block is a stereo transceiver that allows the11  processor to receive and transmit digital audio via a coaxial or12  fibre cable.13 14maintainers:15  - Heiko Stuebner <heiko@sntech.de>16 17properties:18  compatible:19    oneOf:20      - const: rockchip,rk3066-spdif21      - const: rockchip,rk3228-spdif22      - const: rockchip,rk3328-spdif23      - const: rockchip,rk3366-spdif24      - const: rockchip,rk3368-spdif25      - const: rockchip,rk3399-spdif26      - const: rockchip,rk3568-spdif27      - items:28          - enum:29              - rockchip,rk3128-spdif30              - rockchip,rk3188-spdif31              - rockchip,rk3288-spdif32              - rockchip,rk3308-spdif33          - const: rockchip,rk3066-spdif34 35  reg:36    maxItems: 137 38  interrupts:39    maxItems: 140 41  clocks:42    items:43      - description: clock for SPDIF bus44      - description: clock for SPDIF controller45 46  clock-names:47    items:48      - const: mclk49      - const: hclk50 51  dmas:52    maxItems: 153 54  dma-names:55    const: tx56 57  power-domains:58    maxItems: 159 60  rockchip,grf:61    $ref: /schemas/types.yaml#/definitions/phandle62    description:63      The phandle of the syscon node for the GRF register.64      Required property on RK3288.65 66  "#sound-dai-cells":67    const: 068 69required:70  - compatible71  - reg72  - interrupts73  - clocks74  - clock-names75  - dmas76  - dma-names77  - "#sound-dai-cells"78 79allOf:80  - $ref: dai-common.yaml#81  - if:82      properties:83        compatible:84          contains:85            const: rockchip,rk3288-spdif86    then:87      required:88        - rockchip,grf89 90unevaluatedProperties: false91 92examples:93  - |94    #include <dt-bindings/clock/rk3188-cru.h>95    #include <dt-bindings/interrupt-controller/arm-gic.h>96    spdif: spdif@1011e000 {97      compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";98      reg = <0x1011e000 0x2000>;99      interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;100      clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF>;101      clock-names = "mclk", "hclk";102      dmas = <&dmac1_s 8>;103      dma-names = "tx";104      #sound-dai-cells = <0>;105    };106