elan,em32-ahb

Description

Elan EM32 AHB Clock Controller.

The clock specifier has one cell, gate-id, which selects the peripheral
clock gate to control. Gate IDs are defined in
include/zephyr/dt-bindings/clock/em32_clock.h.

Examples

clk_ahb: clk-ahb {
    compatible = "elan,em32-ahb";
    #clock-cells = <1>;
    clock-source = <EM32_CLK_SRC_IRCHIGH>;
    clock-frequency = <EM32_CLK_FREQ_IRCHIGH96>;
    clock-divider = <EM32_AHB_CLK_DIV1>;
    status = "okay";
};

gpioa: gpio@40004000 {
    compatible = "elan,em32-gpio";
    reg = <0x40004000 0x1000>;
    clocks = <&clk_ahb EM32_GATE_HCLKG_GPIOA>;
    status = "okay";
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

clock-source

int

ID of output clock source

This property is required.

clock-frequency

int

ID of output clock frequency

This property is required.

clock-divider

int

ID of output clock divider

This property is required.

#clock-cells

int

Number of items to expect in a Clock specifier

This property is required.

Constant value: 1

Specifier cell names

  • clock cells: clk-id