Pistachio general-purpose timer
Schema identifier ($id): "http://devicetree.org/schemas/img,pistachio-gptimer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ezequiel Garcia <ezequiel.garcia@imgtec.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "img,pistachio-gptimer"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Timer0 interrupt
Item 2
Timer1 interrupt
Item 3
Timer2 interrupt
Item 4
Timer3 interrupt
clocks — required here #
Array item rules (items) #
Item 1
Fast counter clock
Item 2
Slow counter clock
Item 3
Interface clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fast"
Item 2
Exact value (
const):"slow"
Item 3
Exact value (
const):"sys"
img,cr-periph — required here #
Peripheral control syscon phandle
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "img,cr-periph"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/clock/pistachio-clk.h>
timer@18102000 {
compatible = "img,pistachio-gptimer";
reg = <0x18102000 0x100>;
interrupts = <GIC_SHARED 60 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SHARED 61 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SHARED 62 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SHARED 63 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_periph PERIPH_CLK_COUNTER_FAST>,
<&clk_periph PERIPH_CLK_COUNTER_SLOW>,
<&cr_periph SYS_CLK_TIMER>;
clock-names = "fast", "slow", "sys";
img,cr-periph = <&cr_periph>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)