Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
29 lines
859 B
Plaintext
29 lines
859 B
Plaintext
Motorola mc146818 compatible RTC
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Required properties:
|
|
- compatible : "motorola,mc146818"
|
|
- reg : should contain registers location and length.
|
|
|
|
Optional properties:
|
|
- interrupts : should contain interrupt.
|
|
- interrupt-parent : interrupt source phandle.
|
|
- ctrl-reg : Contains the initial value of the control register also
|
|
called "Register B".
|
|
- freq-reg : Contains the initial value of the frequency register also
|
|
called "Regsiter A".
|
|
|
|
"Register A" and "B" are usually initialized by the firmware (BIOS for
|
|
instance). If this is not done, it can be performed by the driver.
|
|
|
|
ISA Example:
|
|
|
|
rtc@70 {
|
|
compatible = "motorola,mc146818";
|
|
interrupts = <8 3>;
|
|
interrupt-parent = <&ioapic1>;
|
|
ctrl-reg = <2>;
|
|
freq-reg = <0x26>;
|
|
reg = <1 0x70 2>;
|
|
};
|