Amlogic S4 Peripherals Clock Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/amlogic,s4-peripherals-clkc.yaml#"

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

Maintainers (maintainers): "Yu Tu <yu.tu@amlogic.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "amlogic,s4-peripherals-clkc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 14

Array item rules (items) #

Item 1

input fixed pll div2

Item 2

input fixed pll div2p5

Item 3

input fixed pll div3

Item 4

input fixed pll div4

Item 5

input fixed pll div5

Item 6

input fixed pll div7

Item 7

input hifi pll

Item 8

input gp0 pll

Item 9

input mpll0

Item 10

input mpll1

Item 11

input mpll2

Item 12

input mpll3

Item 13

input hdmi pll

Item 14

input oscillator (usually at 24MHz)

Item 15

input external 32kHz reference (optional)

clock-names — required here #

Minimum number of items (minItems): 14

Array item rules (items) #

Item 1

Exact value (const): "fclk_div2"

Item 2

Exact value (const): "fclk_div2p5"

Item 3

Exact value (const): "fclk_div3"

Item 4

Exact value (const): "fclk_div4"

Item 5

Exact value (const): "fclk_div5"

Item 6

Exact value (const): "fclk_div7"

Item 7

Exact value (const): "hifi_pll"

Item 8

Exact value (const): "gp0_pll"

Item 9

Exact value (const): "mpll0"

Item 10

Exact value (const): "mpll1"

Item 11

Exact value (const): "mpll2"

Item 12

Exact value (const): "mpll3"

Item 13

Exact value (const): "hdmi_pll"

Item 14

Exact value (const): "xtal"

Item 15

Exact value (const): "ext_32k"

#clock-cells — required here #

Exact value (const): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/amlogic,s4-peripherals-clkc.h>

clkc_periphs: clock-controller@fe000000 {
  compatible = "amlogic,s4-peripherals-clkc";
  reg = <0xfe000000 0x49c>;
  clocks = <&clkc_pll 3>,
          <&clkc_pll 13>,
          <&clkc_pll 5>,
          <&clkc_pll 7>,
          <&clkc_pll 9>,
          <&clkc_pll 11>,
          <&clkc_pll 17>,
          <&clkc_pll 15>,
          <&clkc_pll 25>,
          <&clkc_pll 27>,
          <&clkc_pll 29>,
          <&clkc_pll 31>,
          <&clkc_pll 20>,
          <&xtal>;
  clock-names = "fclk_div2", "fclk_div2p5", "fclk_div3", "fclk_div4",
                "fclk_div5", "fclk_div7", "hifi_pll", "gp0_pll",
                "mpll0", "mpll1", "mpll2", "mpll3", "hdmi_pll", "xtal";
  #clock-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved

Edit this page