f516fb704d
Clean-up incorrect indentation, extra spaces, long lines, and missing EOF newline in schema files. Most of the clean-ups are for list indentation which should always be 2 spaces more than the preceding keyword. Found with yamllint (which I plan to integrate into the checks). Cc: linux-arm-kernel@lists.infradead.org Cc: linux-clk@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-spi@vger.kernel.org Cc: linux-gpio@vger.kernel.org Cc: linux-remoteproc@vger.kernel.org Cc: linux-hwmon@vger.kernel.org Cc: linux-i2c@vger.kernel.org Cc: linux-fbdev@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-input@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-mmc@vger.kernel.org Cc: linux-mtd@lists.infradead.org Cc: netdev@vger.kernel.org Cc: linux-rtc@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: linux-usb@vger.kernel.org Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Rob Herring <robh@kernel.org>
125 lines
2.5 KiB
YAML
125 lines
2.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/clock/ingenic,cgu.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Ingenic SoCs CGU devicetree bindings
|
|
|
|
description: |
|
|
The CGU in an Ingenic SoC provides all the clocks generated on-chip. It
|
|
typically includes a variety of PLLs, multiplexers, dividers & gates in order
|
|
to provide many different clock signals derived from only 2 external source
|
|
clocks.
|
|
|
|
maintainers:
|
|
- Paul Cercueil <paul@crapouillou.net>
|
|
|
|
select:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ingenic,jz4740-cgu
|
|
- ingenic,jz4725b-cgu
|
|
- ingenic,jz4770-cgu
|
|
- ingenic,jz4780-cgu
|
|
- ingenic,x1000-cgu
|
|
- ingenic,x1830-cgu
|
|
required:
|
|
- compatible
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^clock-controller@[0-9a-f]+$"
|
|
|
|
"#address-cells":
|
|
const: 1
|
|
|
|
"#size-cells":
|
|
const: 1
|
|
|
|
"#clock-cells":
|
|
const: 1
|
|
|
|
ranges: true
|
|
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- ingenic,jz4740-cgu
|
|
- ingenic,jz4725b-cgu
|
|
- ingenic,jz4770-cgu
|
|
- ingenic,jz4780-cgu
|
|
- ingenic,x1000-cgu
|
|
- ingenic,x1830-cgu
|
|
- const: simple-mfd
|
|
minItems: 1
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: External oscillator clock
|
|
- description: Internal 32 kHz RTC clock
|
|
|
|
clock-names:
|
|
items:
|
|
- const: ext
|
|
- enum:
|
|
- rtc
|
|
- osc32k # Different name, same clock
|
|
|
|
assigned-clocks:
|
|
minItems: 1
|
|
maxItems: 64
|
|
|
|
assigned-clock-parents:
|
|
minItems: 1
|
|
maxItems: 64
|
|
|
|
assigned-clock-rates:
|
|
minItems: 1
|
|
maxItems: 64
|
|
|
|
required:
|
|
- "#clock-cells"
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- clock-names
|
|
|
|
patternProperties:
|
|
"^usb-phy@[a-f0-9]+$":
|
|
allOf: [ $ref: "../usb/ingenic,jz4770-phy.yaml#" ]
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/jz4770-cgu.h>
|
|
cgu: clock-controller@10000000 {
|
|
compatible = "ingenic,jz4770-cgu", "simple-mfd";
|
|
reg = <0x10000000 0x100>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges = <0x0 0x10000000 0x100>;
|
|
|
|
clocks = <&ext>, <&osc32k>;
|
|
clock-names = "ext", "osc32k";
|
|
|
|
#clock-cells = <1>;
|
|
|
|
otg_phy: usb-phy@3c {
|
|
compatible = "ingenic,jz4770-phy";
|
|
reg = <0x3c 0x10>;
|
|
|
|
clocks = <&cgu JZ4770_CLK_OTG_PHY>;
|
|
|
|
vcc-supply = <&ldo5>;
|
|
|
|
#phy-cells = <0>;
|
|
};
|
|
};
|