Imagination Technologies Pistachio SoC clock controllers
Schema identifier ($id): "http://devicetree.org/schemas/clock/img,pistachio-clk.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Bresticker <abrestic@chromium.org>"
Pistachio has four clock controllers (core clock, peripheral clock, peripheral general control, and top general control) which are instantiated individually from the device-tree.
Core clock controller:
The core clock controller generates clocks for the CPU, RPU (WiFi + BT co-processor), audio, and several peripherals.
Peripheral clock controller:
The peripheral clock controller generates clocks for the DDR, ROM, and other peripherals. The peripheral system clock ("periph_sys") generated by the core clock controller is the input clock to the peripheral clock controller.
Peripheral general control:
The peripheral general control block generates system interface clocks and resets for various peripherals. It also contains miscellaneous peripheral control registers.
Top-level general control:
The top-level general control block contains miscellaneous control registers and gates for the external clocks "audio_clk_in" and "enet_clk_in".
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"img,pistachio-clk","img,pistachio-clk-periph","img,pistachio-cr-periph","img,pistachio-cr-top"
reg — required here #
Maximum number of items (maxItems): 1
#clock-cells — required here #
Exact value (const): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Required in this object (required): "compatible", "reg", "#clock-cells", "clocks", "clock-names"
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)Exact value (
const):"img,pistachio-clk"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External 52Mhz oscillator
Item 2
Alternate audio reference clock
Item 3
Alternate ethernet PHY clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"xtal"Item 2
Exact value (
const):"audio_refclk_ext_gate"Item 3
Exact value (
const):"ext_enet_in_gate"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"img,pistachio-clk-periph"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Peripheral system clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"periph_sys_core"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"img,pistachio-cr-periph"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
System interface clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"sys"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"img,pistachio-cr-top"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External audio reference clock
Item 2
External ethernet PHY clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"audio_clk_in"Item 2
Exact value (
const):"enet_clk_in"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)