1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/rtc/sprd,sc 4 $id: http://devicetree.org/schemas/rtc/sprd,sc2731-rtc.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Spreadtrum SC2731 Real Time Clock 7 title: Spreadtrum SC2731 Real Time Clock 8 8 9 maintainers: 9 maintainers: 10 - Orson Zhai <orsonzhai@gmail.com> 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 13 13 14 properties: 14 properties: 15 compatible: 15 compatible: 16 const: sprd,sc2731-rtc 16 const: sprd,sc2731-rtc 17 17 18 reg: 18 reg: 19 maxItems: 1 19 maxItems: 1 20 20 21 interrupts: 21 interrupts: 22 maxItems: 1 22 maxItems: 1 23 23 24 required: 24 required: 25 - compatible 25 - compatible 26 - reg 26 - reg 27 - interrupts 27 - interrupts 28 28 29 allOf: 29 allOf: 30 - $ref: rtc.yaml# 30 - $ref: rtc.yaml# 31 31 32 unevaluatedProperties: false 32 unevaluatedProperties: false 33 33 34 examples: 34 examples: 35 - | 35 - | 36 #include <dt-bindings/interrupt-controller 36 #include <dt-bindings/interrupt-controller/irq.h> 37 37 38 pmic { 38 pmic { 39 #address-cells = <1>; 39 #address-cells = <1>; 40 #size-cells = <0>; 40 #size-cells = <0>; 41 41 42 rtc@280 { 42 rtc@280 { 43 compatible = "sprd,sc2731-rtc"; 43 compatible = "sprd,sc2731-rtc"; 44 reg = <0x280>; 44 reg = <0x280>; 45 interrupt-parent = <&sc2731_pmic>; 45 interrupt-parent = <&sc2731_pmic>; 46 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; 46 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; 47 }; 47 }; 48 }; 48 }; 49 ... 49 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.