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)
27 lines
622 B
Plaintext
27 lines
622 B
Plaintext
* Capella CM36651 I2C Proximity and Color Light sensor
|
|
|
|
Required properties:
|
|
- compatible: must be "capella,cm36651"
|
|
- reg: the I2C address of the device
|
|
- interrupts: interrupt-specifier for the sole interrupt
|
|
generated by the device
|
|
- vled-supply: regulator for the IR LED. IR_LED is a part
|
|
of the cm36651 for proximity detection.
|
|
As covered in ../../regulator/regulator.txt
|
|
|
|
Example:
|
|
|
|
i2c_cm36651: i2c-gpio {
|
|
/* ... */
|
|
|
|
cm36651@18 {
|
|
compatible = "capella,cm36651";
|
|
reg = <0x18>;
|
|
interrupt-parent = <&gpx0>;
|
|
interrupts = <2 0>;
|
|
vled-supply = <&ps_als_reg>;
|
|
};
|
|
|
|
/* ... */
|
|
};
|