1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
From 3fd6d30806724fa8b07ae625d828c49855c42fbe Mon Sep 17 00:00:00 2001
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Date: Sun, 19 Sep 2021 13:30:43 +0200
Subject: [PATCH] overlays: add support for the MLX90640 thermal camera
This allows using the video-i2c camera driver with MLX90640 thermal
infrared sensors, connected to Raspberry Pi. CONFIG_VIDEO_V4L2_I2C
has to be selected to use the camera.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
arch/arm/boot/dts/overlays/Makefile | 1 +
arch/arm/boot/dts/overlays/README | 6 +++++
.../boot/dts/overlays/mlx90640-overlay.dts | 22 +++++++++++++++++++
3 files changed, 29 insertions(+)
create mode 100644 arch/arm/boot/dts/overlays/mlx90640-overlay.dts
--- a/arch/arm/boot/dts/overlays/Makefile
+++ b/arch/arm/boot/dts/overlays/Makefile
@@ -129,6 +129,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
midi-uart5.dtbo \
minipitft13.dtbo \
miniuart-bt.dtbo \
+ mlx90640.dtbo \
mmc.dtbo \
mpu6050.dtbo \
mz61581.dtbo \
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2152,6 +2152,12 @@ Params: krnbt Set to "
driver without need of hciattach/btattach
+Name: mlx90640
+Info: Overlay for i2c connected mlx90640 thermal camera
+Load: dtoverlay=mlx90640
+Params: <None>
+
+
Name: mmc
Info: Selects the bcm2835-mmc SD/MMC driver, optionally with overclock
Load: dtoverlay=mmc,<param>=<val>
--- /dev/null
+++ b/arch/arm/boot/dts/overlays/mlx90640-overlay.dts
@@ -0,0 +1,22 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "brcm,bcm2835";
+
+ fragment@0 {
+ target = <&i2c_arm>;
+ __overlay__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+ clock-frequency = <400000>;
+
+ mlx90640: mlx90640@33 {
+ compatible = "melexis,mlx90640";
+ reg = <0x33>;
+ status = "okay";
+ };
+ };
+ };
+};
|