brintos

brintos / linux-shallow public Read only

0
0
Text · 1.9 KiB · eff9df4 Raw
78 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/rtc/renesas,sh-rtc.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Real Time Clock for Renesas SH and ARM SoCs8 9maintainers:10  - Chris Brandt <chris.brandt@renesas.com>11  - Geert Uytterhoeven <geert+renesas@glider.be>12 13properties:14  compatible:15    items:16      - const: renesas,r7s72100-rtc  # RZ/A1H17      - const: renesas,sh-rtc18 19  reg:20    maxItems: 121 22  interrupts:23    maxItems: 324 25  interrupt-names:26    items:27      - const: alarm28      - const: period29      - const: carry30 31  clocks:32    # The functional clock source for the RTC controller must be listed33    # first (if it exists). Additionally, potential clock counting sources34    # are to be listed.35    minItems: 136    maxItems: 437 38  clock-names:39    # The functional clock must be labeled as "fck". Other clocks40    # may be named in accordance to the SoC hardware manuals.41    minItems: 142    maxItems: 443    items:44      enum: [ fck, rtc_x1, rtc_x3, extal ]45 46  power-domains:47    maxItems: 148 49required:50  - compatible51  - reg52  - interrupts53  - interrupt-names54  - clocks55  - clock-names56  - power-domains57 58additionalProperties: false59 60examples:61  - |62    #include <dt-bindings/clock/r7s72100-clock.h>63    #include <dt-bindings/interrupt-controller/arm-gic.h>64    #include <dt-bindings/interrupt-controller/irq.h>65 66    rtc: rtc@fcff1000 {67        compatible = "renesas,r7s72100-rtc", "renesas,sh-rtc";68        reg = <0xfcff1000 0x2e>;69        interrupts = <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,70                     <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,71                     <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>;72        interrupt-names = "alarm", "period", "carry";73        clocks = <&mstp6_clks R7S72100_CLK_RTC>, <&rtc_x1_clk>,74                 <&rtc_x3_clk>, <&extal_clk>;75        power-domains = <&cpg_clocks>;76        clock-names = "fck", "rtc_x1", "rtc_x3", "extal";77    };78