Atmel Power Management Controller (PMC)
Schema identifier ($id): "http://devicetree.org/schemas/clock/atmel,at91rm9200-pmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"
The power management controller optimizes power consumption by controlling all system and user peripheral clocks. The PMC enables/disables the clock inputs to many of the peripherals and to the processor.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"atmel,at91sam9g20-pmc"Item 2
Exact value (
const):"atmel,at91sam9260-pmc"Item 3
Exact value (
const):"syscon"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"atmel,at91sam9g15-pmc","atmel,at91sam9g25-pmc","atmel,at91sam9g35-pmc","atmel,at91sam9x25-pmc","atmel,at91sam9x35-pmc"Item 2
Exact value (
const):"atmel,at91sam9x5-pmc"Item 3
Exact value (
const):"syscon"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"atmel,at91rm9200-pmc","atmel,at91sam9260-pmc","atmel,at91sam9261-pmc","atmel,at91sam9263-pmc","atmel,at91sam9g45-pmc","atmel,at91sam9n12-pmc","atmel,at91sam9rl-pmc","atmel,at91sam9x5-pmc","atmel,sama5d2-pmc","atmel,sama5d3-pmc","atmel,sama5d4-pmc","microchip,sam9x60-pmc","microchip,sam9x7-pmc","microchip,sama7d65-pmc","microchip,sama7g5-pmc"Item 2
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#clock-cells — required here #
- 1st cell is the clock type, one of PMC_TYPE_CORE, PMC_TYPE_SYSTEM,
PMC_TYPE_PERIPHERAL, PMC_TYPE_GCK, PMC_TYPE_PROGRAMMABLE (as defined
in <dt-bindings/clock/at91.h>)
- 2nd cell is the clock identifier as defined in <dt-bindings/clock/at91.h
(for core clocks) or as defined in datasheet (for system, peripheral,
gck and programmable clocks).
Exact value (const): 2
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
atmel,osc-bypass — not listed as required here #
set when a clock signal is directly provided on XIN
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts", "#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)Allowed values (
enum):"microchip,sam9x60-pmc","microchip,sam9x7-pmc","microchip,sama7d65-pmc","microchip,sama7g5-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"td_slck"Item 2
Exact value (
const):"md_slck"Item 3
Exact value (
const):"main_xtal"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"atmel,at91rm9200-pmc","atmel,at91sam9260-pmc","atmel,at91sam9261-pmc","atmel,at91sam9263-pmc","atmel,at91sam9g20-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"slow_xtal"Item 2
Exact value (
const):"main_xtal"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"atmel,sama5d2-pmc","atmel,sama5d3-pmc","atmel,sama5d4-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"slow_clk"Item 2
Exact value (
const):"main_xtal"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
pmc: clock-controller@f0018000 {
compatible = "atmel,sama5d4-pmc", "syscon";
reg = <0xf0018000 0x120>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
#clock-cells = <2>;
clocks = <&clk32k>, <&main_xtal>;
clock-names = "slow_clk", "main_xtal";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)