Amlogic Audio AXG TDM formatters
Schema identifier ($id): "http://devicetree.org/schemas/sound/amlogic,axg-tdm-formatters.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 #
Allowed values (enum): "amlogic,g12a-tdmout", "amlogic,sm1-tdmout", "amlogic,axg-tdmout", "amlogic,g12a-tdmin", "amlogic,sm1-tdmin", "amlogic,axg-tdmin"
clocks — required here #
Array item rules (items) #
Item 1
Peripheral clock
Item 2
Bit clock
Item 3
Bit clock input multiplexer
Item 4
Sample clock
Item 5
Sample clock input multiplexer
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"sclk"
Item 3
Exact value (
const):"sclk_sel"
Item 4
Exact value (
const):"lrclk"
Item 5
Exact value (
const):"lrclk_sel"
reg — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):component-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-tdmin","amlogic,sm1-tdmin","amlogic,g12a-tdmout","amlogic,sm1-tdmout"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>
#include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
audio-controller@500 {
compatible = "amlogic,g12a-tdmout";
reg = <0x500 0x40>;
resets = <&clkc_audio AUD_RESET_TDMOUT_A>;
clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
<&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
<&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
<&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
<&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
clock-names = "pclk", "sclk", "sclk_sel",
"lrclk", "lrclk_sel";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)