1 From 3fd6d30806724fa8b07ae625d828c49855c42fbe Mon Sep 17 00:00:00 2001
2 From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
3 Date: Sun, 19 Sep 2021 13:30:43 +0200
4 Subject: [PATCH] overlays: add support for the MLX90640 thermal camera
6 This allows using the video-i2c camera driver with MLX90640 thermal
7 infrared sensors, connected to Raspberry Pi. CONFIG_VIDEO_V4L2_I2C
8 has to be selected to use the camera.
10 Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
12 arch/arm/boot/dts/overlays/Makefile | 1 +
13 arch/arm/boot/dts/overlays/README | 6 +++++
14 .../boot/dts/overlays/mlx90640-overlay.dts | 22 +++++++++++++++++++
15 3 files changed, 29 insertions(+)
16 create mode 100644 arch/arm/boot/dts/overlays/mlx90640-overlay.dts
18 --- a/arch/arm/boot/dts/overlays/Makefile
19 +++ b/arch/arm/boot/dts/overlays/Makefile
20 @@ -129,6 +129,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
28 --- a/arch/arm/boot/dts/overlays/README
29 +++ b/arch/arm/boot/dts/overlays/README
30 @@ -2152,6 +2152,12 @@ Params: krnbt Set to "
31 driver without need of hciattach/btattach
35 +Info: Overlay for i2c connected mlx90640 thermal camera
36 +Load: dtoverlay=mlx90640
41 Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
42 Load: dtoverlay=mmc,<param>=<val>
44 +++ b/arch/arm/boot/dts/overlays/mlx90640-overlay.dts
50 + compatible = "brcm,bcm2835";
53 + target = <&i2c_arm>;
55 + #address-cells = <1>;
58 + clock-frequency = <400000>;
60 + mlx90640: mlx90640@33 {
61 + compatible = "melexis,mlx90640";