|
Posted at 8/6/2019 14:11:55
Only Author
30#
Hi,
I'm understanding OV13850 camera entry in the device tree. And I found two different entries in the device tree.
Is anyone can explain the difference between the two camera entries?
1. from ./rk3399-firefly-linux.dts (or) ./rk3399-rock960-ab.dts
camera0: ov13850@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-2nd-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>;
};
2. from ./rock960-model-ab-linux.dts
camera0: camera-module@10 {
compatible = "ovti,ov13850";
status = "disabled";
reg = <0x10>;
clocks = <&cru SCLK_CIF_OUT>;
clock-names = "xvclk";
reset-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>;
pwdn-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
pinctrl-names = "rockchip,camera_default";
pinctrl-0 = <&cif_clkout>;
port {
ucam_out0: endpoint {
remote-endpoint = <&mipi_in_ucam0>;
data-lanes = <1 2>;
};
};
};
|
|