| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/rtc/alphascale,asm9260-rtc.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Alphascale asm9260 SoC Real Time Clock |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Javier Carrasco <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: rtc.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
const: alphascale,asm9260-rtc |
| 18 |
|
| 19 |
reg: |
| 20 |
maxItems: 1 |
| 21 |
|
| 22 |
clocks: |
| 23 |
maxItems: 1 |
| 24 |
|
| 25 |
clock-names: |
| 26 |
const: ahb |
| 27 |
|
| 28 |
interrupts: |
| 29 |
maxItems: 1 |
| 30 |
|
| 31 |
required: |
| 32 |
- compatible |
| 33 |
- reg |
| 34 |
- clocks |
| 35 |
- clock-names |
| 36 |
- interrupts |
| 37 |
|
| 38 |
unevaluatedProperties: false |
| 39 |
|
| 40 |
examples: |
| 41 |
- | |
| 42 |
#include <dt-bindings/clock/alphascale,asm9260.h> |
| 43 |
|
| 44 |
rtc@800a0000 { |
| 45 |
compatible = "alphascale,asm9260-rtc"; |
| 46 |
reg = <0x800a0000 0x100>; |
| 47 |
clocks = <&acc CLKID_AHB_RTC>; |
| 48 |
clock-names = "ahb"; |
| 49 |
interrupts = <2>; |
| 50 |
}; |