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