Amlogic AXG Audio Clock Controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/amlogic,axg-audio-clkc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Jerome Brunet <jbrunet@baylibre.com>"
The Amlogic AXG audio clock controller generates and supplies clock to the other elements of the audio subsystem, such as fifos, i2s, spdif and pdm devices.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,axg-audio-clkc", "amlogic,g12a-audio-clkc", "amlogic,sm1-audio-clkc"
#clock-cells — required here #
Exact value (const): 1
#reset-cells — not listed as required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
main peripheral bus clock
Item 2
input plls to generate clock signals N0
Item 3
input plls to generate clock signals N1
Item 4
input plls to generate clock signals N2
Item 5
input plls to generate clock signals N3
Item 6
input plls to generate clock signals N4
Item 7
input plls to generate clock signals N5
Item 8
input plls to generate clock signals N6
Item 9
input plls to generate clock signals N7
Item 10
slave bit clock N0 provided by external components
Item 11
slave bit clock N1 provided by external components
Item 12
slave bit clock N2 provided by external components
Item 13
slave bit clock N3 provided by external components
Item 14
slave bit clock N4 provided by external components
Item 15
slave bit clock N5 provided by external components
Item 16
slave bit clock N6 provided by external components
Item 17
slave bit clock N7 provided by external components
Item 18
slave bit clock N8 provided by external components
Item 19
slave bit clock N9 provided by external components
Item 20
slave sample clock N0 provided by external components
Item 21
slave sample clock N1 provided by external components
Item 22
slave sample clock N2 provided by external components
Item 23
slave sample clock N3 provided by external components
Item 24
slave sample clock N4 provided by external components
Item 25
slave sample clock N5 provided by external components
Item 26
slave sample clock N6 provided by external components
Item 27
slave sample clock N7 provided by external components
Item 28
slave sample clock N8 provided by external components
Item 29
slave sample clock N9 provided by external components
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"mst_in0"
Item 3
Exact value (
const):"mst_in1"
Item 4
Exact value (
const):"mst_in2"
Item 5
Exact value (
const):"mst_in3"
Item 6
Exact value (
const):"mst_in4"
Item 7
Exact value (
const):"mst_in5"
Item 8
Exact value (
const):"mst_in6"
Item 9
Exact value (
const):"mst_in7"
Item 10
Exact value (
const):"slv_sclk0"
Item 11
Exact value (
const):"slv_sclk1"
Item 12
Exact value (
const):"slv_sclk2"
Item 13
Exact value (
const):"slv_sclk3"
Item 14
Exact value (
const):"slv_sclk4"
Item 15
Exact value (
const):"slv_sclk5"
Item 16
Exact value (
const):"slv_sclk6"
Item 17
Exact value (
const):"slv_sclk7"
Item 18
Exact value (
const):"slv_sclk8"
Item 19
Exact value (
const):"slv_sclk9"
Item 20
Exact value (
const):"slv_lrclk0"
Item 21
Exact value (
const):"slv_lrclk1"
Item 22
Exact value (
const):"slv_lrclk2"
Item 23
Exact value (
const):"slv_lrclk3"
Item 24
Exact value (
const):"slv_lrclk4"
Item 25
Exact value (
const):"slv_lrclk5"
Item 26
Exact value (
const):"slv_lrclk6"
Item 27
Exact value (
const):"slv_lrclk7"
Item 28
Exact value (
const):"slv_lrclk8"
Item 29
Exact value (
const):"slv_lrclk9"
resets — required here #
internal reset line
Required in this object (required): "compatible", "#clock-cells", "reg", "clocks", "clock-names", "resets"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,g12a-audio-clkc","amlogic,sm1-audio-clkc"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
#reset-cells— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/axg-clkc.h>
#include <dt-bindings/reset/amlogic,meson-axg-reset.h>
apb {
#address-cells = <2>;
#size-cells = <2>;
clkc_audio: clock-controller@0 {
compatible = "amlogic,axg-audio-clkc";
reg = <0x0 0x0 0x0 0xb4>;
#clock-cells = <1>;
clocks = <&clkc CLKID_AUDIO>,
<&clkc CLKID_MPLL0>,
<&clkc CLKID_MPLL1>,
<&clkc CLKID_MPLL2>,
<&clkc CLKID_MPLL3>,
<&clkc CLKID_HIFI_PLL>,
<&clkc CLKID_FCLK_DIV3>,
<&clkc CLKID_FCLK_DIV4>,
<&clkc CLKID_GP0_PLL>,
<&slv_sclk0>,
<&slv_sclk1>,
<&slv_sclk2>,
<&slv_sclk3>,
<&slv_sclk4>,
<&slv_sclk5>,
<&slv_sclk6>,
<&slv_sclk7>,
<&slv_sclk8>,
<&slv_sclk9>,
<&slv_lrclk0>,
<&slv_lrclk1>,
<&slv_lrclk2>,
<&slv_lrclk3>,
<&slv_lrclk4>,
<&slv_lrclk5>,
<&slv_lrclk6>,
<&slv_lrclk7>,
<&slv_lrclk8>,
<&slv_lrclk9>;
clock-names = "pclk",
"mst_in0",
"mst_in1",
"mst_in2",
"mst_in3",
"mst_in4",
"mst_in5",
"mst_in6",
"mst_in7",
"slv_sclk0",
"slv_sclk1",
"slv_sclk2",
"slv_sclk3",
"slv_sclk4",
"slv_sclk5",
"slv_sclk6",
"slv_sclk7",
"slv_sclk8",
"slv_sclk9",
"slv_lrclk0",
"slv_lrclk1",
"slv_lrclk2",
"slv_lrclk3",
"slv_lrclk4",
"slv_lrclk5",
"slv_lrclk6",
"slv_lrclk7",
"slv_lrclk8",
"slv_lrclk9";
resets = <&reset RESET_AUDIO>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause