mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
68 lines
1.9 KiB
Diff
68 lines
1.9 KiB
Diff
|
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";
|
||
|
+ };
|
||
|
+ };
|
||
|
+ };
|
||
|
+};
|