Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: rtc: Add Amlogic A4 and A5 RTC

Add documentation describing the Amlogic A4(A113L2) and A5(A113X2) RTC.

Signed-off-by: Yiting Deng <yiting.deng@amlogic.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://lore.kernel.org/r/20241112-rtc-v6-1-a71b60d2f354@amlogic.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Yiting Deng and committed by
Alexandre Belloni
ce57cf73 82ee16cf

+63
+63
Documentation/devicetree/bindings/rtc/amlogic,a4-rtc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + # Copyright (C) 2024 Amlogic, Inc. All rights reserved 3 + %YAML 1.2 4 + --- 5 + $id: http://devicetree.org/schemas/rtc/amlogic,a4-rtc.yaml# 6 + $schema: http://devicetree.org/meta-schemas/core.yaml# 7 + 8 + title: Amlogic A4 and A5 RTC 9 + 10 + maintainers: 11 + - Yiting Deng <yiting.deng@amlogic.com> 12 + - Xianwei Zhao <xianwei.zhao@amlogic.com> 13 + 14 + allOf: 15 + - $ref: rtc.yaml# 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - amlogic,a4-rtc 21 + - amlogic,a5-rtc 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + clocks: 27 + items: 28 + - description: RTC clock source, available 24M or 32K crystal 29 + oscillator source. when using 24M, need to divide 24M into 32K. 30 + - description: RTC module accesses the clock of the apb bus. 31 + 32 + clock-names: 33 + items: 34 + - const: osc 35 + - const: sys 36 + 37 + interrupts: 38 + maxItems: 1 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - clocks 44 + - clock-names 45 + - interrupts 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/interrupt-controller/arm-gic.h> 52 + apb { 53 + #address-cells = <2>; 54 + #size-cells = <2>; 55 + 56 + rtc@8e600 { 57 + compatible = "amlogic,a4-rtc"; 58 + reg = <0x0 0x8e600 0x0 0x38>; 59 + clocks = <&xtal_32k>, <&clkc_periphs 1>; 60 + clock-names = "osc", "sys"; 61 + interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>; 62 + }; 63 + };