zephyr,clock-controller-emul-clkid

Description

Clock controller emulation (cell:clkid)

The subsystem selector is the cell value itself, carried in the
clock_control_subsys_t pointer rather than pointed to by it. A consumer
builds one with a plain cast:

    clock_control_on(dev, (clock_control_subsys_t)DT_CLOCKS_CELL(node, clkid));

The driver recovers it with (uint32_t)(uintptr_t)sys and looks it up in
clock-ids.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

#clock-cells

int

Number of items to expect in a Clock specifier

This property is required.

Constant value: 1

clock-ids

array

Clock identifiers supported by the controller. Each identifier consists
of #clock-cells values, laid out in the same order as the clock-cells
of a clocks phandle-array entry. How those cells reach the driver as a
clock_control_subsys_t is described by each compatible.

clock-initial-values

array

Initial rate in Hz for each identifier in clock-ids.

loose-check

boolean

A flag indicating not to check the validity of the operation (for example,
the presence or absence of a clock ID) and not return an error response.

Specifier cell names

  • clock cells: clkid