NXP i.MX8 Audio Clock Mux

Schema identifier ($id): "http://devicetree.org/schemas/clock/fsl,imx8-acm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>"

NXP i.MX8 Audio Clock Mux is dedicated clock muxing IP used to control Audio related clock on the SoC.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8dxl-acm", "fsl,imx8qm-acm", "fsl,imx8qxp-acm"

reg — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 21

#clock-cells — required here #

Exact value (const): 1

The clock consumer should specify the desired clock by having the clock ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx8-clock.h for the full list of i.MX8 ACM clock IDs.

clocks — required here #

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 27

clock-names — required here #

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 27

Required in this object (required): "compatible", "reg", "power-domains", "#clock-cells", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qxp-acm"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Array item rules (items)

Item 1

power domain of IMX_SC_R_AUDIO_CLK_0

Item 2

power domain of IMX_SC_R_AUDIO_CLK_1

Item 3

power domain of IMX_SC_R_MCLK_OUT_0

Item 4

power domain of IMX_SC_R_MCLK_OUT_1

Item 5

power domain of IMX_SC_R_AUDIO_PLL_0

Item 6

power domain of IMX_SC_R_AUDIO_PLL_1

Item 7

power domain of IMX_SC_R_ASRC_0

Item 8

power domain of IMX_SC_R_ASRC_1

Item 9

power domain of IMX_SC_R_ESAI_0

Item 10

power domain of IMX_SC_R_SAI_0

Item 11

power domain of IMX_SC_R_SAI_1

Item 12

power domain of IMX_SC_R_SAI_2

Item 13

power domain of IMX_SC_R_SAI_3

Item 14

power domain of IMX_SC_R_SAI_4

Item 15

power domain of IMX_SC_R_SAI_5

Item 16

power domain of IMX_SC_R_SPDIF_0

Item 17

power domain of IMX_SC_R_MQS_0

clocks — not listed as required here

Minimum number of items (minItems): 18

Maximum number of items (maxItems): 18

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aud_rec_clk0_lpcg_clk"

Item 2

Exact value (const): "aud_rec_clk1_lpcg_clk"

Item 3

Exact value (const): "aud_pll_div_clk0_lpcg_clk"

Item 4

Exact value (const): "aud_pll_div_clk1_lpcg_clk"

Item 5

Exact value (const): "ext_aud_mclk0"

Item 6

Exact value (const): "ext_aud_mclk1"

Item 7

Exact value (const): "esai0_rx_clk"

Item 8

Exact value (const): "esai0_rx_hf_clk"

Item 9

Exact value (const): "esai0_tx_clk"

Item 10

Exact value (const): "esai0_tx_hf_clk"

Item 11

Exact value (const): "spdif0_rx"

Item 12

Exact value (const): "sai0_rx_bclk"

Item 13

Exact value (const): "sai0_tx_bclk"

Item 14

Exact value (const): "sai1_rx_bclk"

Item 15

Exact value (const): "sai1_tx_bclk"

Item 16

Exact value (const): "sai2_rx_bclk"

Item 17

Exact value (const): "sai3_rx_bclk"

Item 18

Exact value (const): "sai4_rx_bclk"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-acm"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Array item rules (items)

Item 1

power domain of IMX_SC_R_AUDIO_CLK_0

Item 2

power domain of IMX_SC_R_AUDIO_CLK_1

Item 3

power domain of IMX_SC_R_MCLK_OUT_0

Item 4

power domain of IMX_SC_R_MCLK_OUT_1

Item 5

power domain of IMX_SC_R_AUDIO_PLL_0

Item 6

power domain of IMX_SC_R_AUDIO_PLL_1

Item 7

power domain of IMX_SC_R_ASRC_0

Item 8

power domain of IMX_SC_R_ASRC_1

Item 9

power domain of IMX_SC_R_ESAI_0

Item 10

power domain of IMX_SC_R_ESAI_1

Item 11

power domain of IMX_SC_R_SAI_0

Item 12

power domain of IMX_SC_R_SAI_1

Item 13

power domain of IMX_SC_R_SAI_2

Item 14

power domain of IMX_SC_R_SAI_3

Item 15

power domain of IMX_SC_R_SAI_4

Item 16

power domain of IMX_SC_R_SAI_5

Item 17

power domain of IMX_SC_R_SAI_6

Item 18

power domain of IMX_SC_R_SAI_7

Item 19

power domain of IMX_SC_R_SPDIF_0

Item 20

power domain of IMX_SC_R_SPDIF_1

Item 21

power domain of IMX_SC_R_MQS_0

clocks — not listed as required here

Minimum number of items (minItems): 27

Maximum number of items (maxItems): 27

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aud_rec_clk0_lpcg_clk"

Item 2

Exact value (const): "aud_rec_clk1_lpcg_clk"

Item 3

Exact value (const): "aud_pll_div_clk0_lpcg_clk"

Item 4

Exact value (const): "aud_pll_div_clk1_lpcg_clk"

Item 5

Exact value (const): "mlb_clk"

Item 6

Exact value (const): "hdmi_rx_mclk"

Item 7

Exact value (const): "ext_aud_mclk0"

Item 8

Exact value (const): "ext_aud_mclk1"

Item 9

Exact value (const): "esai0_rx_clk"

Item 10

Exact value (const): "esai0_rx_hf_clk"

Item 11

Exact value (const): "esai0_tx_clk"

Item 12

Exact value (const): "esai0_tx_hf_clk"

Item 13

Exact value (const): "esai1_rx_clk"

Item 14

Exact value (const): "esai1_rx_hf_clk"

Item 15

Exact value (const): "esai1_tx_clk"

Item 16

Exact value (const): "esai1_tx_hf_clk"

Item 17

Exact value (const): "spdif0_rx"

Item 18

Exact value (const): "spdif1_rx"

Item 19

Exact value (const): "sai0_rx_bclk"

Item 20

Exact value (const): "sai0_tx_bclk"

Item 21

Exact value (const): "sai1_rx_bclk"

Item 22

Exact value (const): "sai1_tx_bclk"

Item 23

Exact value (const): "sai2_rx_bclk"

Item 24

Exact value (const): "sai3_rx_bclk"

Item 25

Exact value (const): "sai4_rx_bclk"

Item 26

Exact value (const): "sai5_tx_bclk"

Item 27

Exact value (const): "sai6_rx_bclk"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8dxl-acm"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Array item rules (items)

Item 1

power domain of IMX_SC_R_AUDIO_CLK_0

Item 2

power domain of IMX_SC_R_AUDIO_CLK_1

Item 3

power domain of IMX_SC_R_MCLK_OUT_0

Item 4

power domain of IMX_SC_R_MCLK_OUT_1

Item 5

power domain of IMX_SC_R_AUDIO_PLL_0

Item 6

power domain of IMX_SC_R_AUDIO_PLL_1

Item 7

power domain of IMX_SC_R_ASRC_0

Item 8

power domain of IMX_SC_R_SAI_0

Item 9

power domain of IMX_SC_R_SAI_1

Item 10

power domain of IMX_SC_R_SAI_2

Item 11

power domain of IMX_SC_R_SAI_3

Item 12

power domain of IMX_SC_R_SPDIF_0

Item 13

power domain of IMX_SC_R_MQS_0

clocks — not listed as required here

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 13

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aud_rec_clk0_lpcg_clk"

Item 2

Exact value (const): "aud_rec_clk1_lpcg_clk"

Item 3

Exact value (const): "aud_pll_div_clk0_lpcg_clk"

Item 4

Exact value (const): "aud_pll_div_clk1_lpcg_clk"

Item 5

Exact value (const): "ext_aud_mclk0"

Item 6

Exact value (const): "ext_aud_mclk1"

Item 7

Exact value (const): "spdif0_rx"

Item 8

Exact value (const): "sai0_rx_bclk"

Item 9

Exact value (const): "sai0_tx_bclk"

Item 10

Exact value (const): "sai1_rx_bclk"

Item 11

Exact value (const): "sai1_tx_bclk"

Item 12

Exact value (const): "sai2_rx_bclk"

Item 13

Exact value (const): "sai3_rx_bclk"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx8-lpcg.h>
#include <dt-bindings/firmware/imx/rsrc.h>

clock-controller@59e00000 {
    compatible = "fsl,imx8qxp-acm";
    reg = <0x59e00000 0x1d0000>;
    #clock-cells = <1>;
    power-domains = <&pd IMX_SC_R_AUDIO_CLK_0>,
                    <&pd IMX_SC_R_AUDIO_CLK_1>,
                    <&pd IMX_SC_R_MCLK_OUT_0>,
                    <&pd IMX_SC_R_MCLK_OUT_1>,
                    <&pd IMX_SC_R_AUDIO_PLL_0>,
                    <&pd IMX_SC_R_AUDIO_PLL_1>,
                    <&pd IMX_SC_R_ASRC_0>,
                    <&pd IMX_SC_R_ASRC_1>,
                    <&pd IMX_SC_R_ESAI_0>,
                    <&pd IMX_SC_R_SAI_0>,
                    <&pd IMX_SC_R_SAI_1>,
                    <&pd IMX_SC_R_SAI_2>,
                    <&pd IMX_SC_R_SAI_3>,
                    <&pd IMX_SC_R_SAI_4>,
                    <&pd IMX_SC_R_SAI_5>,
                    <&pd IMX_SC_R_SPDIF_0>,
                    <&pd IMX_SC_R_MQS_0>;
    clocks = <&aud_rec0_lpcg IMX_LPCG_CLK_0>,
             <&aud_rec1_lpcg IMX_LPCG_CLK_0>,
             <&aud_pll_div0_lpcg IMX_LPCG_CLK_0>,
             <&aud_pll_div1_lpcg IMX_LPCG_CLK_0>,
             <&clk_ext_aud_mclk0>,
             <&clk_ext_aud_mclk1>,
             <&clk_esai0_rx_clk>,
             <&clk_esai0_rx_hf_clk>,
             <&clk_esai0_tx_clk>,
             <&clk_esai0_tx_hf_clk>,
             <&clk_spdif0_rx>,
             <&clk_sai0_rx_bclk>,
             <&clk_sai0_tx_bclk>,
             <&clk_sai1_rx_bclk>,
             <&clk_sai1_tx_bclk>,
             <&clk_sai2_rx_bclk>,
             <&clk_sai3_rx_bclk>,
             <&clk_sai4_rx_bclk>;
    clock-names = "aud_rec_clk0_lpcg_clk",
                  "aud_rec_clk1_lpcg_clk",
                  "aud_pll_div_clk0_lpcg_clk",
                  "aud_pll_div_clk1_lpcg_clk",
                  "ext_aud_mclk0",
                  "ext_aud_mclk1",
                  "esai0_rx_clk",
                  "esai0_rx_hf_clk",
                  "esai0_tx_clk",
                  "esai0_tx_hf_clk",
                  "spdif0_rx",
                  "sai0_rx_bclk",
                  "sai0_tx_bclk",
                  "sai1_rx_bclk",
                  "sai1_tx_bclk",
                  "sai2_rx_bclk",
                  "sai3_rx_bclk",
                  "sai4_rx_bclk";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 220: Clock Control Module node:

Edit this page