The latest development version of this page may be more current than this released 4.0.0 version.

gd,gd32-cctl

Vendor: GigaDevice Semiconductor

Note

An implementation of a driver matching this compatible is available in drivers/clock_control/clock_control_gd32.c.

Description

Gigadevice Reset and Clock Unit (RCU) if a multi-function peripheral in
charge of reset control (RCTL) and clock control (CCTL) for all SoC
peripherals. This binding represents the clock controller (CCTL).

To specify the clocks in a peripheral, the standard clocks property needs
to be used, e.g.:

  gpioa: gpio@xxx {
      ...
      /* cell encodes RCU register offset and control bit position */
      clocks = <&cctl GD32_CLOCK_GPIOA>;
      ...
  }

Predefined RCU clock cells are available in
include/zephyr/dts-bindings/clock/gd32{xxx}-clocks.h header files, where {xxx}
corresponds to the SoC series, e.g. f4xx.

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

Specifier cell names

  • clock cells: id