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

dt-bindings: rtc: add device-tree bindings for the Amlogic Meson RTC

The 32-bit Amlogic Meson SoCs (Meson6, Meson8, Meson8b and Meson8m2)
have a built-in RTC block.
It has the following inputs:
- an 32.768kHz crystal oscillator
- an interrupt line
- a reset line
- 0.9V voltage input

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
[resurrected patches from Ben after 2 years]
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Martin Blumenstingl and committed by
Alexandre Belloni
1366e010 09832dc0

+35
+35
Documentation/devicetree/bindings/rtc/rtc-meson.txt
··· 1 + * Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC 2 + 3 + Required properties: 4 + - compatible: should be one of the following describing the hardware: 5 + * "amlogic,meson6-rtc" 6 + * "amlogic,meson8-rtc" 7 + * "amlogic,meson8b-rtc" 8 + * "amlogic,meson8m2-rtc" 9 + 10 + - reg: physical register space for the controller's memory mapped registers. 11 + - interrupts: the interrupt line of the RTC block. 12 + - clocks: reference to the external 32.768kHz crystal oscillator. 13 + - vdd-supply: reference to the power supply of the RTC block. 14 + - resets: reset controller reference to allow reset of the controller 15 + 16 + Optional properties for the battery-backed non-volatile memory: 17 + - #address-cells: should be 1 to address the battery-backed non-volatile memory 18 + - #size-cells: should be 1 to reference the battery-backed non-volatile memory 19 + 20 + Optional child nodes: 21 + - see ../nvmem/nvmem.txt 22 + 23 + Example: 24 + 25 + rtc: rtc@740 { 26 + compatible = "amlogic,meson6-rtc"; 27 + reg = <0x740 0x14>; 28 + interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>; 29 + clocks = <&rtc32k_xtal>; 30 + vdd-supply = <&rtc_vdd>; 31 + resets = <&reset RESET_RTC>; 32 + 33 + #address-cells = <1>; 34 + #size-cells = <1>; 35 + };