在设备树文件代码中添加 gc2053 设备节点
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2m1_xfer>;
/* split mode: lane0/1 */
gc2053: gc2053@37 {
status = "okay";
compatible = "galaxycore,gc2053";// 需要与驱动中的匹配字符串一致
reg = <0x37>; // sensor I2C 设备地址,7位
//查看硬件配置引脚,特别注意clocks与pinctrl-0一一对应,
//CLK_CAM0_OUT->cam_clkout0, CLK_CAM1_OUT->cam_clkout1, CLK_CIF_OUT->cif_clk, CLK_MIPICSI_OUT->mipicsi_clk0
clocks = <&cru CLK_CAM0_OUT>; // sensor mclk 配置
clock-names = "xvclk";
power-domains = <&power RK3568_PD_VI>;
pinctrl-names = "default";
pinctrl-0 = <&cam_clkout0>;// pinctl设置
// reset管脚分配及有效电平,要适配驱动操作输出
reset-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_LOW>;
// power管脚分配及有效电平
pwdn-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
/*power-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;*/
// 模组编号,该编号不要重复
rockchip,camera-module-index = <0>;
// 模组朝向,有"back"和"front"
rockchip,camera-module-facing = "front";
//module与lens命令要与设备/etc/iqfiles中对应sensor的iq文件名后面相同,如gc2053_YT-RV1109-2-V1_40IR-2MP-F20.xml
rockchip,camera-module-name = "YT-RV1109-2-V1";
rockchip,camera-module-lens-name = "40IR-2MP-F20";
port {
gc2053_out: endpoint {
remote-endpoint = <&dphy1_in>;
data-lanes = <1 2>;
};
};
};
}
本文出处 | daisy.skye的博客_CSDN博客-Qt,嵌入式,Linux领域博主 |
编译 | 在sdk目录下 $ cd kernel $ make ARCH=arm64 rockchip_defconfig rk356x_evb.config android-11.config $ ./mk_kernel.sh ido-evb3568-v1b-dsi1-1200-1920.img 在sdk目录下 $ source build/envsetup.sh $ lunch rk3568_r-userdebug $ make $ ./mkimage.sh $ cd RKTools/linux/Linux_Pack_Firmware/rockdev/ $ ./mkupdate_rk356x.sh 下载路径:/home/scooper/jkD7/SDK/ido_evb3568_android11_211025_sdk/RKTools/linux/Linux_Pack_Firmware/rockdev 参考文档:IDO-EVB3568-V1- Android SDK 编译说明 · INDUSTIO |
设备树 | 路径:/home/scooper/jkD7/SDK/ido_evb3568_android11_211025_sdk/kernel/arch/arm64/boot/dts/rockchip/ido-evb3568-v1b-dsi1-1200-1920.dts |
效果文件 对齐 | 路径 : /home/scooper/jkD7/SDK/ido_evb3568_android11_211025_sdk/external/camera_engine_rkaiq/iqfiles/isp21 在以前的 Linux 驱动中效果文件是xml,但是想着新的版本是json |
安卓配置文件 | /home/scooper/jkD7/SDK/ido_evb3568_android11_211025_sdk/hardware/rockchip/camera/etc/camera/camera3_profiles_rk356x.xml |
驱动对应的宏开关 | kernel/arch/arm64/configs/rockchip_defconfig |
参考链接 | rk3568 调试 gc2053rk3568mipi摄像头调试(gc2385 + gc2053) - M-kobe - 博客园 rk3566 调试 gc2053RK3566调试GC2053_火柴棍mcu的博客-CSDN博客 |