armbian-build/patch/kernel/rockchip-default/321_DTS_set_ov5647_as_default.patch
chwe17 a040785d42 Tinkerboard camera support (#1482)
* fix kernelcrash with config_of_overlay combined with isp1 camera driver,based on:
30a8401c2f

* add basic dtbo infrastucture

* set ov5647 (RPi cam rev 1.3) as default, imx219 (RPi cam V2.1) outputs a blurry green videostream at the moment

* maybe fix powering for camera

* adjust mainline dtbo patch to bsp kernel

* got you! little.. dtbo's are properly built and applied during boot.

* add imx219 overlay to switch between cameras & add ae/awb fix for ov 5647 from asus tinker repo

* patch imx219 up to 96396323fa

* bring back wireguard, otherwise igor gets grumpy :D

* fix camera status
2019-08-04 18:05:50 -04:00

53 lines
1.1 KiB
Diff

diff --git a/arch/arm/boot/dts/rk3288-miniarm.dts b/arch/arm/boot/dts/rk3288-miniarm.dts
index 24a4827c..e26a65e8 100644
--- a/arch/arm/boot/dts/rk3288-miniarm.dts
+++ b/arch/arm/boot/dts/rk3288-miniarm.dts
@@ -498,17 +498,23 @@
reg = <0x36>;
clocks = <&ext_cam_clk>;
status = "okay";
+
+ port {
+ ov5647_out: endpoint {
+ remote-endpoint = <&mipi_dphy_in>;
+ data-lanes = <1 2>;
+ };
+ };
};
camera1: imx219@10 {
compatible = "sony,imx219";
reg = <0x10>;
clocks = <&ext_cam_clk>;
- status = "okay";
-
+ status = "disabled";
port {
imx219_out: endpoint {
- remote-endpoint = <&imx219_in>;
+ remote-endpoint;
data-lanes = <1 2>;
};
};
@@ -562,8 +568,8 @@
port@0 {
reg = <0>;
- imx219_in: endpoint {
- remote-endpoint = <&imx219_out>;
+ mipi_dphy_in: endpoint {
+ remote-endpoint = <&ov5647_out>;
data-lanes = <1 2>;
};
};
@@ -843,7 +849,8 @@
cam_pins {
cam_pwr: cam-pwr {
- rockchip,pins = <2 0 RK_FUNC_GPIO &pcfg_pull_none>;
+ rockchip,pins = <0 17 RK_FUNC_GPIO &pcfg_pull_none>,
+ <2 0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};