2020-04-26 11:58:49 -07:00
|
|
|
# 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#
|
|
|
|
|
2022-12-16 09:38:10 -07:00
|
|
|
title: Ingenic SoCs CGU
|
2020-04-26 11:58:49 -07:00
|
|
|
|
|
|
|
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
|
2022-10-27 12:20:21 -07:00
|
|
|
- ingenic,jz4755-cgu
|
2021-05-30 09:49:18 -07:00
|
|
|
- ingenic,jz4760-cgu
|
|
|
|
- ingenic,jz4760b-cgu
|
2020-04-26 11:58:49 -07:00
|
|
|
- ingenic,jz4770-cgu
|
|
|
|
- ingenic,jz4780-cgu
|
|
|
|
- ingenic,x1000-cgu
|
2020-05-27 20:15:45 -07:00
|
|
|
- ingenic,x1830-cgu
|
2020-04-26 11:58:49 -07:00
|
|
|
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:
|
2020-04-20 19:24:47 -07:00
|
|
|
- ingenic,jz4740-cgu
|
|
|
|
- ingenic,jz4725b-cgu
|
2022-10-27 12:20:21 -07:00
|
|
|
- ingenic,jz4755-cgu
|
2021-05-30 09:49:18 -07:00
|
|
|
- ingenic,jz4760-cgu
|
|
|
|
- ingenic,jz4760b-cgu
|
2020-04-20 19:24:47 -07:00
|
|
|
- ingenic,jz4770-cgu
|
|
|
|
- ingenic,jz4780-cgu
|
|
|
|
- ingenic,x1000-cgu
|
|
|
|
- ingenic,x1830-cgu
|
2020-04-26 11:58:49 -07:00
|
|
|
- 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:
|
2020-04-20 19:24:47 -07:00
|
|
|
- rtc
|
|
|
|
- osc32k # Different name, same clock
|
2020-04-26 11:58:49 -07:00
|
|
|
|
|
|
|
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]+$":
|
2023-06-09 07:07:51 -07:00
|
|
|
$ref: /schemas/phy/ingenic,phy-usb.yaml#
|
2021-06-25 23:18:38 -07:00
|
|
|
"^mac-phy-ctrl@[a-f0-9]+$":
|
2023-06-09 07:07:51 -07:00
|
|
|
$ref: /schemas/net/ingenic,mac.yaml#
|
2020-04-26 11:58:49 -07:00
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
2021-10-16 06:33:21 -07:00
|
|
|
#include <dt-bindings/clock/ingenic,jz4770-cgu.h>
|
2020-04-26 11:58:49 -07:00
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|