Qualcomm SPMI PMIC clock divider

Schema identifier ($id): "http://devicetree.org/schemas/clock/qcom,spmi-clkdiv.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Stephen Boyd <sboyd@kernel.org>"

Qualcomm SPMI PMIC clock divider configures the clock frequency of a set of outputs on the PMIC. These clocks are typically wired through alternate functions on GPIO pins.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,spmi-clkdiv"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Board XO source

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "xo"

#clock-cells — required here #

Exact value (const): 1

qcom,num-clkdivs — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of CLKDIV peripherals.

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

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

false

Not allowed by this rule.

Examples (examples) #

pmic {
    #address-cells = <1>;
    #size-cells = <0>;

    clock-controller@5b00 {
        compatible = "qcom,spmi-clkdiv";
        reg = <0x5b00>;
        clocks = <&xo_board>;
        clock-names = "xo";
        #clock-cells = <1>;
        qcom,num-clkdivs = <3>;

        assigned-clocks = <&pm8998_clk_divs 1>,
                          <&pm8998_clk_divs 2>,
                          <&pm8998_clk_divs 3>;
        assigned-clock-rates = <9600000>,
                               <9600000>,
                               <9600000>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page