Atmel ClassD Amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/atmel,sama5d2-classd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Claudiu Beznea <claudiu.beznea@microchip.com>"
The Audio Class D Amplifier (CLASSD) is a digital input, Pulse Width Modulated (PWM) output stereo Class D amplifier.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"atmel,sama5d2-classd"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"microchip,sam9x7-classd"Item 2
Exact value (
const):"atmel,sama5d2-classd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "tx"
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"gclk"
atmel,model — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Default value (default): "CLASSD"
The user-visible name of this sound complex.
atmel,pwm-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "single", "diff"
Default value (default): "single"
PWM modulation type.
atmel,non-overlap-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 5, 10, 15, 20
Default value (default): 10
Set non-overlapping time, the unit is nanosecond(ns). Non-overlapping will be disabled if not specified.
Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clock-names", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
classd: sound@fc048000 {
compatible = "atmel,sama5d2-classd";
reg = <0xfc048000 0x100>;
interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
dmas = <&dma0
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
| AT91_XDMAC_DT_PERID(47))>;
dma-names = "tx";
clocks = <&classd_clk>, <&classd_gclk>;
clock-names = "pclk", "gclk";
assigned-clocks = <&classd_gclk>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_classd_default>;
atmel,model = "classd @ SAMA5D2-Xplained";
atmel,pwm-type = "diff";
atmel,non-overlap-time = <10>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries