1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5f62a964SEmmanuel Vadot%YAML 1.2 3*5f62a964SEmmanuel Vadot--- 4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/renesas,r9a08g045-vbattb.yaml# 5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5f62a964SEmmanuel Vadot 7*5f62a964SEmmanuel Vadottitle: Renesas Battery Backup Function (VBATTB) 8*5f62a964SEmmanuel Vadot 9*5f62a964SEmmanuel Vadotdescription: 10*5f62a964SEmmanuel Vadot Renesas VBATTB is an always on powered module (backed by battery) which 11*5f62a964SEmmanuel Vadot controls the RTC clock (VBATTCLK), tamper detection logic and a small 12*5f62a964SEmmanuel Vadot general usage memory (128B). 13*5f62a964SEmmanuel Vadot 14*5f62a964SEmmanuel Vadotmaintainers: 15*5f62a964SEmmanuel Vadot - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> 16*5f62a964SEmmanuel Vadot 17*5f62a964SEmmanuel Vadotproperties: 18*5f62a964SEmmanuel Vadot compatible: 19*5f62a964SEmmanuel Vadot const: renesas,r9a08g045-vbattb 20*5f62a964SEmmanuel Vadot 21*5f62a964SEmmanuel Vadot reg: 22*5f62a964SEmmanuel Vadot maxItems: 1 23*5f62a964SEmmanuel Vadot 24*5f62a964SEmmanuel Vadot interrupts: 25*5f62a964SEmmanuel Vadot items: 26*5f62a964SEmmanuel Vadot - description: tamper detector interrupt 27*5f62a964SEmmanuel Vadot 28*5f62a964SEmmanuel Vadot clocks: 29*5f62a964SEmmanuel Vadot items: 30*5f62a964SEmmanuel Vadot - description: VBATTB module clock 31*5f62a964SEmmanuel Vadot - description: RTC input clock (crystal or external clock device) 32*5f62a964SEmmanuel Vadot 33*5f62a964SEmmanuel Vadot clock-names: 34*5f62a964SEmmanuel Vadot items: 35*5f62a964SEmmanuel Vadot - const: bclk 36*5f62a964SEmmanuel Vadot - const: rtx 37*5f62a964SEmmanuel Vadot 38*5f62a964SEmmanuel Vadot '#clock-cells': 39*5f62a964SEmmanuel Vadot const: 1 40*5f62a964SEmmanuel Vadot 41*5f62a964SEmmanuel Vadot power-domains: 42*5f62a964SEmmanuel Vadot maxItems: 1 43*5f62a964SEmmanuel Vadot 44*5f62a964SEmmanuel Vadot resets: 45*5f62a964SEmmanuel Vadot items: 46*5f62a964SEmmanuel Vadot - description: VBATTB module reset 47*5f62a964SEmmanuel Vadot 48*5f62a964SEmmanuel Vadot quartz-load-femtofarads: 49*5f62a964SEmmanuel Vadot description: load capacitance of the on board crystal 50*5f62a964SEmmanuel Vadot enum: [ 4000, 7000, 9000, 12500 ] 51*5f62a964SEmmanuel Vadot default: 4000 52*5f62a964SEmmanuel Vadot 53*5f62a964SEmmanuel Vadotrequired: 54*5f62a964SEmmanuel Vadot - compatible 55*5f62a964SEmmanuel Vadot - reg 56*5f62a964SEmmanuel Vadot - interrupts 57*5f62a964SEmmanuel Vadot - clocks 58*5f62a964SEmmanuel Vadot - clock-names 59*5f62a964SEmmanuel Vadot - '#clock-cells' 60*5f62a964SEmmanuel Vadot - power-domains 61*5f62a964SEmmanuel Vadot - resets 62*5f62a964SEmmanuel Vadot 63*5f62a964SEmmanuel VadotadditionalProperties: false 64*5f62a964SEmmanuel Vadot 65*5f62a964SEmmanuel Vadotexamples: 66*5f62a964SEmmanuel Vadot - | 67*5f62a964SEmmanuel Vadot #include <dt-bindings/clock/r9a08g045-cpg.h> 68*5f62a964SEmmanuel Vadot #include <dt-bindings/clock/renesas,r9a08g045-vbattb.h> 69*5f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 70*5f62a964SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 71*5f62a964SEmmanuel Vadot 72*5f62a964SEmmanuel Vadot clock-controller@1005c000 { 73*5f62a964SEmmanuel Vadot compatible = "renesas,r9a08g045-vbattb"; 74*5f62a964SEmmanuel Vadot reg = <0x1005c000 0x1000>; 75*5f62a964SEmmanuel Vadot interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; 76*5f62a964SEmmanuel Vadot clocks = <&cpg CPG_MOD R9A08G045_VBAT_BCLK>, <&vbattb_xtal>; 77*5f62a964SEmmanuel Vadot clock-names = "bclk", "rtx"; 78*5f62a964SEmmanuel Vadot assigned-clocks = <&vbattb VBATTB_MUX>; 79*5f62a964SEmmanuel Vadot assigned-clock-parents = <&vbattb VBATTB_XC>; 80*5f62a964SEmmanuel Vadot #clock-cells = <1>; 81*5f62a964SEmmanuel Vadot power-domains = <&cpg>; 82*5f62a964SEmmanuel Vadot resets = <&cpg R9A08G045_VBAT_BRESETN>; 83*5f62a964SEmmanuel Vadot quartz-load-femtofarads = <12500>; 84*5f62a964SEmmanuel Vadot }; 85