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)
34 lines
751 B
Plaintext
34 lines
751 B
Plaintext
NXP I2C controller for LPC2xxx/178x/18xx/43xx
|
|
|
|
Required properties:
|
|
- compatible: must be "nxp,lpc1788-i2c"
|
|
- reg: physical address and length of the device registers
|
|
- interrupts: a single interrupt specifier
|
|
- clocks: clock for the device
|
|
- #address-cells: should be <1>
|
|
- #size-cells: should be <0>
|
|
|
|
Optional properties:
|
|
- clock-frequency: the desired I2C bus clock frequency in Hz; in
|
|
absence of this property the default value is used (100 kHz).
|
|
|
|
Example:
|
|
i2c0: i2c@400a1000 {
|
|
compatible = "nxp,lpc1788-i2c";
|
|
reg = <0x400a1000 0x1000>;
|
|
interrupts = <18>;
|
|
clocks = <&ccu1 CLK_APB1_I2C0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
&i2c0 {
|
|
clock-frequency = <400000>;
|
|
|
|
lm75@48 {
|
|
compatible = "nxp,lm75";
|
|
reg = <0x48>;
|
|
};
|
|
};
|
|
|