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)
39 lines
817 B
Plaintext
39 lines
817 B
Plaintext
* Maxim DS3231 Real Time Clock
|
|
|
|
Required properties:
|
|
- compatible: Should contain "maxim,ds3231".
|
|
- reg: I2C address for chip.
|
|
|
|
Optional property:
|
|
- #clock-cells: Should be 1.
|
|
- clock-output-names:
|
|
overwrite the default clock names "ds3231_clk_sqw" and "ds3231_clk_32khz".
|
|
|
|
Each clock is assigned an identifier and client nodes can use this identifier
|
|
to specify the clock which they consume. Following indices are allowed:
|
|
- 0: square-wave output on the SQW pin
|
|
- 1: square-wave output on the 32kHz pin
|
|
|
|
- interrupts: rtc alarm/event interrupt. When this property is selected,
|
|
clock on the SQW pin cannot be used.
|
|
|
|
Example:
|
|
|
|
ds3231: ds3231@51 {
|
|
compatible = "maxim,ds3231";
|
|
reg = <0x68>;
|
|
#clock-cells = <1>;
|
|
};
|
|
|
|
device1 {
|
|
...
|
|
clocks = <&ds3231 0>;
|
|
...
|
|
};
|
|
|
|
device2 {
|
|
...
|
|
clocks = <&ds3231 1>;
|
|
...
|
|
};
|