xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3368-cif-sensor.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2#include "../../../../../drivers/soc/rockchip/rk_camera_sensor_info.h"
3
4/{
5	cif_sensor: cif_sensor {
6		compatible = "rockchip,sensor";
7		status = "okay";
8
9		tp2825 {
10			status = "okay";
11			is_front = <0>;
12			powerdown-gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
13			irq-gpios = <&gpio1 13 IRQ_TYPE_EDGE_FALLING>;
14			pwdn_active = <tp2825_PWRDN_ACTIVE>;
15			mir = <0>;
16			flash_attach = <1>;
17			flash_active = <1>;
18			resolution = <tp2825_FULL_RESOLUTION>;
19			powerup_sequence = <tp2825_PWRSEQ>;
20			orientation = <0>;
21			i2c_add = <tp2825_I2C_ADDR>;
22			i2c_chl = <3>;
23			cif_chl = <0>;
24			ad_chl = <0>; // 0 ~ 4;
25			mclk_rate = <24>;
26			rockchip,camera-module-defrect0 = <960 480 0 4 960 472>;
27			rockchip,camera-module-interface0 = "cvbs_ntsc";
28			rockchip,camera-module-defrect1 = <960 576 0 4 960 568>;
29			rockchip,camera-module-interface1 = "cvbs_pal";
30			rockchip,camera-module-defrect2 = <1280 720 8 20 1280 720>;
31			rockchip,camera-module-interface2 = "bt601_8_pp";
32			rockchip,camera-module-channel = <4 0>;
33		};
34	};
35};
36