Rockchip SPDIF transceiver

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip-spdif.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The S/PDIF audio block is a stereo transceiver that allows the processor to receive and transmit digital audio via a coaxial or fibre cable.

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk3066-spdif"

Rule 2

Exact value (const): "rockchip,rk3228-spdif"

Rule 3

Exact value (const): "rockchip,rk3328-spdif"

Rule 4

Exact value (const): "rockchip,rk3366-spdif"

Rule 5

Exact value (const): "rockchip,rk3368-spdif"

Rule 6

Exact value (const): "rockchip,rk3399-spdif"

Rule 7

Exact value (const): "rockchip,rk3568-spdif"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3128-spdif", "rockchip,rk3188-spdif", "rockchip,rk3288-spdif", "rockchip,rk3308-spdif"

Item 2

Exact value (const): "rockchip,rk3066-spdif"

Rule 9

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3576-spdif", "rockchip,rk3588-spdif"

Item 2

Exact value (const): "rockchip,rk3568-spdif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for SPDIF bus

Item 2

clock for SPDIF controller

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "hclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "tx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

rockchip,grf — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

The phandle of the syscon node for the GRF register. Required property on RK3288.

#sound-dai-cells — required here #

Exact value (const): 0

port — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3288-spdif"

When the condition matches (then) #

Required in this object (required): "rockchip,grf"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3188-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spdif: spdif@1011e000 {
  compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";
  reg = <0x1011e000 0x2000>;
  interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF>;
  clock-names = "mclk", "hclk";
  dmas = <&dmac1_s 8>;
  dma-names = "tx";
  #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page