1# Copyright (c) 2022, Teslabs Engineering S.L. 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Gigadevice Reset and Clock Unit (RCU) if a multi-function peripheral in 6 charge of reset control (RCTL) and clock control (CCTL) for all SoC 7 peripherals. This binding represents the clock controller (CCTL). 8 9 To specify the clocks in a peripheral, the standard clocks property needs 10 to be used, e.g.: 11 12 gpioa: gpio@xxx { 13 ... 14 /* cell encodes RCU register offset and control bit position */ 15 clocks = <&cctl GD32_CLOCK_GPIOA>; 16 ... 17 } 18 19 Predefined RCU clock cells are available in 20 include/zephyr/dts-bindings/clock/gd32{xxx}-clocks.h header files, where {xxx} 21 corresponds to the SoC series, e.g. f4xx. 22 23compatible: "gd,gd32-cctl" 24 25include: [clock-controller.yaml, base.yaml] 26 27properties: 28 "#clock-cells": 29 const: 1 30 31clock-cells: 32 - id 33