Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
STMicro VL6180 -  ALS, range and proximity sensor

Link to datasheet: https://www.st.com/resource/en/datasheet/vl6180x.pdf

Required properties:

	-compatible: should be "st,vl6180"
	-reg: the I2C address of the sensor

Optional properties:
	-avdd-gpio: gpio to enable or disable the digital/analog power supply
	-chip-enable-gpio: gpio to enable or disable chip select (CE)

Example:

vl6180@29 {
	compatible = "st,vl6180";
	reg = <0x29>;
};

Here an example with power controlled by gpio:

vl6180@29 {
	compatible = "st,vl6180";
	reg = <0x29>;
	avdd-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
	chip-enable-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
};