build/patch/kernel/archive/rockchip64-4.4/check/0065-overlays-Add-imx219-camera-module-support.patch

76 lines
2.3 KiB
Diff
Raw Normal View History

From b5acf3af521f0f2cd65d308e68ee5f523d6af44a Mon Sep 17 00:00:00 2001
From: zhu <a05965575163@163.com>
Date: Thu, 25 Jul 2019 17:58:38 +0800
Subject: [PATCH 65/97] overlays: Add imx219 camera module support
Signed-off-by: zhu <a05965575163@163.com>
---
.../dts/rockchip/overlays-rockpi4/Makefile | 3 ++-
.../rockchip/overlays-rockpi4/hw_intfc.conf | 5 +++-
.../overlays-rockpi4/imx219-overlay.dts | 23 +++++++++++++++++++
.../boot/dts/rockchip/rockpi-4b-linux.dts | 4 +---
4 files changed, 30 insertions(+), 5 deletions(-)
create mode 100644 arch/arm64/boot/dts/rockchip/overlays-rockpi4/imx219-overlay.dts
diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
index 4b8826779c7c..8ef4882feb61 100644
--- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
+++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile
@@ -14,7 +14,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
hifiberry-dac.dtbo \
hifiberry-dacplus.dtbo \
raspberrypi-7-inch-lcd.dtbo \
- cpufreq.dtbo
+ cpufreq.dtbo \
+ imx219.dtbo
targets += dtbs dtbs_install
targets += $(dtbo-y)
diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf
index 8e81b315b073..80b509f309c9 100644
--- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf
+++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf
@@ -57,4 +57,7 @@ intfc:dtoverlay=console-on-ttyS2
#intfc:dtoverlay=raspberrypi-7-inch-lcd
# setting cpu frequency over-2GHz
-#intfc:dtoverlay=cpufreq
\ No newline at end of file
+#intfc:dtoverlay=cpufreq
+
+# Add imx219 camera module support
+#intfc:dtoverlay=imx219
\ No newline at end of file
diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/imx219-overlay.dts b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/imx219-overlay.dts
new file mode 100644
index 000000000000..514d6a6e9ce3
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/imx219-overlay.dts
@@ -0,0 +1,23 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ model = "ROCK PI 4B";
+ compatible = "rockchip,rockpi","rockchip,rk3399";
+
+ fragment@0 {
+ target = <&i2c4>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+
+ fragment@1 {
+ target = <&camera1>;
+
+ __overlay__ {
+ status = "okay";
+ };
+ };
+};
--
2.25.1