RK356x 有四个输出时钟,可作为给 CIS 模组的 MCLK:
1、REFCLK_OUT(GPIO0_A0)
示例 dts:arch/arm64/boot/dts/rockchip/rk3566-evb2-lp4x-v10.dtsi 中的 gc5025 时钟配置
gc5025: gc5025@37 {
.……
clocks = <&pmucru CLK_WIFI>;
clock-names = “xvclk”;
pinctrl-names = “default”;
pinctrl-0 = <&refclk_pins>;
};
2、CAM_CLKOUT0(GPIO4_A7)
示例 dts:arch/arm64/boot/dts/rockchip/rk3566-rk817-tablet.dts 中的 ov8858 时钟配置
ov8858: ov8858@36 {
.……
clocks = <&cru CLK_CAM0_OUT>;
clock-names = “xvclk”;
pinctrl-names = “default”;
pinctrl-0 = <&cam_clkout0 >;
};
3、 CAM_CLKOUT1(GPIO4_A8)
示例 dts:arch/arm64/boot/dts/rockchip/rk3566-evb1-ddr4-v10.dtsi 中的 ov02k10 时钟配置
ov02k10: ov02k10@36 {
.……
clocks = <&cru CLK_CAM1_OUT>;
clock-names = “xvclk”;
pinctrl-names = “default”;
Rockchip_CameraHAL3_FAQ
Copyright © 2021 Fuzhou Rockchip Electronics Co., Ltd. 17
pinctrl-0 = <& cam_clkout1>;
};
4、 CLK_CIF_OUT (GPIO4_C0)
示例 dts:arch/arm64/boot/dts/rockchip/rk3566-rk817-tablet.dts 中的 gc2385 时钟配置
gc2385: gc2385@37 {
.……
clocks = <&cru CLK_CIF_OUT >;
clock-names = “xvclk”;
pinctrl-names = “default”;
pinctrl-0 = <& cif_clk >;
}
原作者:勤奋的蒙古大汗
|