|
Posted at 9/19/2018 05:28:26
Only Author
17#
I got CSI module (http://en.t-firefly.com/doc/product/info/267.html) working on firefly-rk3399 using this kernel: https://github.com/FireflyTeam/kernel.git (branch firefly, rev 986a277676d350d020866ab9295a40003afb0fd3) and adding following snippet to rk3399-firefly-linux.dts:
- &cif_isp0 {
- rockchip,camera-modules-attached = <&camera0>;
- status = "okay";
- };
- &isp0_mmu {
- status = "okay";
- };
- &i2c1 {
- status = "okay";
- camera0: camera-module@10 {
- status = "okay";
- compatible = "omnivision,ov13850-v4l2-i2c-subdev";
- reg = < 0x10 >;
- device_type = "v4l2-i2c-subdev";
- clocks = <&cru SCLK_CIF_OUT>;
- clock-names = "clk_cif_out";
- pinctrl-names = "rockchip,camera_default", "rockchip,camera_sleep";
- pinctrl-0 = <&cam0_default_pins>;
- pinctrl-1 = <&cam0_sleep_pins>;
- rockchip,pd-gpio = <&gpio2 12 GPIO_ACTIVE_LOW>;
- rockchip,pwr-gpio = <&gpio1 23 GPIO_ACTIVE_HIGH>;
- rockchip,pwr-snd-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
- rockchip,rst-gpio = <&gpio0 8 GPIO_ACTIVE_LOW>;
- rockchip,camera-module-mclk-name = "clk_cif_out";
- rockchip,camera-module-facing = "back";
- rockchip,camera-module-name = "cmk-cb0695-fv1";
- rockchip,camera-module-len-name = "lg9569a2";
- rockchip,camera-module-fov-h = "66.0";
- rockchip,camera-module-fov-v = "50.1";
- rockchip,camera-module-orientation = <0>;
- rockchip,camera-module-iq-flip = <0>;
- rockchip,camera-module-iq-mirror = <0>;
- rockchip,camera-module-flip = <1>;
- rockchip,camera-module-mirror = <0>;
- rockchip,camera-module-defrect0 = <2112 1568 0 0 2112 1568>;
- rockchip,camera-module-defrect1 = <4224 3136 0 0 4224 3136>;
- rockchip,camera-module-defrect3 = <3264 2448 0 0 3264 2448>;
- rockchip,camera-module-flash-support = <0>;
- rockchip,camera-module-mipi-dphy-index = <0>;
- };
- };
Copy the code
Captured video stream has a green tint (probably due to sensor not properly calibrated) but at least it works in general. |
|