xref: /freebsd/sys/contrib/device-tree/Bindings/sound/atmel-classd.txt (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1* Atmel ClassD driver under ALSA SoC architecture
2
3Required properties:
4- compatible
5	Should be "atmel,sama5d2-classd".
6- reg
7	Should contain ClassD registers location and length.
8- interrupts
9	Should contain the IRQ line for the ClassD.
10- dmas
11	One DMA specifiers as described in atmel-dma.txt and dma.txt files.
12- dma-names
13	Must be "tx".
14- clock-names
15	Tuple listing input clock names.
16	Required elements: "pclk" and "gclk".
17- clocks
18	Please refer to clock-bindings.txt.
19- assigned-clocks
20	Should be <&classd_gclk>.
21
22Optional properties:
23- pinctrl-names, pinctrl-0
24	Please refer to pinctrl-bindings.txt.
25- atmel,model
26	The user-visible name of this sound complex.
27	The default value is "CLASSD".
28- atmel,pwm-type
29	PWM modulation type, "single" or "diff".
30	The default value is "single".
31- atmel,non-overlap-time
32	Set non-overlapping time, the unit is nanosecond(ns).
33	There are four values,
34	<5>, <10>, <15>, <20>, the default value is <10>.
35	Non-overlapping will be disabled if not specified.
36
37Example:
38classd: classd@fc048000 {
39		compatible = "atmel,sama5d2-classd";
40		reg = <0xfc048000 0x100>;
41		interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
42		dmas = <&dma0
43			(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
44			| AT91_XDMAC_DT_PERID(47))>;
45		dma-names = "tx";
46		clocks = <&classd_clk>, <&classd_gclk>;
47		clock-names = "pclk", "gclk";
48		assigned-clocks = <&classd_gclk>;
49
50		pinctrl-names = "default";
51		pinctrl-0 = <&pinctrl_classd_default>;
52		atmel,model = "classd @ SAMA5D2-Xplained";
53		atmel,pwm-type = "diff";
54		atmel,non-overlap-time = <10>;
55};
56