Texas Instruments gate clock

Schema identifier ($id): "http://devicetree.org/schemas/clock/ti/ti,gate-clock.yaml#"

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

Maintainers (maintainers): "Tero Kristo <kristo@kernel.org>"

*Deprecated design pattern: one node per clock*

This clock is quite much similar to the basic gate-clock [1], however, it supports a number of additional features. If no register is provided for this clock, the code assumes that a clockdomain will be controlled instead and the corresponding hw-ops for that is used.

[1] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml [2] Documentation/devicetree/bindings/clock/ti/clockdomain.txt

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ti,gate-clock", "ti,wait-gate-clock", "ti,dss-gate-clock", "ti,am35xx-gate-clock", "ti,clkdm-gate-clock", "ti,hsdiv-gate-clock", "ti,composite-gate-clock", "ti,composite-no-wait-gate-clock"

#clock-cells — not listed as required here #

Exact value (const): 0

clocks — not listed as required here #

true — No constraints added by this property rule.

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

reg — not listed as required here #

Maximum number of items (maxItems): 1

ti,bit-shift — not listed as required here #

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

Number of bits to shift the bit-mask

Maximum value (maximum): 31

Default value (default): 0

ti,set-bit-to-disable — not listed as required here #

Value type (type): "boolean"

Inverts default gate programming. Setting the bit gates the clock and clearing the bit ungates the clock.

ti,set-rate-parent — not listed as required here #

Value type (type): "boolean"

clk_set_rate is propagated to parent clock,

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "ti,clkdm-gate-clock"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

false — Not permitted by this property rule.

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

When the condition does not match (else) #

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

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

false

Not allowed by this rule.

Examples (examples) #

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

  clock-controller@a00 {
    #clock-cells = <0>;
    compatible = "ti,gate-clock";
    clocks = <&core_96m_fck>;
    reg = <0x0a00>;
    ti,bit-shift = <25>;
  };

  clock-controller@d00 {
    compatible = "ti,hsdiv-gate-clock";
    reg = <0x0d00>;
    #clock-cells = <0>;
    clocks = <&dpll4_m2x2_mul_ck>;
    ti,bit-shift = <0x1b>;
    ti,set-bit-to-disable;
  };
};
clock-controller {
  #clock-cells = <0>;
  compatible = "ti,clkdm-gate-clock";
  clocks = <&emu_src_mux_ck>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Line 27: basic gate clock

Line 28: gate clock which waits until clock is

Line 29: active before returning from clk_enable()

Line 30: gate clock with DSS specific hardware

Line 31: handling

Line 32: gate clock with AM35xx specific hardware

Line 33: handling

Line 34: clockdomain gate clock, which derives its

Line 35: functional clock directly from a

Line 36: clockdomain, see [2] how to map

Line 37: clockdomains properly

Line 38: gate clock with OMAP36xx specific hardware

Line 39: handling, required for a hardware errata

Line 40: composite gate clock, to be part of

Line 41: composite clock

Line 42: composite gate clock that does not

Line 43: wait for clock to be active before

Line 44: returning from clk_enable()

Edit this page