Sophgo SG2044 Clock Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/sophgo,sg2044-clk.yaml#"

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

Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"

The Sophgo SG2044 clock controller requires an external oscillator as input clock.

All available clocks are defined as preprocessor macros in include/dt-bindings/clock/sophgo,sg2044-clk.h

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sophgo,sg2044-clk"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

fpll0

Item 2

fpll1

Item 3

fpll2

Item 4

dpll0

Item 5

dpll1

Item 6

dpll2

Item 7

dpll3

Item 8

dpll4

Item 9

dpll5

Item 10

dpll6

Item 11

dpll7

Item 12

mpll0

Item 13

mpll1

Item 14

mpll2

Item 15

mpll3

Item 16

mpll4

Item 17

mpll5

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "fpll0"

Item 2

Exact value (const): "fpll1"

Item 3

Exact value (const): "fpll2"

Item 4

Exact value (const): "dpll0"

Item 5

Exact value (const): "dpll1"

Item 6

Exact value (const): "dpll2"

Item 7

Exact value (const): "dpll3"

Item 8

Exact value (const): "dpll4"

Item 9

Exact value (const): "dpll5"

Item 10

Exact value (const): "dpll6"

Item 11

Exact value (const): "dpll7"

Item 12

Exact value (const): "mpll0"

Item 13

Exact value (const): "mpll1"

Item 14

Exact value (const): "mpll2"

Item 15

Exact value (const): "mpll3"

Item 16

Exact value (const): "mpll4"

Item 17

Exact value (const): "mpll5"

#clock-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "clocks", "#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/sophgo,sg2044-pll.h>

clock-controller@50002000 {
  compatible = "sophgo,sg2044-clk";
  reg = <0x50002000 0x1000>;
  #clock-cells = <1>;
  clocks = <&syscon CLK_FPLL0>, <&syscon CLK_FPLL1>,
           <&syscon CLK_FPLL2>, <&syscon CLK_DPLL0>,
           <&syscon CLK_DPLL1>, <&syscon CLK_DPLL2>,
           <&syscon CLK_DPLL3>, <&syscon CLK_DPLL4>,
           <&syscon CLK_DPLL5>, <&syscon CLK_DPLL6>,
           <&syscon CLK_DPLL7>, <&syscon CLK_MPLL0>,
           <&syscon CLK_MPLL1>, <&syscon CLK_MPLL2>,
           <&syscon CLK_MPLL3>, <&syscon CLK_MPLL4>,
           <&syscon CLK_MPLL5>;
  clock-names = "fpll0", "fpll1", "fpll2", "dpll0",
                "dpll1", "dpll2", "dpll3", "dpll4",
                "dpll5", "dpll6", "dpll7", "mpll0",
                "mpll1", "mpll2", "mpll3", "mpll4",
                "mpll5";
};

Source notes #

Annotations retained from the schema source

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

Edit this page