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)
23 lines
616 B
Plaintext
23 lines
616 B
Plaintext
Device tree configuration for the I2C controller on the XLP9xx/5xx SoC
|
|
|
|
Required properties:
|
|
- compatible : should be "netlogic,xlp980-i2c"
|
|
- reg : bus address start and address range size of device
|
|
- interrupts : interrupt number
|
|
|
|
Optional properties:
|
|
- clock-frequency : frequency of bus clock in Hz
|
|
Defaults to 100 KHz when the property is not specified
|
|
|
|
Example:
|
|
|
|
i2c0: i2c@113100 {
|
|
compatible = "netlogic,xlp980-i2c";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
reg = <0 0x113100 0x100>;
|
|
clock-frequency = <400000>;
|
|
interrupts = <30>;
|
|
interrupt-parent = <&pic>;
|
|
};
|