Atmel Serial Synchronous Serial (SSC)

Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,at91-ssc.yaml#"

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

Maintainers (maintainers): "Andrei Simion <andrei.simion@microchip.com>"

The Atmel Synchronous Serial Controller (SSC) provides a versatile synchronous communication link for audio and telecom applications, supporting protocols like I2S, Short Frame Sync, and Long Frame Sync.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "atmel,at91rm9200-ssc", "atmel,at91sam9g45-ssc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-ssc"

Item 2

Exact value (const): "atmel,at91sam9g45-ssc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pclk"

dmas — not listed as required here #

Array item rules (items) #

Item 1

TX DMA Channel

Item 2

RX DMA Channel

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

atmel,clk-from-rk-pin — not listed as required here #

Specify the clock source for the SSC (Synchronous Serial Controller) when operating in slave mode. By default, the clock is sourced from the TK pin.

Value type (type): "boolean"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

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)

Allowed values (enum): "atmel,at91sam9g45-ssc"

When the condition matches (then) #

Required in this object (required): "dmas", "dma-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>

ssc@100000 {
   compatible = "atmel,at91sam9g45-ssc";
   reg = <0x100000 0x4000>;
   interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
   dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                 AT91_XDMAC_DT_PERID(38))>,
          <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
                 AT91_XDMAC_DT_PERID(39))>;
   dma-names = "tx", "rx";
   clocks = <&pmc PMC_TYPE_PERIPHERAL 28>;
   clock-names = "pclk";
   #sound-dai-cells = <0>;
};

ssc@c00000 {
  compatible = "atmel,at91rm9200-ssc";
  reg = <0xc00000 0x4000>;
  interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
  clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
  clock-names = "pclk";
};

Source notes #

Annotations retained from the schema source

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

Edit this page