1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/sprd,sc2731-rtc.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Spreadtrum SC2731 Real Time Clock 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Orson Zhai <orsonzhai@gmail.com> 11*b2d2a78aSEmmanuel Vadot - Baolin Wang <baolin.wang7@gmail.com> 12*b2d2a78aSEmmanuel Vadot - Chunyan Zhang <zhang.lyra@gmail.com> 13*b2d2a78aSEmmanuel Vadot 14*b2d2a78aSEmmanuel Vadotproperties: 15*b2d2a78aSEmmanuel Vadot compatible: 16*b2d2a78aSEmmanuel Vadot const: sprd,sc2731-rtc 17*b2d2a78aSEmmanuel Vadot 18*b2d2a78aSEmmanuel Vadot reg: 19*b2d2a78aSEmmanuel Vadot maxItems: 1 20*b2d2a78aSEmmanuel Vadot 21*b2d2a78aSEmmanuel Vadot interrupts: 22*b2d2a78aSEmmanuel Vadot maxItems: 1 23*b2d2a78aSEmmanuel Vadot 24*b2d2a78aSEmmanuel Vadotrequired: 25*b2d2a78aSEmmanuel Vadot - compatible 26*b2d2a78aSEmmanuel Vadot - reg 27*b2d2a78aSEmmanuel Vadot - interrupts 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel VadotallOf: 30*b2d2a78aSEmmanuel Vadot - $ref: rtc.yaml# 31*b2d2a78aSEmmanuel Vadot 32*b2d2a78aSEmmanuel VadotunevaluatedProperties: false 33*b2d2a78aSEmmanuel Vadot 34*b2d2a78aSEmmanuel Vadotexamples: 35*b2d2a78aSEmmanuel Vadot - | 36*b2d2a78aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 37*b2d2a78aSEmmanuel Vadot 38*b2d2a78aSEmmanuel Vadot pmic { 39*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 40*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 41*b2d2a78aSEmmanuel Vadot 42*b2d2a78aSEmmanuel Vadot rtc@280 { 43*b2d2a78aSEmmanuel Vadot compatible = "sprd,sc2731-rtc"; 44*b2d2a78aSEmmanuel Vadot reg = <0x280>; 45*b2d2a78aSEmmanuel Vadot interrupt-parent = <&sc2731_pmic>; 46*b2d2a78aSEmmanuel Vadot interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; 47*b2d2a78aSEmmanuel Vadot }; 48*b2d2a78aSEmmanuel Vadot }; 49*b2d2a78aSEmmanuel Vadot... 50