Google GS101 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/google,gs101-clock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Griffin <peter.griffin@linaro.org>"
Google GS101 clock controller is comprised of several CMU units, generating clocks for different domains. Those CMU units are modeled as separate device tree nodes, and might depend on each other. The root clock in that clock tree is OSCCLK (24.576 MHz). That external clock must be defined as a fixed-rate clock in dts.
CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and dividers; all other leaf clocks (other CMUs) are usually derived from CMU_TOP.
Each clock is assigned an identifier and client nodes can use this identifier to specify the clock which they consume. All clocks available for usage in clock consumer nodes are defined as preprocessor macros in 'dt-bindings/clock/gs101.h' header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "google,gs101-cmu-top", "google,gs101-cmu-apm", "google,gs101-cmu-dpu", "google,gs101-cmu-hsi0", "google,gs101-cmu-hsi2", "google,gs101-cmu-misc", "google,gs101-cmu-peric0", "google,gs101-cmu-peric1"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
#clock-cells — required here #
Exact value (const): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
samsung,sysreg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to system registers interface.
Required in this object (required): "compatible", "#clock-cells", "clocks", "clock-names", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"google,gs101-cmu-top","google,gs101-cmu-apm"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24.576 MHz)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-cmu-dpu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24.576 MHz)
Item 2
DPU bus clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-cmu-hsi0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24.576 MHz)
Item 2
HSI0 bus clock (from CMU_TOP)
Item 3
DPGTC (from CMU_TOP)
Item 4
USB DRD controller clock (from CMU_TOP)
Item 5
USB Display Port debug clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"dpgtc"Item 4
Exact value (
const):"usb31drd"Item 5
Exact value (
const):"usbdpdbg"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24.576 MHz)
Item 2
High Speed Interface bus clock (from CMU_TOP)
Item 3
High Speed Interface pcie clock (from CMU_TOP)
Item 4
High Speed Interface ufs clock (from CMU_TOP)
Item 5
High Speed Interface mmc clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"pcie"Item 4
Exact value (
const):"ufs"Item 5
Exact value (
const):"mmc"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-cmu-misc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Misc bus clock (from CMU_TOP)
Item 2
Misc sss clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"bus"Item 2
Exact value (
const):"sss"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"google,gs101-cmu-peric0","google,gs101-cmu-peric1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24.576 MHz)
Item 2
Connectivity Peripheral 0/1 bus clock (from CMU_TOP)
Item 3
Connectivity Peripheral 0/1 IP clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"ip"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"google,gs101-cmu-top"When the condition matches (
then) #Properties and child nodes (
properties)
samsung,sysreg— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/google,gs101.h>
cmu_top: clock-controller@1e080000 {
compatible = "google,gs101-cmu-top";
reg = <0x1e080000 0x10000>;
#clock-cells = <1>;
clocks = <&ext_24_5m>;
clock-names = "oscclk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 208: Clock controller node for CMU_TOP