Sophgo CV1800B I2S/TDM controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/sophgo,cv1800b-i2s.yaml#"

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

Maintainers (maintainers): "Anton D. Stavinskii <stavinsky@gmail.com>"

I2S/TDM controller found in CV1800B / Sophgo SG2002/SG2000 SoCs.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sophgo,cv1800b-i2s"

reg — required here #

Maximum number of items (maxItems): 1

#sound-dai-cells — required here #

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "i2s"

Item 2

Exact value (const): "mclk"

dmas — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Allowed values (enum): "rx", "tx"

Item 2

Exact value (const): "tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sophgo,cv1800.h>

i2s@4110000 {
    compatible = "sophgo,cv1800b-i2s";
    reg = <0x04110000 0x10000>;
    clocks = <&clk CLK_APB_I2S1>,  <&clk CLK_SDMA_AUD1>;
    clock-names = "i2s", "mclk";
    dmas = <&dmamux 2 1>, <&dmamux 3 1>;
    dma-names = "rx", "tx";
    #sound-dai-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page