Amlogic Audio AXG PDM input
Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-pdm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"amlogic,g12a-pdm","amlogic,sm1-pdm"Item 2
Exact value (
const):"amlogic,axg-pdm"
Rule 2
Exact value (
const):"amlogic,axg-pdm"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — required here #
Exact value (const): 0
clocks — required here #
Array item rules (items) #
Item 1
Peripheral clock
Item 2
PDM digital clock
Item 3
DSP system clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"dclk"
Item 3
Exact value (
const):"sysclk"
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#sound-dai-cells", "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 hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,g12a-pdm","amlogic,sm1-pdm"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/axg-audio-clkc.h>
audio-controller@ff632000 {
compatible = "amlogic,axg-pdm";
reg = <0xff632000 0x34>;
#sound-dai-cells = <0>;
clocks = <&clkc_audio AUD_CLKID_PDM>,
<&clkc_audio AUD_CLKID_PDM_DCLK>,
<&clkc_audio AUD_CLKID_PDM_SYSCLK>;
clock-names = "pclk", "dclk", "sysclk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)