mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

Convert the Alphascale Clock Controller binding to DT schema format. Add the undocumented 'clocks' property which is used in DTS. Drop the clock defines and consumer examples from the old binding. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250521004712.1793193-1-robh@kernel.org Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/clock/alphascale,asm9260-clock-controller.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Alphascale Clock Controller
|
|
|
|
maintainers:
|
|
- Oleksij Rempel <linux@rempel-privat.de>
|
|
|
|
description: |
|
|
The ACC (Alphascale Clock Controller) is responsible for choosing proper
|
|
clock source, setting dividers and clock gates.
|
|
|
|
Simple one-cell clock specifier format is used, where the only cell is used
|
|
as an index of the clock inside the provider.
|
|
It is encouraged to use dt-binding for clock index definitions. SoC specific
|
|
dt-binding should be included to the device tree descriptor. For example
|
|
Alphascale ASM9260:
|
|
|
|
#include <dt-bindings/clock/alphascale,asm9260.h>
|
|
|
|
This binding contains two types of clock providers:
|
|
|
|
_AHB_ - AHB gate;
|
|
_SYS_ - adjustable clock source. Not all peripheral have _SYS_ clock provider.
|
|
|
|
All clock specific details can be found in the SoC documentation.
|
|
|
|
properties:
|
|
compatible:
|
|
const: alphascale,asm9260-clock-controller
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
'#clock-cells':
|
|
const: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- '#clock-cells'
|
|
|
|
additionalProperties: false
|