Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/timer/brcm,kona-timer.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Broadcom Kona family timer |
| 8 | |
| 9 | maintainers: |
| 10 | - Florian Fainelli <f.fainelli@gmail.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | const: brcm,kona-timer |
| 15 | |
| 16 | reg: |
| 17 | maxItems: 1 |
| 18 | |
| 19 | interrupts: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | clocks: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | clock-frequency: true |
| 26 | |
| 27 | oneOf: |
| 28 | - required: |
| 29 | - clocks |
| 30 | - required: |
| 31 | - clock-frequency |
| 32 | |
| 33 | required: |
| 34 | - compatible |
| 35 | - reg |
| 36 | - interrupts |
| 37 | |
| 38 | additionalProperties: false |
| 39 | |
| 40 | examples: |
| 41 | - | |
| 42 | #include <dt-bindings/clock/bcm281xx.h> |
| 43 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 44 | #include <dt-bindings/interrupt-controller/irq.h> |
| 45 | |
| 46 | timer@35006000 { |
| 47 | compatible = "brcm,kona-timer"; |
| 48 | reg = <0x35006000 0x1000>; |
| 49 | interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 50 | clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>; |
| 51 | }; |
| 52 | ... |