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
764 B
Plaintext
23 lines
764 B
Plaintext
* Maxim 1027/1029/1031 Analog to Digital Converter (ADC)
|
|
|
|
Required properties:
|
|
- compatible: Should be "maxim,max1027" or "maxim,max1029" or "maxim,max1031"
|
|
- reg: SPI chip select number for the device
|
|
- interrupt-parent: phandle to the parent interrupt controller
|
|
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
|
|
- interrupts: IRQ line for the ADC
|
|
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
|
|
|
|
Recommended properties:
|
|
- spi-max-frequency: Definition as per
|
|
Documentation/devicetree/bindings/spi/spi-bus.txt
|
|
|
|
Example:
|
|
adc@0 {
|
|
compatible = "maxim,max1027";
|
|
reg = <0>;
|
|
interrupt-parent = <&gpio5>;
|
|
interrupts = <15 IRQ_TYPE_EDGE_RISING>;
|
|
spi-max-frequency = <1000000>;
|
|
};
|